-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
34 lines (32 loc) · 925 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
33
34
version: 2
jobs:
build-n-deploy:
machine: true
steps:
- checkout
- run:
name: Build
command: docker build -t lag-api:${CIRCLE_TAG} .
- run:
name: Test
command: |
docker run -p 80:8888 -d lag-api:${CIRCLE_TAG} -proxy http://httpbin.org
curl --fail localhost/user-agent
- run:
name: Deploy
command: |
docker login -u ${DOCKER_USER} -p ${DOCKER_PASS}
docker tag lag-api:${CIRCLE_TAG} raittes/lag-api:${CIRCLE_TAG}
docker push raittes/lag-api:${CIRCLE_TAG}
docker tag lag-api:${CIRCLE_TAG} raittes/lag-api:latest
docker push raittes/lag-api:latest
workflows:
version: 2
build-n-deploy:
jobs:
- build-n-deploy:
filters:
tags:
only: /.*/
branches:
ignore: /.*/