Skip to content

Manual production deploy #119

Manual production deploy

Manual production deploy #119

Workflow file for this run

name: Manual production deploy
on:
workflow_dispatch:
jobs:
front-prod-deploy:
name: prod-deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: deploy prod
uses: './.github/actions/common-cd-setup'
with:
token_input: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN_PROD }}
k8s_input: ${{ secrets.K8S_PROD }}
app_input: "production"
zone_input: ${{ secrets.CF_ZONE }}
mail_input: ${{ secrets.CF_MAIL }}
tokens_input: ${{ secrets.CF_TOKEN }}
prod_deploy: "true"
- name: Deploy production
shell: bash
run: |
sed -i 's|<IMAGE>|'${{ env.image }}'|' $GITHUB_WORKSPACE/deployment/production/deployment.yaml
kubectl delete -f $GITHUB_WORKSPACE/deployment/production/hpa.yaml --ignore-not-found=true
kubectl apply -f $GITHUB_WORKSPACE/deployment/production/deployment.yaml
kubectl -n sub-id rollout status deployment/subid-front
kubectl create -f $GITHUB_WORKSPACE/deployment/production/hpa.yaml