Add Jenkinsfile for aws s3 deploy
This commit is contained in:
16
landing-page/Jenkinsfile
vendored
Normal file
16
landing-page/Jenkinsfile
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
pipeline {
|
||||
agent any
|
||||
tools {
|
||||
git "git"
|
||||
}
|
||||
stages {
|
||||
stage('deploy') {
|
||||
steps {
|
||||
sh "aws configure set region $AWS_DEFAULT_REGION"
|
||||
sh "aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID"
|
||||
sh "aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY"
|
||||
sh "aws s3 cp web s3://vanillameta.net --recursive --acl public-read"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user