Skip to content

Commit

Permalink
Merge pull request #27 from matrix-org/bbz/fix-git-tags-to-docker-tags
Browse files Browse the repository at this point in the history
Attempt to fix the mapping between git & docker tags
  • Loading branch information
benbz authored May 26, 2023
2 parents 30faedc + e07ce74 commit ac39954
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-publish-individual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ jobs:
# Turn off auto-latest, as we want to exclude openshift tags from that
flavor: |
latest=false
# 1-3. Generate the default docker tags, 4. generate latest if git tag is on the default branch, 5. generate openshift-latest if git tag is on the openshift branch
# 1-3. Generate the default docker tags, 4. generate latest if git tag is off the master branch, 5. generate openshift-latest if git tag is on the openshift branch
tags: |
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
type=ref,event=tag,value=latest,enable={{is_default_branch}}
type=ref,event=tag,value=openshift-latest,enable=${{ github.ref == 'refs/heads/openshift' }}
type=ref,event=tag,value=latest,enable=${{ startsWith(github.ref_name, 'stable-') }}
type=ref,event=tag,value=openshift-latest,enable=${{ startsWith(github.ref_name, 'openshift-') }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
Expand Down

0 comments on commit ac39954

Please sign in to comment.