Skip to content

Commit

Permalink
Revert "Just always build latest docker images and let docker hub rej…
Browse files Browse the repository at this point in the history
…ect duplicates"

This reverts commits:

	eef1eb1
	51b03df
	25b0792
	39aa169
	619d0db
	8f8bcb6

The current logic is flawed in that it always builds the latest commit
from the main branch and replaces the release tag on Docker Hub with it.
  • Loading branch information
alco committed Dec 20, 2024
1 parent eef1eb1 commit 16c2efb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .buildkite/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ steps:
.
- wait
- label: "🚀 Build & publish the release image to Docker Hub"
if: build.branch == "main"
if: build.tag =~ /@core\/sync-service@/
command:
- export ELECTRIC_IMAGE_NAME="${DOCKERHUB_REPO}/${IMAGE_NAME}"
- cd ./packages/sync-service
- git fetch --tags
- export ELECTRIC_VERSION=$(jq '.version' -r package.json)
- docker buildx build --platform linux/arm64/v8,linux/amd64 --push
--build-arg ELECTRIC_VERSION=$${ELECTRIC_VERSION}
Expand Down

0 comments on commit 16c2efb

Please sign in to comment.