Sfoglia il codice sorgente

docker buildx requires --provenance=false for now (#1182)

This is an issue in docker buildx 0.10:

	https://github.com/docker/buildx/issues/1519

Signed-off-by: Sean Young <sean@mess.org>
Sean Young 2 anni fa
parent
commit
6d60aee6f8

+ 1 - 1
.github/workflows/ci-image.yml

@@ -8,4 +8,4 @@ jobs:
       uses: actions/checkout@v1
     - run: |
           echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
-          docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/${GITHUB_REPOSITORY}:ci --push .github
+          docker buildx build --provenance=false --platform linux/amd64,linux/arm64 -t ghcr.io/${GITHUB_REPOSITORY}:ci --push .github

+ 4 - 2
.github/workflows/release.yml

@@ -252,7 +252,9 @@ jobs:
       uses: actions/checkout@v3
     - run: |
         echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
-        docker buildx build . --push \
-          -t ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_REF/refs\/tags\//} \
+        docker buildx build . \
+          --push \
+          --provenance=false \
+          --tag ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_REF/refs\/tags\//} \
           --platform linux/arm64,linux/amd64 \
           --label org.opencontainers.image.description="Solidity Compiler for Solana and Substrate version $(git describe --tags)"

+ 2 - 1
.github/workflows/test.yml

@@ -208,7 +208,8 @@ jobs:
         echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
         docker buildx build . \
           ${{steps.push.outputs.push}} \
-          -t ghcr.io/${GITHUB_REPOSITORY}:latest \
+          --provenance=false \
+          --tag ghcr.io/${GITHUB_REPOSITORY}:latest \
           --platform linux/arm64,linux/amd64 \
           --label org.opencontainers.image.description="Solidity Compiler for Solana and Substrate version $(git describe --tags)"