Skip to content

Instantly share code, notes, and snippets.

@chesleybrown
Last active January 30, 2017 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chesleybrown/5b4cb256f5d04fd329db21edcc0cba61 to your computer and use it in GitHub Desktop.
Save chesleybrown/5b4cb256f5d04fd329db21edcc0cba61 to your computer and use it in GitHub Desktop.
Using environment variable within codeship command
awsdeployment:
image: alpine:3.5
environment:
- AWS_DEFAULT_REGION=us-east-1
- name: Deploy to S3
service: awsdeployment
command: sh -c "echo hello $AWS_DEFAULT_REGION"
jet steps
{StepStarted=step_name:"Deploy to S3"}
{ContainerRunStdout=step_name:"Deploy to S3" service_name:"awsdeployment"}: hello us-east-1
{StepFinished=step_name:"Deploy to S3" type:STEP_FINISHED_TYPE_SUCCESS}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment