forked from igor-dmitriev/track
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
44 lines (41 loc) · 1.1 KB
/
docker-compose.yaml
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
40
41
42
43
44
version: '3.2'
services:
build-test:
image: maven:3.6.3-jdk-8-slim
command: |
mvn -T 1.5C clean package -DfailIfNoTests=true -Dproject.version=${VERSION:-1.0-SNAPSHOT}
working_dir: /app
environment:
AWS_PROFILE: dev/vault
AWS_DEFAULT_REGION: us-west-2
AWS_REGION: us-west-2
volumes:
- .:/app/
- ~/.m2/:/root/.m2/
- ~/.aws/:/root/.aws/:ro
deploy-snapshot:
image: maven:3.6.3-jdk-8-slim
command: |
mvn deploy -DskipTests=true
working_dir: /app
environment:
AWS_PROFILE: dev/vault
AWS_DEFAULT_REGION: us-west-2
AWS_REGION: us-west-2
volumes:
- .:/app/
- ~/.m2/:/root/.m2/
- ~/.aws/:/root/.aws/:ro
deploy-release:
image: maven:3.6.3-jdk-8
command: mvn -B -e gitflow:release -DreleaseVersion=$CIRCLE_TAG -DpostReleaseGoals='deploy -DskipTests'
working_dir: /app
environment:
AWS_PROFILE: dev/vault
AWS_DEFAULT_REGION: us-west-2
AWS_REGION: us-west-2
volumes:
- .:/app/
- ~/.m2/:/root/.m2/
- ~/.aws/:/root/.aws/:ro
- ~/.ssh/:/root/.ssh/:ro