update
This commit is contained in:
parent
35a1ad455d
commit
a42e612897
1 changed files with 4 additions and 0 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
|
@ -41,6 +41,10 @@ pipeline {
|
||||||
aws ecr get-login-password --region "$AWS_REGION" \
|
aws ecr get-login-password --region "$AWS_REGION" \
|
||||||
| docker login --username AWS --password-stdin "$ECR_REGISTRY"
|
| 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