diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..1f140bb3e70a5ddb2a0f35c18fc17c4511a378f6 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,13 @@ +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