Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelRobitaille committed Nov 18, 2024
1 parent 7bd9ad1 commit f1d9212
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,27 @@ jobs:
type=ref,event=branch
type=semver,pattern={{version}}
- name: Login to Docker Hub
if: github.ref == 'refs/heads/master' # Run only on master
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') # Run only on master
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Publish to GitHub Packages
if: github.ref == 'refs/heads/master' # Run only on master
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') # Run only on master
uses: docker/build-push-action@v3
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Publish to GitHub Packages (Dry Run)
if: github.ref != 'refs/heads/master' # Dry run if not master (push: false)
if: github.ref != 'refs/heads/master' && !startsWith(github.ref, 'refs/tags/') # Dry run if not master (push: false)
uses: docker/build-push-action@v3
with:
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Update repo description
if: github.ref == 'refs/heads/master' # Run only on master
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') # Run only on master
uses: peter-evans/dockerhub-description@v2
with:
repository: marcelrobitaille/bbyen
Expand Down

0 comments on commit f1d9212

Please sign in to comment.