-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #139 from vladgh:release
Always build when publishing a release
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | | ||
|
@@ -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 }} | ||
|