Skip to content

Commit

Permalink
registry test clean-up
Browse files Browse the repository at this point in the history
Signed-off-by: Brian DeHamer <bdehamer@github.com>
  • Loading branch information
bdehamer committed Jun 13, 2024
1 parent 8e23701 commit 411ff07
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 30 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/oci-amazon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
attestations: write
env:
REGISTRY: 123509514931.dkr.ecr.us-east-1.amazonaws.com
IMAGE_NAME: bdehamer/attest-demo
IMAGE_NAME: ${{ github.repository }}
steps:
- name: Build artifact
run: date > artifact.bin
Expand Down Expand Up @@ -57,17 +57,9 @@ jobs:
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest

- name: Attest artifact
uses: actions/attest@v1
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.push.outputs.digest }}
predicate-type: application/json
predicate: ${{ toJson(github) }}
push-to-registry: true

#- name: Attest artifact
#uses: actions/attest-build-provenance@v1
#with:
#subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
#subject-digest: ${{ steps.push.outputs.digest }}
#push-to-registry: true
2 changes: 1 addition & 1 deletion .github/workflows/oci-docker-hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
attestations: write
env:
REGISTRY: docker.io
IMAGE_NAME: bdehamer/attest-demo
IMAGE_NAME: ${{ github.repository }}
steps:
- name: Build artifact
run: date > artifact.bin
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/oci-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,9 @@ jobs:
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest

- name: Attest artifact
uses: actions/attest@v1
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.build-and-push.outputs.digest }}
predicate-type: text/plain
predicate: '{}'
push-to-registry: true
#- name: Attest artifact
#uses: actions/attest-build-provenance@v1
#with:
#subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
#subject-digest: ${{ steps.build-and-push.outputs.digest }}
#push-to-registry: true

11 changes: 1 addition & 10 deletions .github/workflows/oci-google.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
attestations: write
env:
REGISTRY: us-west1-docker.pkg.dev
IMAGE_NAME: dehamer24/bdehamer/attest-demo
IMAGE_NAME: dehamer24/${{ github.repository }}
steps:
- name: Build artifact
run: date > artifact.bin
Expand Down Expand Up @@ -66,12 +66,3 @@ jobs:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

- name: Attest artifact
uses: actions/attest@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.push.outputs.digest }}
predicate-type: application/json
predicate: ${{ toJson(github) }}
push-to-registry: true

0 comments on commit 411ff07

Please sign in to comment.