Merge pull request #50 from HideyoshiNakazone/staging
Staging - Fixes dispatcher behavior
This commit is contained in:
1
.github/workflows/deploy-prod.yml
vendored
1
.github/workflows/deploy-prod.yml
vendored
@@ -48,3 +48,4 @@ jobs:
|
|||||||
sudo apt update && sudo apt install -y jq python3-pip
|
sudo apt update && sudo apt install -y jq python3-pip
|
||||||
cd infra-hideyoshi.com
|
cd infra-hideyoshi.com
|
||||||
./deploy.sh --prod
|
./deploy.sh --prod
|
||||||
|
./refresh.sh
|
||||||
7
.github/workflows/refresh-deployment.yml
vendored
7
.github/workflows/refresh-deployment.yml
vendored
@@ -1,11 +1,6 @@
|
|||||||
name: workflow_02
|
name: workflow_02
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_run:
|
|
||||||
workflows: ["build"]
|
|
||||||
branches: [main]
|
|
||||||
types:
|
|
||||||
- completed
|
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
types: [refresh-deployments]
|
types: [refresh-deployments]
|
||||||
|
|
||||||
@@ -21,7 +16,7 @@ jobs:
|
|||||||
- name: Executing Remote Commands - Refresh All Deployments
|
- name: Executing Remote Commands - Refresh All Deployments
|
||||||
env:
|
env:
|
||||||
deployments: ${{ github.event.client_payload.deployments }}
|
deployments: ${{ github.event.client_payload.deployments }}
|
||||||
if: ${{ env.deployments == '' || github.event.workflow_run.conclusion == 'success' }}
|
if: ${{ env.deployments == '' }}
|
||||||
uses: appleboy/ssh-action@master
|
uses: appleboy/ssh-action@master
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.SSH_HOST }}
|
host: ${{ secrets.SSH_HOST }}
|
||||||
|
|||||||
Reference in New Issue
Block a user