-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
28 lines (27 loc) · 994 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
28
machine:
services:
- docker
- cassandra
deployment:
production:
tag: /release-.*/
commands:
- lein clean
- lein uberjar
- docker build -t mastodonc/witan.app .
- docker tag -f mastodonc/witan.app mastodonc/witan.app:latest
- docker tag -f mastodonc/witan.app mastodonc/witan.app:git-$(echo $CIRCLE_SHA1 | cut -c1-12)
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push mastodonc/witan.app
- ./deploy.sh $DEPLOY_IP production
staging:
branch: master
commands:
- lein clean
- lein uberjar
- docker build -t mastodonc/witan.app .
- docker tag -f mastodonc/witan.app mastodonc/witan.app:latest
- docker tag -f mastodonc/witan.app mastodonc/witan.app:git-$(echo $CIRCLE_SHA1 | cut -c1-12)
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push mastodonc/witan.app
- ./deploy.sh sandpit-staging-deploy.mastodonc.net staging