Skip to content

Commit

Permalink
Merge pull request #208 from fedimint/push-image-on-v-tag
Browse files Browse the repository at this point in the history
ci: push image on tag starting with `v`
  • Loading branch information
EthnTuttle authored Sep 14, 2023
2 parents b488bdf + 2e7d3e8 commit 759ee17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gateway-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
type=sha
- name: Login to Docker Hub
if: ${{ github.ref == 'refs/heads/master' }}
if: github.ref == 'refs/heads/master' || (github.ref_type == 'tag' && startsWith(github.ref, 'v'))
uses: docker/login-action@v2
with:
username: fedimintui
Expand All @@ -39,6 +39,6 @@ jobs:
uses: docker/build-push-action@v4
with:
file: Dockerfile.gateway-ui
push: ${{ github.ref == 'refs/heads/master' }}
push: ${{ github.ref == 'refs/heads/master' || (github.ref_type == 'tag' && startsWith(github.ref, 'v')) }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
4 changes: 2 additions & 2 deletions .github/workflows/guardian-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
type=sha
- name: Login to Docker Hub
if: ${{ github.ref == 'refs/heads/master' }}
if: github.ref == 'refs/heads/master' || (github.ref_type == 'tag' && startsWith(github.ref, 'v'))
uses: docker/login-action@v2
with:
username: fedimintui
Expand All @@ -38,6 +38,6 @@ jobs:
uses: docker/build-push-action@v4
with:
file: Dockerfile.guardian-ui
push: ${{ github.ref == 'refs/heads/master' }}
push: ${{ github.ref == 'refs/heads/master' || (github.ref_type == 'tag' && startsWith(github.ref, 'v')) }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 759ee17

Please sign in to comment.