sync
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m59s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m59s
This commit is contained in:
7
.github/workflows/nomad-deploy.yml
vendored
7
.github/workflows/nomad-deploy.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user