Skip to content

Commit 2a81c07

Browse files
committed
Auto build and deploy
1 parent 7f709a5 commit 2a81c07

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
version: 2
2+
jobs:
3+
build_and_deploy:
4+
docker:
5+
- image: verdigristech/ci-node
6+
working_directory: ~/docker-ci-node
7+
steps:
8+
- checkout
9+
- setup_remote_docker
10+
- run:
11+
name: Login to Docker Cloud
12+
command: echo "$DOCKER_PASS" | docker login -u $DOCKER_USER --password-stdin
13+
- run:
14+
name: Build Docker image
15+
command: docker build -t verdigristech/ci-node .
16+
- run:
17+
name: Deploy container
18+
command: docker push verdigristech/ci-node
19+
20+
workflows:
21+
version: 2
22+
build_and_deploy:
23+
jobs:
24+
- build_and_deploy:
25+
context: common
26+
filters:
27+
tags:
28+
only: /v\d+(\.\d+)*/
29+
branches:
30+
ignore: /.*/

0 commit comments

Comments
 (0)