Skip to content
Snippets Groups Projects

CI: Always tag on */production and */staging branches

Closed Andrej Shadura requested to merge always-tag-staging-production into collabora/staging
1 unresolved thread
+ 5
3
@@ -190,6 +190,8 @@ tag-latest-docker-image:
"docker://$CI_REGISTRY_IMAGE/$image:$TAG_NEW"
echo Tagged "$CI_REGISTRY_IMAGE/$image:$TAG_NEW"
done
only:
variables:
- $CI_DEFAULT_BRANCH == $CI_COMMIT_BRANCH
rules:
- if: $CI_DEFAULT_BRANCH == $CI_COMMIT_BRANCH
when: always
- if: $CI_COMMIT_BRANCH =~ /\/(production|staging)$/
when: always
    • Comment on lines +196 to +197

      Is this going to add the latest tag from both collabora/staging and collabora/production?

      And matching on /(production|staging)$ would produce surprising results shall we ever set up a downstream repo with its own foobar/production branch while still retaining the collabora/* ones.

      • The commit message does not really say which problem we're trying to solve here, so I am not sure what would be the right fix.

      • Right. I think I messed something up somewhere. Possibly in my head — and I need to rethink what exactly am I trying to achieve here :slight_smile:

      • Please register or sign in to reply
Please register or sign in to reply
Loading