Manual production deploy #119
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |