Skip to content
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

How to handle different image repositories for each profile #8920

Open
AndreasBergmeier6176 opened this issue Jun 26, 2023 · 1 comment
Open
Labels
area/default-repo priority/p2 May take a couple of releases

Comments

@AndreasBergmeier6176
Copy link
Contributor

I have a repository europe-west1-docker.pkg.dev/foo-dev/bar that I need to build/push 20 images in profile dev.
In profile tst, I need to build/push the same 20 images but to europe-west1-docker.pkg.dev/foo-tst/bar.

How would I handle this with Skaffold without duplicating every artifact?

@dkirrane
Copy link

I was looking for this same feature.
Instead of having to run skaffold config set default-repo my-dev.azurecr.io & skaffold config set default-repo my-stage.azurecr.io
Allow setting it via profiles

e.g

apiVersion: skaffold/v4beta2
kind: Config

build:
...

deploy:
...

profiles:
  - name: dev
    config:
      repo: my-dev.azurecr.io
    ...
  - name: stage
    config:
      repo: my-stage.azurecr.io
    ...
    
         

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/default-repo priority/p2 May take a couple of releases
Projects
None yet
Development

No branches or pull requests

3 participants