Skip to content

Commit

Permalink
Set image tags (#3)
Browse files Browse the repository at this point in the history
Set image tags with logic that is

- latest for main branch
- semver for tags
- pr-number for pull requests
  • Loading branch information
hsoerensen authored Aug 11, 2024
1 parent 3c2aefb commit de090d8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-legacy-relay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
type=ref,event=pr
- name: Rename meta bake definition file
run: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build-participation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
type=ref,event=pr
- name: Rename meta bake definition file
run: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
type=ref,event=pr
- name: Rename meta bake definition file
run: |
Expand Down

0 comments on commit de090d8

Please sign in to comment.