Skip to content
Snippets Groups Projects
Commit 06037c00 authored by ale's avatar ale
Browse files

Add a CI release stage for tags

parent f6edab82
Branches
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment