Skip to content

Simple Nomad container. Useful for deployments.

License

Notifications You must be signed in to change notification settings

sas1024/nomad-ci

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Nomad CI image

This image will be useful for deploying Nomad jobs to Gitlab CI or any other.

Gitlab CI Example

nomad-deploy:
  cache: {}
  variables:
    GIT_STRATEGY: none
  image: sas1024/nomad-ci
  stage: deploy
  script:
    - CI_NOMAD_JOB=deployments/job.nomad
    - export NOMAD_ADDR=$NOMAD_NODE
    - nomad validate $CI_NOMAD_JOB
    - nomad plan $CI_NOMAD_JOB || if [ $? -eq 255 ]; then exit 255; else echo "success"; fi
    - nomad run $CI_NOMAD_JOB

About

Simple Nomad container. Useful for deployments.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%