Fix pushing to latest docker tag only if needed

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-10-12 16:57:12 +02:00
parent 07a1118fab
commit 156490af62
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -233,7 +233,7 @@ build-and-push-to-latest-docker-tag:
- if: '$CI_PROJECT_NAMESPACE != "framasoft"'
when: never
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_TAG !~ /alpha|beta|rc/
- if: $CI_COMMIT_TAG =~ /alpha|beta|rc/
when: never
timeout: 3 hours
script:
@ -252,7 +252,7 @@ build-and-push-docker-tag:
when: never
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_TAG =~ /alpha|beta|rc/
when: never
when: always
timeout: 3 hours
script:
- >