Skip to content

nurdsoft/deploy-nomad

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

Github Action to deploy a HCL format nomad job

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •