We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be8bdcf commit 8946936Copy full SHA for 8946936
hooks/build
@@ -1,7 +1,9 @@
1
#!/bin/sh
2
3
if [ "latest" = "$DOCKER_TAG" ]; then
4
- DOCKER_TAG=$(curl https://registry.npmjs.org/jsonlint -sLo- | grep -Po '"latest":"\d+\.\d+\.\d+"' | awk -F'"' '{print $4}')
+ JSONLINT_VERSION=$(curl https://registry.npmjs.org/jsonlint -sLo- | grep -Po '"latest":"\d+\.\d+\.\d+"' | awk -F'"' '{print $4}')
5
+else
6
+ JSONLINT_VERSION="$SOURCE_BRANCH"
7
fi
8
-docker build --build-arg JSONLINT_VERSION="$DOCKER_TAG" -f "$DOCKERFILE_PATH" -t "$IMAGE_NAME" .
9
+docker build --build-arg JSONLINT_VERSION="$JSONLINT_VERSION" -f "$DOCKERFILE_PATH" -t "$IMAGE_NAME" .
0 commit comments