From e03fafa5f672f0cdf0f0a9e9afeea898a0c49f01 Mon Sep 17 00:00:00 2001 From: oap75 Date: Tue, 19 Mar 2024 13:33:34 +0200 Subject: [PATCH] fix: CI --- .github/actions/common-cd-setup/action.yaml | 10 ---------- .github/dependabot.yml | 1 + .github/workflows/manual.yml | 9 +++++++++ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/actions/common-cd-setup/action.yaml b/.github/actions/common-cd-setup/action.yaml index 304e6db3..13370159 100644 --- a/.github/actions/common-cd-setup/action.yaml +++ b/.github/actions/common-cd-setup/action.yaml @@ -77,13 +77,3 @@ runs: kubectl apply -f $GITHUB_WORKSPACE/deployment/${{ inputs.app_input }}/daemon.yaml kubectl -n sub-id rollout status daemonset/front-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 delete -f $GITHUB_WORKSPACE/deployment/${{ inputs.app_input }}/hpa.yaml --ignore-not-found=true - kubectl apply -f $GITHUB_WORKSPACE/deployment/${{ inputs.app_input }}/deployment.yaml - kubectl -n sub-id rollout status deployment/subid-front - kubectl create -f $GITHUB_WORKSPACE/deployment/${{ inputs.app_input }}/hpa.yaml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f1d32c03..b04e3781 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,6 +6,7 @@ updates: reviewers: - "oap75" - "samchuk-vlad" + - "iv1310" schedule: interval: "weekly" commit-message: diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index 104924c8..751ac664 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -22,3 +22,12 @@ jobs: mail_input: ${{ secrets.CF_MAIL }} tokens_input: ${{ secrets.CF_TOKEN }} prod_deploy: "true" + + - name: Deploy production + shell: bash + run: | + sed -i 's||'${{ 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