We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a96f8d commit 0af646dCopy full SHA for 0af646d
docker/hooks/build
@@ -10,7 +10,8 @@ echo "$(pwd)"
10
echo "current branch"
11
echo "$SOURCE_BRANCH"
12
13
-if [[ "$SOURCE_BRANCH" == "main" ]]; then
+version_regex='^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$'
14
+if [[ "$SOURCE_BRANCH" == "main" || "$SOURCE_BRANCH" =~ $version_regex ]]; then
15
echo "The branch is main, proceeding with multi-arch build"
16
docker buildx create --name multiarch --use
17
docker buildx build -f "$DOCKERFILE_PATH" -t "$IMAGE_NAME" --platform linux/arm64,linux/amd64,windows/amd64 --push .
0 commit comments