Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sigeshuo committed Jul 11, 2024
1 parent 28697b3 commit f2f4eb1
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions scripts/publish-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,31 @@ HUBBLE_VERSION=$(node -e "console.log(require('./apps/hubble/package.json').vers

echo "Publishing $HUBBLE_VERSION"

# Enable Buildx
docker buildx create --use
# 设置 builder 名称
BUILDER_NAME="hubble-builder"

# 检查 builder 是否存在
if ! docker buildx inspect $BUILDER_NAME >/dev/null 2>&1; then
echo "Builder '$BUILDER_NAME' 不存在,创建新的 builder..."
# Enable Buildx
docker buildx create --name hubble-builder --use
else
echo "Builder '$BUILDER_NAME' 已存在,使用现有的 builder..."
docker buildx use $BUILDER_NAME
fi

docker buildx build -f Dockerfile.hubble \
--platform "linux/amd64,linux/arm64" \
-t sigeshuo/hubble:${HUBBLE_VERSION} \
-t sigeshuo/hubble:latest \
--load \
.

docker tag sigeshuo/hubble:${HUBBLE_VERSION} sigeshuo/farcaster:${HUBBLE_VERSION}
docker tag sigeshuo/hubble:latest sigeshuo/farcaster:latest
.

docker push sigeshuo/hubble:${HUBBLE_VERSION}
docker push sigeshuo/hubble:latest
docker push sigeshuo/hubble:${HUBBLE_VERSION}
docker push sigeshuo/hubble:latest

docker push sigeshuo/farcaster:${HUBBLE_VERSION}
docker push sigeshuo/farcaster:latest
docker push sigeshuo/farcaster:${HUBBLE_VERSION}
docker push sigeshuo/farcaster:latest

0 comments on commit f2f4eb1

Please sign in to comment.