mirror of
https://gitlab.kit.edu/kit/scc/sys/mail/exim-encrypt-dlfunc.git
synced 2025-12-06 11:33:55 +01:00
Compare commits
3 Commits
v0.2.1
...
ci-release
| Author | SHA1 | Date | |
|---|---|---|---|
| 400ffe6e5e | |||
| 0c1a49ec57 | |||
| 865a33dab1 |
@ -1,16 +1,17 @@
|
|||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- debian-package
|
- debian-package
|
||||||
|
- prepare
|
||||||
- release
|
- release
|
||||||
|
|
||||||
.image-buster:
|
#.image-buster:
|
||||||
image: '${CONTAINER_REGISTRY_NAME}/exim-encrypt-dlfunc-build-buster'
|
# image: '${CONTAINER_REGISTRY_NAME}/exim-encrypt-dlfunc-build-buster'
|
||||||
|
|
||||||
.image-bullseye:
|
.image-bullseye:
|
||||||
image: '${CONTAINER_REGISTRY_NAME}/exim-encrypt-dlfunc-build-bullseye'
|
image: '${CONTAINER_REGISTRY_NAME}/exim-encrypt-dlfunc-build-bullseye'
|
||||||
|
|
||||||
.image-focal:
|
#.image-focal:
|
||||||
image: '${CONTAINER_REGISTRY_NAME}/exim-encrypt-dlfunc-build-focal'
|
# image: '${CONTAINER_REGISTRY_NAME}/exim-encrypt-dlfunc-build-focal'
|
||||||
|
|
||||||
.code-coverage:
|
.code-coverage:
|
||||||
stage: build
|
stage: build
|
||||||
@ -79,17 +80,17 @@ build:bullseye:
|
|||||||
- .code-coverage
|
- .code-coverage
|
||||||
needs: [ ]
|
needs: [ ]
|
||||||
|
|
||||||
build:focal:
|
#build:focal:
|
||||||
extends:
|
# extends:
|
||||||
- .image-focal
|
# - .image-focal
|
||||||
- .build
|
# - .build
|
||||||
needs: [ ]
|
# needs: [ ]
|
||||||
|
|
||||||
build:buster:
|
#build:buster:
|
||||||
extends:
|
# extends:
|
||||||
- .build
|
# - .build
|
||||||
- .image-buster
|
# - .image-buster
|
||||||
needs: [ ]
|
# needs: [ ]
|
||||||
|
|
||||||
debian-package:bullseye:
|
debian-package:bullseye:
|
||||||
extends:
|
extends:
|
||||||
@ -99,43 +100,44 @@ debian-package:bullseye:
|
|||||||
- build:bullseye
|
- build:bullseye
|
||||||
needs: [ "build:bullseye" ]
|
needs: [ "build:bullseye" ]
|
||||||
|
|
||||||
debian-package:focal:
|
#debian-package:focal:
|
||||||
extends:
|
# extends:
|
||||||
- .image-focal
|
# - .image-focal
|
||||||
- .debian-package
|
# - .debian-package
|
||||||
dependencies:
|
# dependencies:
|
||||||
- build:focal
|
# - build:focal
|
||||||
needs: [ "build:focal" ]
|
# needs: [ "build:focal" ]
|
||||||
|
|
||||||
debian-package:buster:
|
#debian-package:buster:
|
||||||
extends:
|
# extends:
|
||||||
- .image-buster
|
# - .image-buster
|
||||||
- .debian-package
|
# - .debian-package
|
||||||
dependencies:
|
# dependencies:
|
||||||
- build:buster
|
# - build:buster
|
||||||
needs: [ "build:buster" ]
|
# needs: [ "build:buster" ]
|
||||||
|
|
||||||
prepare_job:
|
prepare_job:
|
||||||
stage: prepare # This stage must run before the release stage
|
stage: prepare
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG
|
- 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:
|
script:
|
||||||
- echo "TAG=v$(cat VERSION)" >> variables.env # and append to the variables.env file
|
- echo "TAG=v$(cat VERSION)" >> variables.env
|
||||||
artifacts:
|
artifacts:
|
||||||
reports:
|
reports:
|
||||||
dotenv: variables.env # Use artifacts:reports:dotenv to expose the variables to other jobs
|
dotenv: variables.env
|
||||||
|
|
||||||
release_job:
|
release_job:
|
||||||
stage: release
|
stage: release
|
||||||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||||
|
needs:
|
||||||
|
- job: prepare_job
|
||||||
|
artifacts: true
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG # Run this job when a tag is created manually
|
- if: $CI_COMMIT_TAG
|
||||||
script:
|
script:
|
||||||
- echo "running release_job"
|
- echo "running release_job for $TAG"
|
||||||
release:
|
release:
|
||||||
name: 'Release $CI_COMMIT_TAG'
|
name: 'Release $CI_COMMIT_TAG'
|
||||||
description: 'Created using the release-cli'
|
description: 'Created using the release-cli'
|
||||||
tag_name: '$CI_COMMIT_TAG'
|
tag_name: '$CI_COMMIT_TAG'
|
||||||
ref: '$CI_COMMIT_TAG'
|
ref: '$CI_COMMIT_SHA'
|
||||||
|
|||||||
@ -63,7 +63,7 @@ for i in "${images[@]}"; do
|
|||||||
--from "${basectr}" \
|
--from "${basectr}" \
|
||||||
--format docker \
|
--format docker \
|
||||||
--iidfile "${IIDFILE}" \
|
--iidfile "${IIDFILE}" \
|
||||||
--tag "${IMAGETAG}"
|
--tag "${IMAGETAG}" \
|
||||||
--build-arg BUILDTIMESTAMP="`date --iso-8601=seconds`"
|
--build-arg BUILDTIMESTAMP="`date --iso-8601=seconds`"
|
||||||
|
|
||||||
if [ "${REGISTRY}" != "none" ]; then
|
if [ "${REGISTRY}" != "none" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user