This repo will take a Nomad job, replace a string of "[[.version]]" with the input Docker tag, authorize itself with an AWS security group, and deploy the job file.
Variable | Details | Example |
---|---|---|
AWS_ACCESS_KEY_ID | AWS Access Key for security group authorization. | AKIAIOSFODNN7EXAMPLE |
AWS_SECRET_ACCESS_KEY | AWS Secret Access Key for security group authorization. | wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY |
AWS_REGION | The region of the security group to whitelist | us-east-2 |
AWS_SECURITY_GROUP | AWS Security Group to allow deployment through. | sg-087a364e3473445852 |
NOMAD_JOB | The Nomad job file path. | nomad-jobs/dev/app.nomad |
DOCKER_TAG | The Docker tag to replace before deploying. | latest |
NOMAD_ADDR | The remote Nomad url. | https://example.com |
NOMAD_PORT | The remote Nomad port. | 4646 |
USE_LEVANT | Deploy using Levant instead of Nomad | false |
LEVANT_VERSION | Levant version to use | 0.2.8 |
LEVANT_PROMOTE_TIME | Time before calling Levant's auto_promote | 45 |