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

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
190 190 "docker://$CI_REGISTRY_IMAGE/$image:$TAG_NEW"
191 191 echo Tagged "$CI_REGISTRY_IMAGE/$image:$TAG_NEW"
192 192 done
193 only:
194 variables:
195 - $CI_DEFAULT_BRANCH == $CI_COMMIT_BRANCH
193 rules:
194 - if: $CI_DEFAULT_BRANCH == $CI_COMMIT_BRANCH
195 when: always
196 - if: $CI_COMMIT_BRANCH =~ /\/(production|staging)$/
197 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