Skip to content

Commit

Permalink
Add multiple platform.
Browse files Browse the repository at this point in the history
  • Loading branch information
jessweb3mars committed Jul 17, 2024
1 parent ab252b6 commit 3d5ae13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/ecr_upload_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ current_branch=$(git rev-parse --abbrev-ref HEAD)
# Generate the Docker image tag by combining the version and the latest commit hash
image_tag="${AWS_ECR_REPOSITORY_NAME}:${current_branch}-${latest_commit}"

sudo docker build --no-cache -t $image_tag .
docker buildx build --platform linux/amd64,linux/arm64 --no-cache -t $image_tag .

image_uri="${AWS_ECR_REGISTRY_URI}/${image_tag}"

sudo docker tag $image_tag $image_uri
docker tag $image_tag $image_uri

sudo docker push $image_uri
docker push $image_uri

echo $image_uri

0 comments on commit 3d5ae13

Please sign in to comment.