Skip to content

Instantly share code, notes, and snippets.

@dmc-at-work
Last active April 8, 2019 07:21
Show Gist options
  • Save dmc-at-work/ebeb6a8f6f59bcee541945ca95d0fb72 to your computer and use it in GitHub Desktop.
Save dmc-at-work/ebeb6a8f6f59bcee541945ca95d0fb72 to your computer and use it in GitHub Desktop.
CircleCI | Config | Sample | 00000
# config.yml
version: 2
jobs:
build:
docker:
- image: xxx/yyy:zzz
- image: aaa/bbb:ccc
# environment:
# HERE: CAN
# environment:
# UH: HUH
# parallelism: 3
steps:
- checkout
- run:
name: "Some Pre Tasks"
command: |
echo "..."
- run:
name: ""
command: |
echo "..."
- run:
name: "BASH_ENV Setup Sample"
command: |
echo "export X=$X" >> $BASH_ENV
echo "export Y=$Y" >> $BASH_ENV
echo "export Z=$Z" >> $BASH_ENV
source $BASH_ENV
- run:
name: "Some Command With Env Key"
command: |
echo "..."
environment:
SOME_ENV: some-protocol://domain/xyz
ANOTHER_ENV: nonprod-or-prod-maybe
- run:
name: ""
command: |
echo "..."
echo "..."
echo "..."
- run:
name: ""
command: |
echo "..."
echo "..."
echo "..."
- run:
name: "Some Post Tasks"
command: |
echo "..."
echo "..."
echo "..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment