Skip to content

Commit

Permalink
If all the things
Browse files Browse the repository at this point in the history
Signed-off-by: Bradley Reynolds <[email protected]>
  • Loading branch information
shenanigansd authored Feb 4, 2024
1 parent 663240b commit 875bd9d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/container-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,14 @@ jobs:
run: cosign sign ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.docker_build_push.outputs.digest }}

- name: Export digest
if: ${{ github.ref == 'refs/heads/main' || startswith(github.event.ref, 'refs/tags/v') }}
run: |
mkdir -p /tmp/digests
digest='${{ steps.docker_build_push.outputs.digest }}'
touch "/tmp/digests/${digest#sha256:}"
- name: Upload digest
if: ${{ github.ref == 'refs/heads/main' || startswith(github.event.ref, 'refs/tags/v') }}
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
if-no-files-found: error
Expand All @@ -139,6 +141,7 @@ jobs:
retention-days: 1

merge:
if: ${{ github.ref == 'refs/heads/main' || startswith(github.event.ref, 'refs/tags/v') }}
needs: [build-push]

runs-on: ubuntu-22.04
Expand Down

0 comments on commit 875bd9d

Please sign in to comment.