Skip to content

Commit

Permalink
Merge pull request #51 from fablo-io/publish-amd-only
Browse files Browse the repository at this point in the history
Publish only AMD image
  • Loading branch information
dzikowski authored Sep 16, 2024
2 parents 148782e + 7a7cbbe commit e27046b
Show file tree
Hide file tree
Showing 2 changed files with 253 additions and 382 deletions.
7 changes: 5 additions & 2 deletions docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,17 @@ npm run build
if [ "${1:-''}" = "--push" ]; then
docker buildx build \
--build-arg VERSION_DETAILS="$VERSION_DETAILS" \
--platform linux/amd64,linux/arm64 \
--platform linux/amd64 \
--tag "$DOCKER_IMAGE_TAG" \
--tag "$DOCKER_IMAGE_BASE_NAME:latest" \
--push \
"$FABLO_REST_HOME"
else
docker build \
docker buildx build \
--build-arg VERSION_DETAILS="$VERSION_DETAILS" \
--platform linux/amd64 \
--tag "$DOCKER_IMAGE_TAG" \
--tag "$DOCKER_IMAGE_BASE_NAME:latest" \
"$FABLO_REST_HOME"
fi

Loading

0 comments on commit e27046b

Please sign in to comment.