Commit 06037c00 authored by ale's avatar ale

Add a CI release stage for tags

parent f6edab82
Pipeline #11502 failed
......@@ -24,3 +24,16 @@ test:
reports:
cobertura: cover.xml
junit: report.xml
release:
stage: upload_pkg
variables:
VERSION: ${CI_COMMIT_TAG}
script:
- mkdir liber-${VERSION}
- go build -o liber-${VERSION}/liber ./cmd/liber
- tar czf liber-${VERSION}.tar.gz liber-${VERSION}
- curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file liber-${VERSION}.tar.gz ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/liber/${VERSION}/liber-${VERSION}.tar.gz
only:
- tags
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment