New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot perform an interactive login from a non TTY device #296
Labels
bug
Something isn't working
Comments
Same problem here with this config: jobs:
build-and-push:
executor:
name: aws-ecr/default
docker_layer_caching: false
parameters:
repo:
description: The ECR repo name you want to push your image to
type: string
tag:
description: Tag to use for the image
type: string
dockerfile:
description: Dockerfile path
type: string
steps:
- aws-ecr/build_and_push_image:
auth:
- aws-cli/setup:
aws_access_key_id: ECR_AWS_ACCESS_KEY_ID
aws_secret_access_key: ECR_AWS_SECRET_ACCESS_KEY
profile_name: myProfileName
extra_build_args: '--build-arg NPM_TOKEN --build-arg DD_VERSION="<< pipeline.git.revision >>"'
attach_workspace: true
dockerfile: << parameters.dockerfile >>
region: '${ECR_AWS_REGION}'
repo: '<< parameters.repo >>'
tag: '<< parameters.tag >>'
|
Hello 👋 we've finally made it work and here are the main changes for us:
|
The docs offer zero context on how to set this up. In our case, we migrated from version 8.x to 9.x. What solved the same problem for us, was adding deploy_app:
...
steps:
- aws-cli/setup
- setup_remote_docker:
docker_layer_caching: true
- aws-ecr/build_and_push_image:
auth:
- aws-cli/setup
repo: "equals-services-<< parameters.app-environment >>-backend"
dockerfile: ".docker/Dockerfile"
tag: "latest,<< pipeline.git.revision >>"
extra_build_args:
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Orb version
I've just upgrade from orb version 7.x to 9.0.0
(skipping v8.x since that is still broken, and a patch was never released, see #269).
What happened
The following snippet worked in 7.x
but now the
ecr_login
step fails with:I already added the new ENV VAR
AWS_DEFAULT_REGION
and set it to my desired region ("eu-central-1") (previously I was usingAWS_REGION
).NOTE: the
build_image
andpush_image
both do NOT required anauth
object, but the combinedbuild_and_push_image
does required it. The documentation on that is rather absent. Why is that only required for the combined job? Can't I useecr_login
?Expected behavior
I expect the orb to work, especially for such a basic task.#
I also expect the docs be particularly careful about documenting actual (breaking) changes to previous versions.
The text was updated successfully, but these errors were encountered: