feat: deploy pipeline
This commit is contained in:
parent
c14e55b41b
commit
bfa2f76b72
|
|
@ -0,0 +1,15 @@
|
|||
// LAB / FAKE - DO NOT USE
|
||||
pipeline {
|
||||
agent any
|
||||
environment {
|
||||
AWS_ACCESS_KEY_ID = "AKIAFAKECIRUNNERKEY9"
|
||||
AWS_SECRET_ACCESS_KEY = "FAKEcirunner/Lab+OnlyDoNotUseInProductionBB"
|
||||
REGISTRY_USER = "devops"
|
||||
REGISTRY_PASS = "DevOps123!"
|
||||
}
|
||||
stages {
|
||||
stage('build') { steps { sh 'docker build -t registry.keensafeglobalbank.com/keensafe/api:latest .' } }
|
||||
stage('push') { steps { sh 'echo "$REGISTRY_PASS" | docker login -u "$REGISTRY_USER" --password-stdin registry.keensafeglobalbank.com && docker push registry.keensafeglobalbank.com/keensafe/api:latest' } }
|
||||
stage('deploy') { steps { sh 'aws s3 sync ./dist s3://keensafe-public-assets-eu-west-1/' } }
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue