Skip to content
Snippets Groups Projects
Commit 615f6fec authored by Neil-Jocelyn Schark's avatar Neil-Jocelyn Schark
Browse files

Statically linked binaries

See merge request !151
parent d4273f0a
No related branches found
No related tags found
1 merge request!151Statically linked binaries
Pipeline #206016 passed
......@@ -26,6 +26,7 @@ RUN apt-get update \
nload \
yamllint \
zsh \
file \
&& apt-get clean
# Install gnmic
......
......@@ -59,6 +59,13 @@ build-akms-simulator:
- docker buildx build --push -t "$IMAGE_NAME:$TAG" -f akms-simulator/Dockerfile --build-arg "GITLAB_PROXY=${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/" --build-arg GOLANG_VERSION=${GOLANG_VERSION} .
<<: *build
build-binaries:
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/golang:$GOLANG_VERSION
stage: build
before_script:
- apt-get update && apt-get upgrade -y && apt-get install -y make
script:
- make build
# Build latest stage
......
......@@ -11,7 +11,7 @@ GOBIN := $(GOSDN_PRG)
GOLANG_VERSION := 1.22
GOLANGCI_LINT_VERSION=v1.59.1
GOCMD=go
GOCMD=CGO_ENABLED=0 go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean -cache -fuzzcache -testcache -modcache
BUILD_ARTIFACTS_PATH=artifacts
......@@ -47,7 +47,7 @@ unit-test:
build: build-gokms build-quantumlayer build-etsi14module build-akms-simulator
build-gokms: pre
CGO_ENABLED=0 $(GOBUILD) -o $(BUILD_ARTIFACTS_PATH)/goKMS ./goKMS/main.go
$(GOBUILD) -o $(BUILD_ARTIFACTS_PATH)/goKMS ./goKMS/main.go
build-quantumlayer: pre
$(GOBUILD) -o $(BUILD_ARTIFACTS_PATH)/quantumlayer ./quantumlayer/main/main.go
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment