Skip to content

Commit

Permalink
feat: allow test and push
Browse files Browse the repository at this point in the history
Currently, can only configure test, or push. This adds test AND/OR push.
  • Loading branch information
wilsonjord authored and Mossman1215 committed Feb 6, 2024
1 parent 4f4c7aa commit 814e536
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/reusable-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ jobs:
name: ${{ inputs.artifact-name }}
path: ${{ inputs.artifact-path }}
- name: Build
if: ${{ inputs.push == false }}
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
id: build
with:
Expand All @@ -319,7 +318,7 @@ jobs:
org.opencontainers.image.source=${{ github.repositoryUrl }}
target: ${{ inputs.target }}
- name: test
if: ${{ inputs.test != '' && inputs.push == false }}
if: ${{ inputs.test != '' }}
env:
IMAGE: ${{ steps.run-info.outputs.image-with-tag-for-test }}
PUSH: ${{ inputs.push }}
Expand Down

0 comments on commit 814e536

Please sign in to comment.