diff --git a/.github/actions/common-cd-setup/action.yaml b/.github/actions/common-cd-setup/action.yaml index 3504ff0..e8e33b4 100644 --- a/.github/actions/common-cd-setup/action.yaml +++ b/.github/actions/common-cd-setup/action.yaml @@ -75,12 +75,3 @@ runs: kubectl apply -f $GITHUB_WORKSPACE/deployment/${{ inputs.app_input }}/daemon.yaml kubectl -n sub-id rollout status daemonset/back-ready kubectl delete -f $GITHUB_WORKSPACE/deployment/${{ inputs.app_input }}/daemon.yaml - - - name: Deploy ${{ inputs.app_input }} - if: github.ref == 'refs/heads/main' && inputs.prod_deploy == true - shell: bash - run: | - sed -i 's||'${{ env.image }}'|' $GITHUB_WORKSPACE/deployment/${{ inputs.app_input }}/deployment.yaml - kubectl apply -f $GITHUB_WORKSPACE/deployment/${{ inputs.app_input }}/deployment.yaml - kubectl -n sub-id rollout status deployment/subid-back - kubectl create -f $GITHUB_WORKSPACE/deployment/${{ inputs.app_input }}/hpa.yaml diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index b4f2843..edd4dee 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -21,3 +21,11 @@ jobs: mail_input: ${{ secrets.CF_MAIL }} tokens_input: ${{ secrets.CF_TOKEN }} prod_deploy: "true" + + + - name: Deploy prod + shell: bash + run: | + sed -i 's||'${{ env.image }}'|' $GITHUB_WORKSPACE/deployment/production/deployment.yaml + kubectl apply -f $GITHUB_WORKSPACE/deployment/production/ + kubectl -n sub-id rollout status deployment/subid-back