From 16f96d6b22433e4999e436564574e667194f9204 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Fri, 3 May 2024 10:54:37 -0700 Subject: [PATCH] gate the argo tep on docker finishing gate the argo tep on docker finishing gate the argo tep on docker finishing --- .gitea/workflows/build-and-push.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-and-push.yaml b/.gitea/workflows/build-and-push.yaml index fb9ac652..b7867824 100755 --- a/.gitea/workflows/build-and-push.yaml +++ b/.gitea/workflows/build-and-push.yaml @@ -44,7 +44,7 @@ jobs: Build-and-Push-Docker: needs: detect-changed-files - if: ${{ needs.detect-changed-files.outputs.python_files == 'true' }} + if: ${{ (needs.detect-changed-files.outputs.python_files == 'true') && (steps.Lint-Python.outcome == 'success') }} steps: - name: Login to Docker Hub if: github.event_name != 'pull_request' @@ -68,7 +68,7 @@ jobs: sync-argocd-app: needs: [detect-changed-files, Build-and-Push-Docker] - if: ${{ needs.detect-changed-files.outputs.python_files == 'true' }} + if: ${{ (needs.detect-changed-files.outputs.python_files == 'true') && (steps.Build-and-Push-Docker.outcome == 'success') }} steps: - name: Sync app in ArgoCD uses: clowdhaus/argo-cd-action/@main