Reuse runner-cached Docker base image
This commit is contained in:
@@ -55,8 +55,10 @@ jobs:
|
|||||||
--username "$REGISTRY_USERNAME" \
|
--username "$REGISTRY_USERNAME" \
|
||||||
--password-stdin
|
--password-stdin
|
||||||
|
|
||||||
docker build \
|
# The runner force-pulls this job's node:20-bookworm image before the
|
||||||
--pull \
|
# job starts. Reuse that fresh host-cached image so BuildKit does not
|
||||||
|
# make a second anonymous Docker Hub token request.
|
||||||
|
DOCKER_BUILDKIT=0 docker build \
|
||||||
--label "org.opencontainers.image.revision=$revision" \
|
--label "org.opencontainers.image.revision=$revision" \
|
||||||
--label "org.opencontainers.image.source=https://mahgit.ir/MeghdadFadaee/daily-blackout-check" \
|
--label "org.opencontainers.image.source=https://mahgit.ir/MeghdadFadaee/daily-blackout-check" \
|
||||||
--tag "$candidate" \
|
--tag "$candidate" \
|
||||||
|
|||||||
Reference in New Issue
Block a user