-
Notifications
You must be signed in to change notification settings - Fork 91
/
Copy pathcircle.yml
33 lines (29 loc) · 1.12 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
machine:
image: circleci/classic:edge
services:
- docker
- setup_remote_docker
dependencies:
override:
- docker build -t docker-ssh .
test:
override:
- echo "no tests!"
deployment:
tags:
tag: /^[0-9]+\.[0-9]+\.[0-9]+$/
commands:
- docker tag docker-ssh jeroenpeeters/docker-ssh:${CIRCLE_TAG}
- MAJOR_VERSION=${CIRCLE_TAG/.*}; docker tag jeroenpeeters/docker-ssh:${CIRCLE_TAG} jeroenpeeters/docker-ssh:${MAJOR_VERSION}
- MINOR_VERSION=${CIRCLE_TAG%.*}; docker tag jeroenpeeters/docker-ssh:${CIRCLE_TAG} jeroenpeeters/docker-ssh:${MINOR_VERSION}
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push jeroenpeeters/docker-ssh
- docker push jeroenpeeters/docker-ssh:${CIRCLE_TAG}
- docker push jeroenpeeters/docker-ssh:${MINOR_VERSION}
- docker push jeroenpeeters/docker-ssh:${MAJOR_VERSION}
features:
branch: /^.*$/
commands:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker tag docker-ssh jeroenpeeters/docker-ssh:${CIRCLE_BRANCH}
- docker push jeroenpeeters/docker-ssh:${CIRCLE_BRANCH}