Fix CI Docker build.

This commit is contained in:
Stanislav Nikitin 2021-09-28 10:46:20 +05:00
parent 82bd1efe2a
commit 08585cedb0
Signed by: pztrn
GPG Key ID: 1E944A0F0568B550

View File

@ -35,6 +35,7 @@ build_master_image:
- docker
image: ${DOCKER_IMAGE}
script:
- apk add --no-cache git bash
- scripts/get_version.sh generate
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
- docker build --pull -t ${REGISTRY_IMAGE_LATEST} --build-arg CI_COMMIT_TAG=${CI_COMMIT_TAG} --build-arg CI_COMMIT_REF_NAME=${CI_COMMIT_REF_NAME} --build-arg CI_COMMIT_SHA=${CI_COMMIT_SHA} --build-arg CI_PROJECT_NAME=${CI_PROJECT_NAME} .
@ -48,6 +49,7 @@ build_tag_image:
- docker
image: ${DOCKER_IMAGE}
script:
- apk add --no-cache git bash
- scripts/get_version.sh generate
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
- docker build -t ${REGISTRY_IMAGE_TAGGED} --build-arg CI_COMMIT_TAG=${CI_COMMIT_TAG} --build-arg CI_COMMIT_REF_NAME=${CI_COMMIT_REF_NAME} --build-arg CI_COMMIT_SHA=${CI_COMMIT_SHA} --build-arg CI_PROJECT_NAME=${CI_PROJECT_NAME} .