Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also publish docker image for tags #21

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading