mirror of
https://gitlab.kit.edu/kit/scc/sys/mail/exim-encrypt-dlfunc.git
synced 2025-12-06 12:33:55 +01:00
Compare commits
2 Commits
main
...
865a33dab1
| Author | SHA1 | Date | |
|---|---|---|---|
| 865a33dab1 | |||
| c6c6ba23fd |
@ -1,6 +1,8 @@
|
|||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- debian-package
|
- debian-package
|
||||||
|
- prepare
|
||||||
|
- release
|
||||||
|
|
||||||
.image-buster:
|
.image-buster:
|
||||||
image: '${CONTAINER_REGISTRY_NAME}/exim-encrypt-dlfunc-build-buster'
|
image: '${CONTAINER_REGISTRY_NAME}/exim-encrypt-dlfunc-build-buster'
|
||||||
@ -113,3 +115,33 @@ debian-package:buster:
|
|||||||
dependencies:
|
dependencies:
|
||||||
- build:buster
|
- build:buster
|
||||||
needs: [ "build:buster" ]
|
needs: [ "build:buster" ]
|
||||||
|
|
||||||
|
prepare_job:
|
||||||
|
stage: prepare # This stage must run before the release stage
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_TAG
|
||||||
|
when: never # Do not run this job when a tag is created manually
|
||||||
|
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch
|
||||||
|
script:
|
||||||
|
- echo "TAG=v$(cat VERSION)" >> variables.env # and append to the variables.env file
|
||||||
|
artifacts:
|
||||||
|
reports:
|
||||||
|
dotenv: variables.env # Use artifacts:reports:dotenv to expose the variables to other jobs
|
||||||
|
|
||||||
|
release_job:
|
||||||
|
stage: release
|
||||||
|
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||||
|
needs:
|
||||||
|
- job: prepare_job
|
||||||
|
artifacts: true
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_TAG
|
||||||
|
when: never
|
||||||
|
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
|
script:
|
||||||
|
- echo "running release_job for $TAG"
|
||||||
|
release:
|
||||||
|
name: 'Release $CI_COMMIT_TAG'
|
||||||
|
description: 'Created using the release-cli'
|
||||||
|
tag_name: '$CI_COMMIT_TAG'
|
||||||
|
ref: '$CI_COMMIT_TAG'
|
||||||
|
|||||||
Reference in New Issue
Block a user