Closed fatmcgav closed 6 months ago
9.1.0
I'm trying to update an existing workflow to use the aws-ecr/build-image command in order to leverage OIDC auth against AWS.
aws-ecr/build-image
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.
BASH_ENV
Container image is built and pushed to ECR repository 👍
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
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: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 👍