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

build in GitLab CI/CD

parent 006247ca
Branches deploy
No related tags found
No related merge requests found
Pipeline #177812 passed
build:
variables:
comm: go-mmproxy
os: linux
image: docker.io/golang:1.21
before_script:
- go mod download
script:
- |
for arch in amd64 arm64 ppc64le; 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/go-mmproxy/latest/$comm-$os-$arch" || exit 1
done
only:
- deploy
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment