-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (58 loc) · 2.27 KB
/
docker-compose.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: '3'
services:
test:
volumes:
- .:/code
working_dir: /code
user: ${MY_USER:-root}
image: openjdk:8
environment:
RAPPIPAY_ARTIFACT_S3_URL: ${RAPPIPAY_ARTIFACT_S3_URL}
RAPPIPAY_ARTIFACT_KEY_ID: ${RAPPIPAY_ARTIFACT_KEY_ID}
RAPPIPAY_ARTIFACT_SECRET_ID: ${RAPPIPAY_ARTIFACT_SECRET_ID}
NEXUS_USERNAME_REPOSITORY: ${NEXUS_USERNAME}
NEXUS_PASSWORD_REPOSITORY: ${NEXUS_PASSWORD}
NEXUS_URL_REPOSITORY: "${NEXUS_URL}/repository/maven2-hosted"
command: bash -c "./gradlew -g ./.gradle-cache test --info"
publishToNexus:
volumes:
- .:/code
working_dir: /code
user: ${MY_USER:-root}
image: openjdk:8
environment:
NEXUS_USERNAME_REPOSITORY: ${NEXUS_USERNAME}
NEXUS_PASSWORD_REPOSITORY: ${NEXUS_PASSWORD}
NEXUS_URL_REPOSITORY: "${NEXUS_URL}/repository/maven2-hosted"
RAPPIPAY_ARTIFACT_S3_URL: ${RAPPIPAY_ARTIFACT_S3_URL}
RAPPIPAY_ARTIFACT_KEY_ID: ${RAPPIPAY_ARTIFACT_KEY_ID}
RAPPIPAY_ARTIFACT_SECRET_ID: ${RAPPIPAY_ARTIFACT_SECRET_ID}
command: bash -c "./gradlew -g ./.gradle-cache cleanNexus publishMavenPublicationToMavenRepository --info"
publishToS3:
volumes:
- .:/code
working_dir: /code
user: ${MY_USER:-root}
image: openjdk:8
environment:
NEXUS_USERNAME_REPOSITORY: ${NEXUS_USERNAME}
NEXUS_PASSWORD_REPOSITORY: ${NEXUS_PASSWORD}
NEXUS_URL_REPOSITORY: "${NEXUS_URL}/repository/maven2-hosted"
RAPPIPAY_ARTIFACT_S3_URL: ${RAPPIPAY_ARTIFACT_S3_URL}
RAPPIPAY_ARTIFACT_KEY_ID: ${RAPPIPAY_ARTIFACT_KEY_ID}
RAPPIPAY_ARTIFACT_SECRET_ID: ${RAPPIPAY_ARTIFACT_SECRET_ID}
command: bash -c "./gradlew -g ./.gradle-cache publishMavenPublicationToS3BucketRepository --info"
notifyProject:
volumes:
- .:/code
working_dir: /code
user: ${MY_USER:-root}
image: openjdk:8
environment:
NEXUS_USERNAME_REPOSITORY: ${NEXUS_USERNAME}
NEXUS_PASSWORD_REPOSITORY: ${NEXUS_PASSWORD}
NEXUS_URL_REPOSITORY: "${NEXUS_URL}/repository/maven2-hosted"
RAPPIPAY_ARTIFACT_S3_URL: ${RAPPIPAY_ARTIFACT_S3_URL}
RAPPIPAY_ARTIFACT_KEY_ID: ${RAPPIPAY_ARTIFACT_KEY_ID}
RAPPIPAY_ARTIFACT_SECRET_ID: ${RAPPIPAY_ARTIFACT_SECRET_ID}
command: bash -c "./gradlew -g ./.gradle-cache notifyProject --info"