Skip to content

Commit 8671cbf

Browse files
authored
Merge pull request #19 from gcpug/github-token
Push docker image to GitHub Container Registry with GITHUB_TOKEN
2 parents 7615f92 + 40fb176 commit 8671cbf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/docker-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
docker build . --file ${{ matrix.version }}/${{ matrix.os }}/Dockerfile --tag $IMAGE_ID:${{ matrix.version }}-${{ matrix.os }}
4242
4343
- name: Log into GitHub Container Registry
44-
run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
44+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
4545

4646
- name: Push image to GitHub Container Registry
4747
run: |
@@ -67,7 +67,7 @@ jobs:
6767
docker build . --file $LATEST_VERSION/debian/Dockerfile --tag $IMAGE_ID:${{ matrix.os }}
6868
6969
- name: Log into GitHub Container Registry
70-
run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
70+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
7171

7272
- name: Push image to GitHub Container Registry
7373
run: |
@@ -89,7 +89,7 @@ jobs:
8989
docker build . --file ${{ matrix.version }}/debian/Dockerfile --tag $IMAGE_ID:${{ matrix.version }}
9090
9191
- name: Log into GitHub Container Registry
92-
run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
92+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
9393

9494
- name: Push image to GitHub Container Registry
9595
run: |
@@ -112,7 +112,7 @@ jobs:
112112
docker build . --file $LATEST_VERSION/debian/Dockerfile --tag $IMAGE_ID:latest
113113
114114
- name: Log into GitHub Container Registry
115-
run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
115+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
116116

117117
- name: Push image to GitHub Container Registry
118118
run: |

0 commit comments

Comments
 (0)