Skip to content

Commit

Permalink
add ghcr as registry
Browse files Browse the repository at this point in the history
  • Loading branch information
sotojn committed Jul 22, 2024
1 parent 25fb908 commit 27f495e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ jobs:
# Ex: ["18", "20", "22"] ---> ["18.19.1", "20", "22"]
version: ["18", "20", "22.4.1"]
runs-on: ubuntu-latest
# permissions:
# packages: write
# contents: read
permissions:
contents: read
packages: write
attestations: write
id-token: write


steps:
-
Expand All @@ -29,8 +38,9 @@ jobs:
name: Log in to the Container registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down

0 comments on commit 27f495e

Please sign in to comment.