Last active
January 30, 2017 18:17
-
-
Save chesleybrown/5b4cb256f5d04fd329db21edcc0cba61 to your computer and use it in GitHub Desktop.
Using environment variable within codeship command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
awsdeployment: | |
image: alpine:3.5 | |
environment: | |
- AWS_DEFAULT_REGION=us-east-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Deploy to S3 | |
service: awsdeployment | |
command: sh -c "echo hello $AWS_DEFAULT_REGION" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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