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
|
name: Deploy to Nomad
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
|
||||||
workflow_run:
|
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:
|
types:
|
||||||
- completed
|
- completed
|
||||||
|
workflow_dispatch: # Allows manual triggering for testing
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
|||||||
Reference in New Issue
Block a user