Update Jenkinsfile

This commit is contained in:
lwj9812 2024-03-22 11:41:21 +09:00 committed by GitHub
parent fb5fcdb0a9
commit 616a86f993
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

11
Jenkinsfile vendored
View file

@ -73,6 +73,17 @@ pipeline {
sh "docker image prune -a -f" sh "docker image prune -a -f"
} }
} }
stage('Upload to S3'){
steps {
echo 'Upload to S3'
dir("$(env.WORKSPACE)"){
sh 'zip -r deploy.zip ./deploy appspec.yaml'
withAWS(region:"${REGION}", credentials: "${AWS_CREDENTIAL_NAME}"){
s3Upload(file:"deploy.zip", bucket:"std01-codedeploy-bucket")
}
}
}
}
} }
} }