File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change 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
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 :
You can’t perform that action at this time.
0 commit comments