forked from subzerocloud/subzero-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
32 lines (29 loc) · 842 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
29
30
31
32
machine:
node:
version: 7.10.0
services:
- docker
dependencies:
pre:
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
# override:
# - npm install -g pkg
# - go get -u github.com/tcnksm/ghr
compile:
override:
- npm install
- npm run build
test:
override:
- echo "test"
deployment:
release:
tag: /v[0-9]+(\.[0-9]+)*/
commands:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker build --build-arg APGDIFF_VERSION=2.5.4 -t subzero-cli-tools .
- docker tag subzero-cli-tools subzerocloud/subzero-cli-tools:$CIRCLE_TAG
- docker push subzerocloud/subzero-cli-tools:$CIRCLE_TAG
- docker tag subzero-cli-tools subzerocloud/subzero-cli-tools:latest
- docker push subzerocloud/subzero-cli-tools:latest
- npm publish