Skip to content

Commit

Permalink
Added ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hkirat committed Nov 28, 2024
1 parent 165dc08 commit 13fb949
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/cd_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

# Set up Kubernetes CLI and configure access
- name: Set up kubectl
uses: azure/setup-kubectl@v1
with:
kubeconfig: ${{ secrets.KUBE_POSTGRES_CONFIG }}

# Proxy the database (use kubectl port-forward or other mechanisms)
- name: Proxy Database using Kubernetes
run: |
kubectl port-forward svc/postgres 5432:5432 -n postgres
sleep 5
- name: Build and push
uses: docker/build-push-action@v4
with:
Expand Down

0 comments on commit 13fb949

Please sign in to comment.