Skip to content

Commit

Permalink
add permissions, depot.json, remove extra step
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 committed Jun 18, 2024
1 parent fe587d1 commit 397efdb
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/.reusable-docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,18 @@ jobs:
publish:
name: Publish ${{ inputs.source-images }} to ${{ inputs.target-images }}
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- name: Cloning repo
uses: actions/checkout@v4
with:
sparse-checkout: depot.json
sparse-checkout-cone-mode: false

- name: Login to Github Container Registry
uses: docker/login-action@v3
with:
Expand All @@ -45,8 +56,7 @@ jobs:
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
# Setup Docker buildx with Depot's builder so imagetools have access to Depot's cache
- uses: docker/setup-buildx-action@v3
# Setup Docker buildx with Depot builder so imagetools have access to Depot cache
- uses: depot/use-action@v1

- name: Publish Image
Expand Down

0 comments on commit 397efdb

Please sign in to comment.