From 04e10614b5d4c3f23076c006be9bc4102b757bc4 Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Mon, 23 Oct 2023 21:12:01 -0300 Subject: [PATCH] Adds Deployment Dispatcher --- .github/workflows/docker-publish.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 91f9315..3d9fde2 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -28,4 +28,16 @@ jobs: uses: docker/build-push-action@v2 with: push: true - tags: yoshiunfriendly/storage-hideyoshi.com:latest \ No newline at end of file + tags: yoshiunfriendly/storage-hideyoshi.com:latest + + run-dispatcher: + needs: docker + runs-on: ubuntu-latest + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - name: Runs Infra-Hideyoshi.com Deployment Dispatcher + run: | + curl -X POST https://api.github.com/repos/HideyoshiNakazone/infra-hideyoshi.com/dispatches \ + -H 'Accept: application/vnd.github.everest-preview+json' \ + -u ${{ secrets.ACTIONS_KEY }} \ + --data '{"event_type": "refresh-deployments", "client_payload": { "deployments": "storage-deployment storage-processor-deployment" }}' \ No newline at end of file