Skip to content

Commit

Permalink
Merge pull request #139 from vladgh:release
Browse files Browse the repository at this point in the history
Always build when publishing a release
  • Loading branch information
vladgh authored Sep 11, 2021
2 parents 9304809 + 7d6043c commit c22e639
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Docker Metadata
uses: docker/[email protected]
id: meta
if: steps.filter.outputs.build == 'true'
if: steps.filter.outputs.build == 'true' || ( github.event_name == 'release' && github.event.action == 'published' )
with:
images: ${{ matrix.image.name }}
tags: |
Expand All @@ -58,19 +58,19 @@ jobs:
type=sha
- name: Set up QEMU
uses: docker/[email protected]
if: steps.filter.outputs.build == 'true'
if: steps.filter.outputs.build == 'true' || ( github.event_name == 'release' && github.event.action == 'published' )
- name: Set up Docker BuildX
uses: docker/[email protected]
if: steps.filter.outputs.build == 'true'
if: steps.filter.outputs.build == 'true' || ( github.event_name == 'release' && github.event.action == 'published' )
- name: Login to DockerHub
uses: docker/[email protected]
if: github.event_name != 'pull_request' && steps.filter.outputs.build == 'true'
if: ( steps.filter.outputs.build == 'true' && github.event_name != 'pull_request' ) || ( github.event_name == 'release' && github.event.action == 'published' )
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/[email protected]
if: steps.filter.outputs.build == 'true'
if: steps.filter.outputs.build == 'true' || ( github.event_name == 'release' && github.event.action == 'published' )
with:
context: ${{ matrix.image.path }}
platforms: ${{ matrix.image.platforms }}
Expand Down

0 comments on commit c22e639

Please sign in to comment.