From 51b03df72c83680ba460819cca7d617018f2cc32 Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Thu, 19 Dec 2024 14:42:25 -0700 Subject: [PATCH] Try try again --- .buildkite/docker-image.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.buildkite/docker-image.yml b/.buildkite/docker-image.yml index be59608083..562a9449df 100644 --- a/.buildkite/docker-image.yml +++ b/.buildkite/docker-image.yml @@ -29,10 +29,10 @@ steps: - DOCKERHUB_VERSION=$(curl -s "https://hub.docker.com/v2/repositories/${DOCKERHUB_REPO}/${IMAGE_NAME}/tags/?page_size=100" | jq -r '.results[] | select(.name | test("^[0-9]+\\.[0-9]+\\.[0-9]+.*$")) | .name' | sort -V | tail -n1 || echo "0.0.0") - | if [ "$(printf '%s\n' "$DOCKERHUB_VERSION" "$ELECTRIC_VERSION" | sort -V | tail -n1)" = "$ELECTRIC_VERSION" ]; then - docker buildx build --platform linux/arm64/v8,linux/amd64 --push \ - --build-arg ELECTRIC_VERSION=$${ELECTRIC_VERSION} \ - -t $${ELECTRIC_IMAGE_NAME}:$${ELECTRIC_VERSION} \ - -t $${ELECTRIC_IMAGE_NAME}:latest \ + docker buildx build --platform linux/arm64/v8,linux/amd64 --push + --build-arg ELECTRIC_VERSION=$${ELECTRIC_VERSION} + -t $${ELECTRIC_IMAGE_NAME}:$${ELECTRIC_VERSION} + -t $${ELECTRIC_IMAGE_NAME}:latest . else echo "Current version $ELECTRIC_VERSION is not newer than DockerHub version $DOCKERHUB_VERSION. Skipping build."