Skip to content

Commit 87474d8

Browse files
committed
Add PAT in the repo secret and use it for pushing kind image to personal repo
Signed-off-by: Unnati Mishra <unnati.mishra@broadcom.com>
1 parent 6a5fa27 commit 87474d8

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/nightly-build-kind-images.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@ jobs:
9696
uses: actions/setup-go@v5
9797
with:
9898
go-version: '1.23'
99+
100+
- name: Login to GitHub Container Registry
101+
uses: docker/login-action@v3
102+
with:
103+
registry: ghcr.io
104+
username: codesbyunnati
105+
password: ${{ secrets.GHCR_PAT }}
99106

100107
- name: Build and Push Kind Node Image
101108
run: |

.github/workflows/nightly-e2e.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ jobs:
4747
TAG="${{ matrix.k8s_version }}-${TIMESTAMP}"
4848
echo "full_image=${{ env.KIND_NODE_IMAGE_BASE }}:$TAG" >> $GITHUB_ENV
4949
50+
- name: Login to GitHub Container Registry
51+
uses: docker/login-action@v3
52+
with:
53+
registry: ghcr.io
54+
username: codesbyunnati
55+
password: ${{ secrets.GHCR_PAT }}
56+
5057
- name: Create Kind Cluster (Nightly)
5158
uses: helm/kind-action@v1
5259
with:

0 commit comments

Comments
 (0)