From f30f527ac8b4f31a5e20cdca6c90f158d4d8487f Mon Sep 17 00:00:00 2001 From: Matt Anson Date: Tue, 20 Jun 2023 15:29:50 +0100 Subject: [PATCH 1/2] Update build.yml Set provenance: false because https://github.com/docker/build-push-action/issues/771 --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6ee9d7c..3c0dd83 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,6 +51,7 @@ jobs: - name: Build and push image uses: docker/build-push-action@v4 with: + provenance: false context: ./images/ push: true tags: ${{ steps.image-meta.outputs.tags }} @@ -68,4 +69,4 @@ jobs: - name: Move cache run: | rm -rf /tmp/.buildx-cache - mv /tmp/.buildx-cache-new /tmp/.buildx-cache \ No newline at end of file + mv /tmp/.buildx-cache-new /tmp/.buildx-cache From 7f6898326914fcd032104fe2e3b9f07a7cf2a2ca Mon Sep 17 00:00:00 2001 From: Matt Anson Date: Tue, 20 Jun 2023 15:49:09 +0100 Subject: [PATCH 2/2] Update build.yml Push image to github.repository --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3c0dd83..f315ed0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,7 +41,7 @@ jobs: id: image-meta uses: docker/metadata-action@v4 with: - images: ghcr.io/stackhpc/io500-singularity + images: ghcr.io/${{ github.repository }} # Produce the branch name or tag and the SHA as tags tags: | type=ref,event=branch