Added build args
This commit is contained in:
2
.jenkins/Jenkinsfile
vendored
2
.jenkins/Jenkinsfile
vendored
@ -38,7 +38,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
container('docker') {
|
container('docker') {
|
||||||
sh '''
|
sh '''
|
||||||
docker build -t ${DOCKER_IMAGE} .
|
docker build -t ${DOCKER_IMAGE} --build-arg APP_VERSION=${GIT_COMMIT} --build-arg BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") .
|
||||||
az login --identity --client-id ${CLIENT_ID}
|
az login --identity --client-id ${CLIENT_ID}
|
||||||
az acr login --name ${ACR_NAME}
|
az acr login --name ${ACR_NAME}
|
||||||
docker push ${DOCKER_IMAGE}
|
docker push ${DOCKER_IMAGE}
|
||||||
|
Reference in New Issue
Block a user