This Github action allows you to submit an HCL nomad job to an endpoint. It works in concert with https://github.com/nurdsoft/deployer-nomad-aws which provides the wiring from the internet to an internal nomad cluster.
| Parameter | Description |
|---|---|
| token | Authentication token |
| endpoint | Endpoint where the HCL Nomad job will be submitted |
| job | Path to the nomad job |
| variables | Variables to pass to the job |
All parameters are required.
jobs:
deploy:
steps:
- name: "Deploy to Nomad"
uses: nurdsoft/deploy-nomad
with:
token: ${{ secrets.NOMAD_DEPLOY_TOKEN }}
endpoint: https://nomad.domain.com/v1/jobs
job: deploy.nomadjobs:
deploy:
steps:
- name: "Deploy to Nomad"
uses: nurdsoft/deploy-nomad
with:
token: ${{ secrets.NOMAD_DEPLOY_TOKEN }}
endpoint: https://nomad.domain.com/v1/jobs
job: deploy.nomad
variables: 'environment="dev"&count=1&force=false'