Skip to content

Commit

Permalink
Fix platform for container images (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuniwak committed Mar 28, 2024
1 parent fd27e87 commit d0306d3
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 d0306d3

Please sign in to comment.