зеркало из https://github.com/mozilla/bedrock.git
Tag all images as "latest" during prod push
This will allow other jobs (configurator e.g.) to use the ":latest" images for testing and other things.
This commit is contained in:
Родитель
b9d952c15a
Коммит
d1530078c5
|
@ -44,3 +44,8 @@ cat "docker/dockerfiles/bedrock_$DOCKERFILE" | envsubst '$GIT_COMMIT' > "$FINAL_
|
|||
|
||||
# build the docker image
|
||||
docker build -t "$DOCKER_IMAGE_TAG" --pull="$DOCKER_PULL" --no-cache="$DOCKER_NO_CACHE" -f "$FINAL_DOCKERFILE" "$DOCKER_CTX"
|
||||
|
||||
if [[ "$GIT_TAG_DATE_BASED" == true ]]; then
|
||||
docker tag "$DOCKER_IMAGE_TAG" "${DOCKER_REPO}/bedrock_${DOCKERFILE}:${GIT_TAG}"
|
||||
docker tag "$DOCKER_IMAGE_TAG" "${DOCKER_REPO}/bedrock_${DOCKERFILE}:latest"
|
||||
fi
|
||||
|
|
Загрузка…
Ссылка в новой задаче