Skip to content

Commit

Permalink
Fix platform for container images
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuniwak committed Mar 28, 2024
1 parent fd27e87 commit f74bee6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/build-image
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ main() {
local image
image="$("$BASE_DIR/scripts/print-image-name" < "$DOCKERFILE")"

docker build -t "$image:$version" -f "$DOCKERFILE" .
docker build --platform linux/amd64 -t "$image:$version" -f "$DOCKERFILE" .
if [[ "$arg" == "--latest" ]]; then
docker tag "$image:$version" "$image:latest"
fi

docker build -t "$gh_action_image:$version" -f "$GH_ACTION_DOCKERFILE" .
docker build --platform linux/amd64 -t "$gh_action_image:$version" -f "$GH_ACTION_DOCKERFILE" .
if [[ "$arg" == "--latest" ]]; then
docker tag "$gh_action_image:$version" "$gh_action_image:latest"
fi

docker build -t "$circleci_image:$version" -f "$CIRCLECI_DOCKERFILE" .
docker build --platform linux/amd64 -t "$circleci_image:$version" -f "$CIRCLECI_DOCKERFILE" .
if [[ "$arg" == "--latest" ]]; then
docker tag "$circleci_image:$version" "$circleci_image:latest"
fi
Expand Down

0 comments on commit f74bee6

Please sign in to comment.