-
Notifications
You must be signed in to change notification settings - Fork 2
/
wercker.yml
63 lines (56 loc) · 2.42 KB
/
wercker.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
59
60
61
62
63
build:
box: maven:3.5.2-jdk-8
steps:
- edgecaseadmin/install-aws-cli:
key: $AWS_ACCESS_KEY_ID
secret: $AWS_SECRET_ACCESS_KEY
region: $AWS_DEFAULT_REGION
- script:
name: Run Maven upload
code: |
echo $GOOGLE_PLAY_KEY > diagnosisview-api/src/main/resources/google-play-key.json
echo $GOOGLE_PLAY_KEY > diagnosisview-service/src/main/resources/google-play-key.json
mvn clean install -DskipTests=true -P staging
deploy:
box: maven:3.5.2-jdk-8
steps:
- edgecaseadmin/install-aws-cli:
key: $AWS_ACCESS_KEY_ID
secret: $AWS_SECRET_ACCESS_KEY
region: $AWS_DEFAULT_REGION
- script:
name: Run Maven upload
code: |
echo $GOOGLE_PLAY_KEY > diagnosisview-api/src/main/resources/google-play-key.json
echo $GOOGLE_PLAY_KEY > diagnosisview-service/src/main/resources/google-play-key.json
mvn clean install -DskipTests=true -P staging
cd diagnosisview-api
mvn -Dfile.encoding=UTF-8 -DskipTests=true beanstalk:clean-previous-versions beanstalk:upload-source-bundle beanstalk:create-application-version beanstalk:update-environment -f pom.xml -P $WERCKER_GIT_BRANCH
build-production:
box: maven:3.5.2-jdk-8
steps:
- edgecaseadmin/install-aws-cli:
key: $AWS_ACCESS_KEY_ID
secret: $AWS_SECRET_ACCESS_KEY
region: $AWS_DEFAULT_REGION
- script:
name: Run Maven upload
code: |
echo $GOOGLE_PLAY_KEY > diagnosisview-api/src/main/resources/google-play-key.json
echo $GOOGLE_PLAY_KEY > diagnosisview-service/src/main/resources/google-play-key.json
mvn clean install -DskipTests=true -P production
deploy-production:
box: maven:3.5.2-jdk-8
steps:
- edgecaseadmin/install-aws-cli:
key: $AWS_ACCESS_KEY_ID
secret: $AWS_SECRET_ACCESS_KEY
region: $AWS_DEFAULT_REGION
- script:
name: Run Maven upload
code: |
echo $GOOGLE_PLAY_KEY > diagnosisview-api/src/main/resources/google-play-key.json
echo $GOOGLE_PLAY_KEY > diagnosisview-service/src/main/resources/google-play-key.json
mvn clean install -DskipTests=true -P production
cd diagnosisview-api
mvn -Dfile.encoding=UTF-8 -DskipTests=true beanstalk:clean-previous-versions beanstalk:upload-source-bundle beanstalk:create-application-version beanstalk:update-environment -f pom.xml -P $WERCKER_GIT_BRANCH