Move artifacts to folder, then deploy folder to S3
This commit is contained in:
parent
cb5a7a5773
commit
cf040af06b
13
.travis.yml
13
.travis.yml
@ -13,8 +13,12 @@ before_deploy:
|
|||||||
- export WEBGOAT_ARTIFACT_VERSION=$(grep "<version>" $HOME/build/$TRAVIS_REPO_SLUG/pom.xml | cut -d ">" -f 2 | cut -d "<" -f 1)
|
- export WEBGOAT_ARTIFACT_VERSION=$(grep "<version>" $HOME/build/$TRAVIS_REPO_SLUG/pom.xml | cut -d ">" -f 2 | cut -d "<" -f 1)
|
||||||
- export WEBGOAT_JAR_FILE=$HOME/build/$TRAVIS_REPO_SLUG/webgoat-container/target/webgoat-container-$WEBGOAT_ARTIFACT_VERSION-war-exec.jar
|
- export WEBGOAT_JAR_FILE=$HOME/build/$TRAVIS_REPO_SLUG/webgoat-container/target/webgoat-container-$WEBGOAT_ARTIFACT_VERSION-war-exec.jar
|
||||||
- export WEBGOAT_WAR_FILE=$HOME/build/$TRAVIS_REPO_SLUG/webgoat-container/target/webgoat-container-$WEBGOAT_ARTIFACT_VERSION.war
|
- export WEBGOAT_WAR_FILE=$HOME/build/$TRAVIS_REPO_SLUG/webgoat-container/target/webgoat-container-$WEBGOAT_ARTIFACT_VERSION.war
|
||||||
- echo "Webgoat JAR file $WEBGOAT_JAR_FILE"
|
- export WEBGOAT_ARTIFACTS_FOLDER=$HOME/build/$TRAVIS_REPO_SLUG/Deployable_Artifacts/
|
||||||
- echo "Webgoat WAR file $WEBGOAT_WAR_FILE"
|
- mkdir $WEBGOAT_ARTIFACTS_FOLDER
|
||||||
|
- mv $WEBGOAT_JAR_FILE $WEBGOAT_ARTIFACTS_FOLDER
|
||||||
|
- mv $WEBGOAT_WAR_FILE $WEBGOAT_ARTIFACTS_FOLDER
|
||||||
|
- echo "Contents of artifcts folder:"
|
||||||
|
- ls $WEBGOAT_ARTIFACTS_FOLDER
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: s3
|
provider: s3
|
||||||
@ -24,10 +28,7 @@ deploy:
|
|||||||
bucket: "webgoat-war"
|
bucket: "webgoat-war"
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
acl: public_read
|
acl: public_read
|
||||||
file_glob: true
|
local_dir: $WEBGOAT_ARTIFACTS_FOLDER
|
||||||
file:
|
|
||||||
- $WEBGOAT_JAR_FILE
|
|
||||||
- $WEBGOAT_WAR_FILE
|
|
||||||
on:
|
on:
|
||||||
repo: dougmorato/WebGoat
|
repo: dougmorato/WebGoat
|
||||||
branch: docs
|
branch: docs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user