Skip to content
Snippets Groups Projects

Merging final pip in main

Closed Isabelle Josephine Karal requested to merge s91190/app-service:stable into main
1 file
+ 21
2
Compare changes
  • Side-by-side
  • Inline
+ 21
2
@@ -9,16 +9,35 @@ job_build:
- apk add go
- go get -t ./...
- go build -o ./artifact.bin ./*.go
artifacts:
paths:
- ./artifacts
job_test:
stage: test
script:
- apk add go
- apk add go #image: mirror.gcr.io/library/golang:1.21 das image würde das erneute installieren der go Umgebung ersetzten
- go get -t ./...
- go test -race -v ./...
job_release:
stage: release
tags:
- docker-privileged
dependencies:
- job_build
before_script:
- apt update
- apt install -y ca-certificates curl
- update-ca-certificates
script:
- echo release
- |
for artifact in ./artifacts/*; do
chmod +x ${artifact}
curl \
--header "JOB-TOKEN: ${CI_JOB_TOKEN}" \
--upload-file ${artifact} \
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/artifacts/${version}/"
done
Loading