2020-11-13 08:31:49 +00:00
|
|
|
stages:
|
2023-10-13 12:37:29 +00:00
|
|
|
- image
|
2020-11-13 08:31:49 +00:00
|
|
|
|
2023-10-13 12:33:08 +00:00
|
|
|
.img: &img
|
2023-12-21 18:57:38 +00:00
|
|
|
image: "domaindrivenarchitecture/ddadevops-dind:4.10.5"
|
2023-10-13 12:33:08 +00:00
|
|
|
services:
|
|
|
|
- docker:dind
|
|
|
|
before_script:
|
|
|
|
- export RELEASE_ARTIFACT_TOKEN=$MEISSA_REPO_BUERO_RW
|
|
|
|
- export IMAGE_DOCKERHUB_USER=$DOCKERHUB_USER
|
|
|
|
- export IMAGE_DOCKERHUB_PASSWORD=$DOCKERHUB_PASSWORD
|
|
|
|
- export IMAGE_TAG=$CI_COMMIT_TAG
|
2020-11-06 18:34:04 +00:00
|
|
|
|
2023-10-13 12:33:08 +00:00
|
|
|
.tag_only: &tag_only
|
2022-05-10 15:02:57 +00:00
|
|
|
rules:
|
2023-10-13 12:33:08 +00:00
|
|
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
|
|
when: never
|
|
|
|
- if: '$CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/'
|
|
|
|
|
|
|
|
dda-backup-image-publish:
|
|
|
|
<<: *img
|
|
|
|
<<: *tag_only
|
|
|
|
stage: image
|
2020-11-06 18:34:04 +00:00
|
|
|
script:
|
2023-10-13 12:33:08 +00:00
|
|
|
- cd infrastructure/docker && pyb image publish
|
|
|
|
|
|
|
|
|