Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Latest commit

 

History

History
37 lines (28 loc) · 1.08 KB

README.md

File metadata and controls

37 lines (28 loc) · 1.08 KB

Nomad Deploy

Small GitHub Action that runs nomad job run ... with the Nomad CLI.

Usage

Straightforward checkout then publish

name: Deploy Nomad Job
on: [push]
jobs:
  deploy:
    name: Nomad Deploy
    runs-on: ubuntu-latest
    steps:
      - name: Checkout the code
        uses: actions/checkout@v1

      - name: Deploy with Nomad
        uses: marfatech/nomad-deploy
        with:
          token: ${{ secrets.YOUR_NOMAD_SECRET }}
          address: ${{ secrets.YOUR_NOMAD_SERVER }}
          job: path/to/your/nomad/job/file
          config: path/to/your/levant/config/file

Parameters

  • token: passed as -token= to the nomad job run command (see here how to get one)
  • address: public address of a nomad server (passed as -address=)
  • job: path to the nomad job specification to run (defined according to the spec here)
  • config: path to the levant config file
  • levant_args: additional levant args. such as -force