Skip to content

Commit

Permalink
publish-image: Change publishing order
Browse files Browse the repository at this point in the history
The changes aim to fail-fast and avoid the case whereby the build
results in a half-successful state.

First try to do a Prime release and if that is successful, then
attempt a public release.

Signed-off-by: Paulo Gomes <[email protected]>
  • Loading branch information
pjbgf committed Dec 4, 2024
1 parent 5815646 commit d97bee7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions actions/publish-image/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,16 +176,6 @@ runs:
run: |
go install github.com/rancherlabs/slsactl@latest
- name: Build and push image [Public]
shell: bash
if: ${{ inputs.push-to-public == true || inputs.push-to-public == 'true' }}
run: |
make ${{ inputs.make-target }}
env:
TAG: ${{ inputs.tag }}
TARGET_PLATFORMS: ${{ inputs.platforms }}
REPO: ${{ inputs.public-registry }}/${{ inputs.public-repo }}

- name: Build and push image [Prime]
shell: bash
if: ${{ inputs.push-to-prime == true || inputs.push-to-prime == 'true' }}
Expand All @@ -209,3 +199,13 @@ runs:
TAG: ${{ inputs.tag }}
TARGET_PLATFORMS: ${{ inputs.platforms }}
REPO: ${{ inputs.prime-registry }}/${{ inputs.prime-repo }}

- name: Build and push image [Public]
shell: bash
if: ${{ inputs.push-to-public == true || inputs.push-to-public == 'true' }}
run: |
make ${{ inputs.make-target }}
env:
TAG: ${{ inputs.tag }}
TARGET_PLATFORMS: ${{ inputs.platforms }}
REPO: ${{ inputs.public-registry }}/${{ inputs.public-repo }}

0 comments on commit d97bee7

Please sign in to comment.