Skip to content

Provide credentials for base image different from the image to be built #278

Open
@chbiel

Description

@chbiel

Hi,
i have the following setup:

Dockerfile of "child" image

FROM quay.io/team/base
...do something...

quay.io need authentication and the following would work as expected.

- name: docker-image-tools
    type: docker-image
    icon: docker
    source:
      repository: quay.io/team/base
      username: ((quay_username))
      password: ((quay_password))

Now I want to build the "child" image above, but push it to AWS ECR:

- name: docker-image-child
    type: docker-image
    icon: docker
    source:
      repository: account.dkr.ecr.region.amazonaws.com/child

When I execute that I get an error that authentication for quay.io is missing (what is basically OK).

But now the question:
Can I provide different credentials for the base image and the image to created/push? Or do i have to ensure that the base image and the target image are in the same repo?
I did not find anything related in the docs

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions