From fbe39b62c247a632c1ac49e78a599949964cdfb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alessandro=20Pezz=C3=A8?= Date: Sat, 5 Jun 2021 22:26:39 +0200 Subject: [PATCH] feat: run kustomize action after image is created --- .github/workflows/kustomize.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/kustomize.yml b/.github/workflows/kustomize.yml index 187a4638..9e0d75ca 100644 --- a/.github/workflows/kustomize.yml +++ b/.github/workflows/kustomize.yml @@ -1,17 +1,18 @@ name: Deploy Kustomize k8s cluster on: - pull_request: - push: - branches: - - 'master' - - 'staging' + workflow_run: + workflows: ["Build and Push Docker image"] + branches: [master, staging] + types: + - completed schedule: - cron: '0 0 1 * *' jobs: create-kustomize-cluster: runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - name: Checkout uses: actions/checkout@v2