Forked from PepijnK/gist:a976bdef50b8ccdbcc3dfcc217df74e9
Last active
July 4, 2016 14:31
-
-
Save toonverbeek/0902757325dba334a32dcf8e0458cd80 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
no-response-timeout: 15 | |
command-timeout: 30 | |
box: maven:3-jdk-8 | |
### This is going to be your first pipeline to get executed in your Workflow | |
build: | |
steps: | |
- script: | |
name: maven build | |
code: | | |
mvn package | |
# This pipeline, alongside push-dev-auth should get triggered in parallel once the build pipeline finishes | |
push-dev-api: | |
box: java:8-jre | |
steps: | |
- script: | |
name: copy artifacts | |
code: | | |
rm -rf $WERCKER_OUTPUT_DIR/* | |
cp api/target/api.jar / | |
cp auth/target/auth.jar / | |
- script: | |
name: cleaning | |
code: | | |
rm -rf /pipeline/source /pipeline/cache /pipeline/script-* | |
- internal/docker-push: | |
aws-access-key: $AWS_ACCESS_KEY_ID | |
aws-secret-key: $AWS_SECRET_ACCESS_KEY | |
aws-region: $AWS_REGION | |
aws-registry-id: $AWS_REGISTRY_ID | |
repository: api | |
disable-sync: true | |
volumes: /tmp | |
ports: 9001 | |
cmd: java -Djava.security.egd=file:/dev/./urandom -jar /api.jar | |
tag: $WERCKER_GIT_COMMIT | |
push-dev-auth | |
box: java:8-jre | |
steps: | |
- script: | |
name: copy artifacts | |
code: | | |
rm -rf $WERCKER_OUTPUT_DIR/* | |
rm api/target/api.jar | |
mv auth/target/auth.jar / | |
- script: | |
name: cleaning | |
code: | | |
rm -rf /pipeline/source /pipeline/cache /pipeline/script-* | |
- internal/docker-push: | |
aws-access-key: $AWS_ACCESS_KEY_ID | |
aws-secret-key: $AWS_SECRET_ACCESS_KEY | |
aws-region: $AWS_REGION | |
aws-registry-id: $AWS_REGISTRY_ID | |
repository: auth | |
disable-sync: true | |
volumes: /tmp | |
ports: 9003 | |
cmd: java -Djava.security.egd=file:/dev/./urandom -jar /auth.jar | |
tag: $WERCKER_GIT_COMMIT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment