diff --git a/.github/workflows/rust-docker-build.yml b/.github/workflows/rust-docker-build.yml index 1ea2bbd5df6807..5c796ad3dc7b25 100644 --- a/.github/workflows/rust-docker-build.yml +++ b/.github/workflows/rust-docker-build.yml @@ -22,11 +22,10 @@ jobs: - hook-janitor - hook-worker runs-on: depot-ubuntu-22.04-4 - permissions: write-all - # permissions: - # id-token: write # allow issuing OIDC tokens for this workflow run - # contents: read # allow reading the repo contents - # packages: write # allow push to ghcr.io + permissions: + id-token: write # allow issuing OIDC tokens for this workflow run + contents: read # allow reading the repo contents + packages: write # allow push to ghcr.io defaults: run: @@ -92,20 +91,5 @@ jobs: cache-to: type=gha,mode=max build-args: BIN=${{ matrix.image }} - - name: Build and push image2 - if: always() - id: docker_build2 - uses: depot/build-push-action@v1 - with: - context: ./rust/ - file: ./rust/Dockerfile - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - platforms: linux/arm64 - cache-from: type=gha - cache-to: type=gha,mode=max - build-args: BIN=${{ matrix.image }} - - name: Container image digest run: echo ${{ steps.docker_build.outputs.digest }}