Skip to content
Snippets Groups Projects
Commit 3725557b authored by Lars Seipel's avatar Lars Seipel
Browse files

cicd: build in pipeline

parent c1887e0d
No related branches found
No related tags found
No related merge requests found
Pipeline #164934 passed
build:
variables:
os: linux
comm: behealthy
image: docker.io/golang:1.21
before_script:
- go mod download
script:
- |
for arch in amd64 arm64; do
GOOS=$os GOARCH=$arch CGO_ENABLED=0 go build -o "$comm-$os-$arch" || exit 1
curl -H "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ./$comm-$os-$arch "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/behealthy/latest/$comm-$os-$arch" || exit 1
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment