Skip to content

Commit 96f73e2

Browse files
Update GitHub Container Registry login in build.yml
Signed-off-by: Mario Vejlupek <[email protected]>
1 parent 49d764f commit 96f73e2

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,11 @@ jobs:
3131
--build-arg BASE_IMAGE_VERSION=${BASE_IMAGE_VERSION} \
3232
--file Dockerfile --tag $IMAGE_NAME:$VERSION
3333
34-
- name: Login to GitHub Container Registry
35-
uses: docker/login-action@v3
36-
with:
37-
registry: ghcr.io
38-
username: ${{ github.actor }}
39-
password: ${{ secrets.GITHUB_TOKEN }}
40-
41-
# - name: Log into GitHub Container Registry
42-
# run: echo "${{ secrets.CR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
34+
# Make sure to use the correct PAT
35+
# Generate new here https://github.com/settings/tokens?type=beta
36+
# Put it here https://github.com/organizations/Container-Driven-Development/settings/secrets/actions
37+
- name: Log into GitHub Container Registry
38+
run: echo "${{ secrets.CR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
4339

4440
- name: Push image to GitHub Container Registry
4541
run: |

0 commit comments

Comments
 (0)