From 834da0bef3e67b569612ce5f69a1d0f8fbdf8367 Mon Sep 17 00:00:00 2001 From: Gino Canessa Date: Thu, 29 Aug 2024 10:55:38 -0500 Subject: [PATCH] Fix action triggers so deployment is after publish --- .github/workflows/argo-ris.yml | 8 +++++--- .github/workflows/ghcr-docker.yml | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/argo-ris.yml b/.github/workflows/argo-ris.yml index 6847f0e..9c97c67 100644 --- a/.github/workflows/argo-ris.yml +++ b/.github/workflows/argo-ris.yml @@ -1,12 +1,14 @@ name: Restart Deployment on: - push: - branches: - - main + workflow_dispatch: + workflow_run: + workflows: ['Publish on GitHub Container Registry'] + types: [completed] jobs: restart_deployment: runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - name: Configure Kubectl env: diff --git a/.github/workflows/ghcr-docker.yml b/.github/workflows/ghcr-docker.yml index c8e2e85..d759c03 100644 --- a/.github/workflows/ghcr-docker.yml +++ b/.github/workflows/ghcr-docker.yml @@ -1,4 +1,4 @@ -name: Create and publish a Docker image on GitHub Container Registry +name: Publish on GitHub Container Registry # Basics from https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions on: push: