CircleCI-Public / aws-ecr-orb

CircleCI orb for interacting with Amazon's Elastic Container Registry (ECR)
https://circleci.com/orbs/registry/orb/circleci/aws-ecr
MIT License
80 stars 142 forks source link

Error when running `aws-ecr/build-image` on Alpine #341

Closed fatmcgav closed 6 months ago

fatmcgav commented 6 months ago

Orb version

9.1.0

What happened

I'm trying to update an existing workflow to use the aws-ecr/build-image command in order to leverage OIDC auth against AWS.

However whenever the aws-ecr/build-image command runs, it fails with:

/bin/sh: syntax error: unexpected redirection

Exited with code exit status 2

Further details can be found here: https://discuss.circleci.com/t/error-when-building-docker-image-on-alpine-using-aws-ecr-orb/51047

Probably most important, I've added the steps mentioned in https://circleci.com/docs/env-vars/#alpine-linux for setting up BASH_ENV support on Alpine.

Expected behavior

Container image is built and pushed to ECR repository 👍

fatmcgav commented 6 months ago

Cross-posting the fix here for future reference: https://discuss.circleci.com/t/error-when-building-docker-image-on-alpine-using-aws-ecr-orb/51047/4?u=fatmcgav