Skip to content

Commit

Permalink
chore: add conditional step for building and pushing Docker image onl…
Browse files Browse the repository at this point in the history
…y for tagged versions
  • Loading branch information
damonto committed Mar 31, 2024
1 parent 317313d commit 3209441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
permissions:
contents: write
packages: write
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -52,6 +51,7 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/build-push-action@v5
with:
context: .
Expand Down

0 comments on commit 3209441

Please sign in to comment.