forked from kazuhisya/nodejs-rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
24 lines (23 loc) · 867 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
machine:
pre:
- echo 'DOCKER_OPTS="-s btrfs -e lxc -D --userland-proxy=false"' | sudo tee -a /etc/default/docker
- sudo curl -L -o /usr/bin/docker 'https://s3-external-1.amazonaws.com/circle-downloads/docker-1.9.0-circleci-cp-workaround'
- sudo chmod 0755 /usr/bin/docker
services:
- docker
dependencies:
override:
- docker info
- docker build -t kazuhisya/nodejs-rpm -f docker/Dockerfile-el7-copr .
test:
override:
- docker run -ti kazuhisya/nodejs-rpm /bin/true
- docker run -ti kazuhisya/nodejs-rpm node -v
post:
- docker cp $(docker ps -lq):/nodejs-rpm/dist $CIRCLE_ARTIFACTS
deployment:
copr:
branch: master
owner: kazuhisya
commands:
- docker run -e COPR_LOGIN=$COPR_LOGIN -e COPR_USERNAME=$COPR_USERNAME -e COPR_TOKEN=$COPR_TOKEN --entrypoint "/nodejs-rpm/copr-deploy.sh" kazuhisya/nodejs-rpm