Fix CI Docker build.
This commit is contained in:
parent
82bd1efe2a
commit
08585cedb0
@ -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} .
|
||||
|
Loading…
Reference in New Issue
Block a user