Skip to content

Commit 67df3df

Browse files
committed
use kind internal registry to deploy
assisted-by: ClaudeCode Signed-off-by: Anand Kumar Singh <anandrkskd@gmail.com>
1 parent eafe562 commit 67df3df

1 file changed

Lines changed: 9 additions & 16 deletions

File tree

.github/workflows/deploy-test.yaml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: Build, Push, Deploy and Test on kind
1+
name: Build, Deploy and Test on kind
22

33
on:
44
pull_request:
55
branches:
66
- '*'
77

88
env:
9-
IMG: quay.io/redhat-developer/gitops-operator:pr-${{ github.event.pull_request.number }}-${{ github.run_id }}
9+
IMG: gitops-operator:test
1010

1111
jobs:
1212
deploy-test:
@@ -21,25 +21,18 @@ jobs:
2121
with:
2222
go-version-file: 'go.mod'
2323

24-
- name: Log in to Quay.io
25-
uses: docker/login-action@v3
24+
- name: Create kind cluster
25+
uses: helm/kind-action@v1
2626
with:
27-
registry: quay.io
28-
username: ${{ secrets.QUAY_USERNAME }}
29-
password: ${{ secrets.QUAY_PASSWORD }}
27+
cluster_name: gitops-test
3028

31-
- name: Build manager image with TTL label
29+
- name: Build manager image
3230
run: |
33-
docker build -t ${{ env.IMG }} --label quay.expires-after=1d .
31+
docker build -t ${{ env.IMG }} .
3432
35-
- name: Push image to Quay.io
33+
- name: Load image into kind
3634
run: |
37-
docker push ${{ env.IMG }}
38-
39-
- name: Create kind cluster
40-
uses: helm/kind-action@v1
41-
with:
42-
cluster_name: gitops-test
35+
kind load docker-image ${{ env.IMG }} --name gitops-test
4336
4437
- name: Install CRDs
4538
run: |

0 commit comments

Comments
 (0)