seperate docker hub mirroring to a seperate stage

This commit is contained in:
Shelikhoo 2024-12-12 13:58:42 +00:00
parent 63549af07e
commit e7a7f41c5b
No known key found for this signature in database
GPG key ID: 4C9764E9FE80A3DC

View file

@ -2,6 +2,7 @@ stages:
- test
- deploy
- container-build
- container-mirror
variables:
DEBIAN_FRONTEND: noninteractive
@ -373,12 +374,7 @@ clean-image-tags:
when: always
mirror-image-to-dockerhub:
stage: container-build
needs:
- job: clean-image-tags
artifacts: false
- job: tag-container-release
artifacts: false
stage: container-mirror
variables:
DOCKERHUB_MIRROR_REPOURL: $DOCKERHUB_MIRROR_REPOURL
DOCKERHUB_USERNAME: $DOCKERHUB_MIRROR_USERNAME