Skip to content

Commit 13fb949

Browse files
committed
Added ci
1 parent 165dc08 commit 13fb949

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/cd_prod.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@ jobs:
1919
- name: Set up Docker Buildx
2020
uses: docker/setup-buildx-action@v2
2121

22+
# Set up Kubernetes CLI and configure access
23+
- name: Set up kubectl
24+
uses: azure/setup-kubectl@v1
25+
with:
26+
kubeconfig: ${{ secrets.KUBE_POSTGRES_CONFIG }}
27+
28+
# Proxy the database (use kubectl port-forward or other mechanisms)
29+
- name: Proxy Database using Kubernetes
30+
run: |
31+
kubectl port-forward svc/postgres 5432:5432 -n postgres
32+
sleep 5
33+
2234
- name: Build and push
2335
uses: docker/build-push-action@v4
2436
with:

0 commit comments

Comments
 (0)