Skip to content

Commit

Permalink
build on merge
Browse files Browse the repository at this point in the history
  • Loading branch information
beneisner committed Apr 24, 2024
1 parent 8acf1e4 commit 10887a0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
name: Build Container

on:
push:
branches:
- main
pull_request:

branches: [main]

paths:
# This is the entire list of files that will trigger the workflow.
Expand All @@ -30,4 +30,5 @@ jobs:
uses: docker/build-push-action@v5
with:
push: true
tags: beisner/taxpose:latest
# This is the name of the image that will be pushed to Docker Hub. If the branch is main, the image will be tagged as latest. Else, it will be tagged as the branch name.
tags: ${{ secrets.DOCKERHUB_USERNAME }}/taxpose:${{ github.ref == 'refs/heads/main' && 'latest' || replace(github.ref, 'refs/heads/', '') }}

0 comments on commit 10887a0

Please sign in to comment.