Add Jenkinsfile for aws s3 deploy

This commit is contained in:
Dosun Yun
2022-12-13 10:34:11 +09:00
parent 5e525fc000
commit 8c76bd6e3d

16
landing-page/Jenkinsfile vendored Normal file
View 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"
}
}
}
}