-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
34 lines (32 loc) · 1.01 KB
/
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
29
30
31
32
33
34
machine:
services:
- docker
node:
version: 5.1.0
dependencies:
post:
- APP_VERSION=${CIRCLE_SHA1} PROD=1 ./node_modules/.bin/webpack
- docker build -t quay.io/ortoo/ortootech:${CIRCLE_SHA1} .
test:
override:
- "true"
deployment:
prod:
branch: master
commands:
- docker login -e "$DOCKER_EMAIL" -u "$DOCKER_USER" -p "$DOCKER_PASS" quay.io
- docker push quay.io/ortoo/ortootech
- >
curl -i -H "Authorization: token ${GITHUB_TOKEN}" -d "{ \
\"ref\": \"${CIRCLE_SHA1}\", \
\"required_contexts\": [],
\"auto_merge\": false, \
\"payload\": { \
\"image\": \"quay.io/ortoo/ortootech\", \
\"branch\": \"${CIRCLE_BRANCH}\", \
\"version\": \"${CIRCLE_SHA1}\", \
\"webserver\": true, \
\"webserverName\": \"ortoo\" \
}, \
\"environment\": \"production\" \
}" https://api.github.com/repos/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/deployments