Fixes Desired Behavior

This commit is contained in:
2023-10-23 20:09:30 -03:00
parent 57d1cf5453
commit 7b42f97248
3 changed files with 3 additions and 7 deletions

View File

@@ -48,3 +48,4 @@ jobs:
sudo apt update && sudo apt install -y jq python3-pip
cd infra-hideyoshi.com
./deploy.sh --staging
./refresh.sh

View File

@@ -14,7 +14,6 @@ jobs:
name: Refresh deployments
environment: prod
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v3
@@ -22,7 +21,7 @@ jobs:
- name: Executing Remote Commands - Refresh All Deployments
env:
deployments: ${{ github.event.client_payload.deployments }}
if: ${{ env.deployments == '' }}
if: ${{ env.deployments == '' || github.event.workflow_run.conclusion == 'success' }}
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}

View File

@@ -109,10 +109,6 @@ function main() {
kubectl apply -f \
./deployment/cert-manager/cert-manager-certificate.yaml
if [[ $1 == "--staging" || $1 == "-s" ]]; then
bash ./refresh.sh
fi
fi
exit 0