remember to pull before

This commit is contained in:
Kasper Juul Hermansen 2022-08-21 16:45:28 +02:00
parent 22e7fbf274
commit 4aff68be93
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23

View File

@ -16,6 +16,7 @@ then
fi fi
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker pull "$latest_tag"
DOCKER_BUILDKIT=1 docker build --cache-from "$latest_tag" -t "$tag" -f "$TMP/build_release.Dockerfile" . DOCKER_BUILDKIT=1 docker build --cache-from "$latest_tag" -t "$tag" -f "$TMP/build_release.Dockerfile" .
docker tag "$tag" "$latest_tag" docker tag "$tag" "$latest_tag"