From 27f495e43a1421faa0e22de991e9d647f7717f7f Mon Sep 17 00:00:00 2001 From: sotojn Date: Mon, 22 Jul 2024 15:22:14 -0700 Subject: [PATCH] add ghcr as registry --- .github/workflows/build.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 39c93ed..78e98e5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: - @@ -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