Skip to content

Deploy a Nomad Job

Actions
Deploys a HCL nomad job
v0.4.1
Latest
Star (1)

Tags

 (1)

deploy-nomad

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.

Usage

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.

Example

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.nomad
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.nomad
          variables: 'environment="dev"&count=1&force=false'

Deploy a Nomad Job is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Deploys a HCL nomad job
v0.4.1
Latest

Tags

 (1)

Deploy a Nomad Job is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.