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