From 2941523217ccf389ba59fae02f75e8714e9306c5 Mon Sep 17 00:00:00 2001 From: Jade Carino Date: Wed, 31 Jul 2024 14:38:55 +0100 Subject: [PATCH] Add health check step to workflow and trigger for gradle Signed-off-by: Jade Carino --- .github/workflows/build.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 8882366..0919fc2 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -117,4 +117,15 @@ jobs: ARGOCD_AUTH_TOKEN: ${{ secrets.ARGOCD_TOKEN }} run: | docker run --env ARGOCD_AUTH_TOKEN=${{ env.ARGOCD_AUTH_TOKEN }} --rm -v ${{ github.workspace }}:/var/workspace ghcr.io/galasa-dev/argocdcli:main app actions run gh-maven-repos restart --kind Deployment --resource-name wrapping-gh --server argocd.galasa.dev + + # Wait for the application to show as healthy in ArgoCD + - name: Wait for app health in ArgoCD + env: + ARGOCD_AUTH_TOKEN: ${{ secrets.ARGOCD_TOKEN }} + run: | + docker run --env ARGOCD_AUTH_TOKEN=${{ env.ARGOCD_AUTH_TOKEN }} --rm -v ${{ github.workspace }}:/var/workspace ghcr.io/galasa-dev/argocdcli:main app wait gh-maven-repos --resource apps:Deployment:wrapping-gh --health --server argocd.galasa.dev + + call-gradle-workflow: + needs: build-wrapping + uses: galasa-dev/gradle/.github/workflows/build.yaml@main \ No newline at end of file