forked from gliderlabs/registrator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
27 lines (27 loc) · 798 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
version: 2
jobs:
build:
machine: true
steps:
- checkout
- run:
command: make circleci
- run:
name: Build
command: make build
- store_artifacts:
path: build
- deploy:
name: Deploy website
command: |
if [[ "$CIRCLE_BRANCH" == "master" ]]; then
mv .dockerignore .dockerignore-repo
docker run -v /home/circleci/.ssh:/tmp/ssh -v $PWD:/work -e MASTER=$MASTER -e TAG=$TAG gliderlabs/pagebuilder deploy "build $CIRCLE_BUILD_NUM"
mv .dockerignore-repo .dockerignore
fi
- deploy:
name: Deploy beta channel
command: |
if [[ "$CIRCLE_BRANCH" == "release" ]]; then
make release
fi