Skip to content

Commit

Permalink
add Jenkinsfile to publish website to S3
Browse files Browse the repository at this point in the history
  • Loading branch information
jspiewak committed Aug 28, 2017
1 parent 4d27014 commit 0220f8e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!groovy

properties([pipelineTriggers([githubPush()]),
disableConcurrentBuilds(),
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10'))
])

node('docker') {
timestamps {
ansiColor('xterm') {
stage('Checkout source') {
checkout scm
}

stage('Publish to S3') {
milestone label: 'deploy'
sh 'aws s3 sync website s3://keras.rstudio.com/ --acl public-read --cache-control "public,max-age=900"'
}
}
}
}

0 comments on commit 0220f8e

Please sign in to comment.