Skip to content

Commit

Permalink
run deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
yifan9916 committed Oct 18, 2018
1 parent b0a342f commit 3eb7051
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pipeline {
steps {
// unstash 'output-dist'
sh 'echo "DeployDev..."'
// sh './deploy.sh'
sh './deploy.sh'
}
}

Expand Down
6 changes: 1 addition & 5 deletions deploy.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ upload_to_s3() {

aws --region "eu-west-1" s3 cp dist "s3://as24-assets-eu-west-1/${SERVICE}/${BRANCH}/${COMMIT_HASH}/" --recursive --exclude "*" --include "*.html" --cache-control "max-age=300" --acl public-read

# aws --region "eu-west-1" s3 cp dist "s3://as24-assets-eu-west-1/${SERVICE}/${BRANCH}/latest/" --recursive --exclude "*.html" --cache-control "max-age=2592000" --acl public-read

# aws --region "eu-west-1" s3 cp dist "s3://as24-assets-eu-west-1/${SERVICE}/${BRANCH}/latest/" --recursive --exclude "*" --include "*.html" --cache-control "max-age=300" --acl public-read

# aws --region "eu-west-1" s3 cp dist "s3://as24-assets-eu-west-1/${SERVICE}/" --recursive --exclude "*" --include "*-fragment.html" --cache-control "max-age=300" --acl public-read
aws --region "eu-west-1" s3 cp dist "s3://as24-assets-eu-west-1/${SERVICE}/" --recursive --exclude "*" --include "*-fragment.html" --cache-control "max-age=300" --acl public-read
}

prepare_assets
Expand Down

0 comments on commit 3eb7051

Please sign in to comment.