Skip to content

Maunal production deploy #87

Maunal production deploy

Maunal production deploy #87

Workflow file for this run

name: Maunal production deploy
on:
workflow_dispatch:
jobs:
back-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 prod
shell: bash
run: |
sed -i 's|<IMAGE>|'${{ env.image }}'|' $GITHUB_WORKSPACE/deployment/production/deployment.yaml
kubectl apply -f $GITHUB_WORKSPACE/deployment/production/deployment.yaml
kubectl apply -f $GITHUB_WORKSPACE/deployment/production/hpa.yaml
kubectl -n sub-id rollout status deployment/subid-back