Skip to content

Commit

Permalink
revert permissions change to check it still works
Browse files Browse the repository at this point in the history
  • Loading branch information
neilkakkar committed Jun 11, 2024
1 parent 4ed8266 commit b197bba
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/rust-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}

0 comments on commit b197bba

Please sign in to comment.