Skip to content

Commit cb35a78

Browse files
committed
Simplify prod CD - no DB needed at build time
1 parent 720a8d8 commit cb35a78

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

.github/workflows/cd_prod.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,6 @@ jobs:
1919

2020
- name: Set up Docker Buildx
2121
uses: docker/setup-buildx-action@v2
22-
23-
- name: Set up kubectl
24-
uses: azure/setup-kubectl@v1
25-
with:
26-
version: 'latest'
27-
28-
- name: Set KUBECONFIG environment variable
29-
run: mkdir $HOME/.kube && echo $KUBE_POSTGRES_CONFIG | base64 -d > $HOME/.kube/config
30-
env:
31-
KUBE_POSTGRES_CONFIG: ${{ secrets.KUBE_POSTGRES_CONFIG }}
32-
33-
- name: Proxy Database using Kubernetes
34-
run: |
35-
kubectl port-forward svc/postgres 5432:5432 -n 100xdevs &
36-
sleep 5
3722

3823
- name: Build and push
3924
uses: docker/build-push-action@v4
@@ -42,8 +27,6 @@ jobs:
4227
file: ./Dockerfile.prod
4328
push: true
4429
tags: 100xdevs/dailycode:${{ github.sha }}
45-
build-args: |
46-
DATABASE_URL=${{ secrets.PROD_DATABASE }}
4730

4831
- name: Clone staging-ops repo, update, and push
4932
env:

0 commit comments

Comments
 (0)