-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
39 lines (34 loc) · 1.09 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
35
36
37
38
39
machine:
services:
- docker
# node:
# version: 7.5.0
environment:
DOCKER_CERT_PATH: .cloud_hero
DOCKER_HOST: tcp://swarm3856.chapi.co:8443
DOCKER_TLS_VERIFY: 1
#checkout:
# post:
# - git submodule sync
# - git submodule update --init
#dependencies:
# override:
# - wget https://dl.eff.org/certbot-auto
test:
override:
- echo "ok"
# - npm run lint
deployment:
gcloud:
branch: master
commands:
- mkdir -p $DOCKER_CERT_PATH
- curl -s https://portal.cloudhero.io/bootstrap/TDU7YW29XKKJ84IH7ISXUAIYY78047FC/ca > $DOCKER_CERT_PATH/ca.pem
- curl -s https://portal.cloudhero.io/bootstrap/TDU7YW29XKKJ84IH7ISXUAIYY78047FC/cert > $DOCKER_CERT_PATH/cert.pem
- curl -s https://portal.cloudhero.io/bootstrap/TDU7YW29XKKJ84IH7ISXUAIYY78047FC/key > $DOCKER_CERT_PATH/key.pem
- docker stop paintball
- docker rm paintball
- docker rmi paintball:v0.1
- docker build -t paintball:v0.1 .
# - docker run --name paintball -p 80:8080 -p 443:8443 -t paintball:v0.1
- docker run --name paintball -p 3010:3000 -t paintball:v0.1