-
Notifications
You must be signed in to change notification settings - Fork 6
32 lines (28 loc) · 1.09 KB
/
manual.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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