Skip to content

Commit 4da40dc

Browse files
committed
try to fix docker build for latest image
the latest tags cannot be downloaded directly by URL.
1 parent 57a0538 commit 4da40dc

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.dockerhub/hooks/build

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@ elif [[ $(echo "$DOCKER_TAG" | sed 's/.*-//') == "slim" ]]; then
1616
--build-arg REMAGE_VERSION="$_version" \
1717
-f "$DOCKERFILE_PATH" -t "$IMAGE_NAME" .
1818

19-
else # use stable base image for all tagged versions
19+
# use stable base image for all tagged versions
20+
elif [[ "$DOCKER_TAG" == "latest" ]]; then
21+
docker build \
22+
--build-arg REMAGE_BASE_FLAVOR="latest" \
23+
--build-arg REMAGE_VERSION="$SOURCE_BRANCH" \
24+
-f "$DOCKERFILE_PATH" -t "$IMAGE_NAME" .
25+
26+
else
2027
docker build \
2128
--build-arg REMAGE_BASE_FLAVOR="stable" \
2229
--build-arg REMAGE_VERSION="$DOCKER_TAG" \

0 commit comments

Comments
 (0)