update
This commit is contained in:
parent
a42e612897
commit
8a2e19932e
1 changed files with 2 additions and 6 deletions
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
|
|
@ -3,8 +3,8 @@ pipeline {
|
|||
options { skipDefaultCheckout(true) }
|
||||
|
||||
environment {
|
||||
IMAGE_NAME = 'testing-python-app'
|
||||
IMAGE_TAG = 'latest'
|
||||
IMAGE_NAME = 'rd.jenkins'
|
||||
IMAGE_TAG = 'test'
|
||||
CONTAINER_NAME = "${IMAGE_NAME}-container"
|
||||
|
||||
AWS_URL = '231670719202.dkr.ecr.sa-east-1.amazonaws.com'
|
||||
|
|
@ -41,10 +41,6 @@ pipeline {
|
|||
aws ecr get-login-password --region "$AWS_REGION" \
|
||||
| docker login --username AWS --password-stdin "$ECR_REGISTRY"
|
||||
'''
|
||||
sh '''
|
||||
aws ecr describe-repositories --repository-names "liesa/testing-python-app" || \
|
||||
aws ecr create-repository --repository-name "liesa/testing-python-app"
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue