diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index de635d58..ebf15760 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,6 +1,7 @@ name: Main build on: + workflow_dispatch: push: branches: [main] @@ -79,4 +80,21 @@ 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 extensions-gh --server argocd.galasa.dev - \ No newline at end of file + + - 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:extensions-gh --health --server argocd.galasa.dev + + trigger-managers-workflow: + name: Trigger Managers workflow + runs-on: ubuntu-latest + needs: build-extensions + + steps: + - name: Trigger Managers workflow dispatch event with GitHub CLI + env: + GH_TOKEN: ${{ secrets.GALASA_TEAM_GITHUB_TOKEN }} + run: | + gh workflow run build.yaml --repo https://github.com/galasa-dev/managers \ No newline at end of file