include production build

This commit is contained in:
Florian Herrengt 2022-12-05 23:50:47 +00:00
parent 4c5c7ef0e3
commit 4f28934bf7
2 changed files with 24 additions and 2 deletions

View File

@ -20,7 +20,5 @@ jobs:
- name: Setting up secrets
working-directory: kustomization/bases/secrets/
run: ./generate.sh
# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
- name: Deploy
run: ./kubectl --kubeconfig ./kube.config apply -k ./kustomization/overlays/staging

24
.github/workflows/production.yaml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Deploy app
on:
push:
branches:
- production
env:
ENCRYPTION_KEY: ${{ secrets.ENCRYPTION_KEY }}
DOCKERCONFIG_JSON: ${{ secrets.DOCKERCONFIG_JSON }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download kubectl
run: curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
- name: chmod kubectl
run: chmod +x ./kubectl
- name: Setting up kubeconfig
run: echo "${{ secrets.KUBE_CONFIG }}" > kube.config
- name: Setting up secrets
working-directory: kustomization/bases/secrets/
run: ./generate.sh
- name: Deploy
run: ./kubectl --kubeconfig ./kube.config apply -k ./kustomization/overlays/production