diff --git a/.github/workflows/nomad-deploy.yml b/.github/workflows/nomad-deploy.yml index 21e2eb5..f9d8d2c 100644 --- a/.github/workflows/nomad-deploy.yml +++ b/.github/workflows/nomad-deploy.yml @@ -1,16 +1,17 @@ name: Deploy to Nomad on: - workflow_dispatch: workflow_run: - workflows: ["container-build.yml"] # Name of your build workflow + workflows: ["Build and Push Docker Image"] # Must match your build workflow name exactly types: - completed + workflow_dispatch: # Allows manual triggering for testing jobs: deploy: runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} + # Run if manually triggered OR if the build workflow succeeded + if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} steps: - name: Checkout code