Skip to content

Commit

Permalink
Try try again
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Dec 19, 2024
1 parent 25b0792 commit 51b03df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .buildkite/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 51b03df

Please sign in to comment.