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

Can't override --config-file in aliases #1027

Open
hundredwatt opened this issue Oct 2, 2024 · 1 comment · May be fixed by #1032
Open

Can't override --config-file in aliases #1027

hundredwatt opened this issue Oct 2, 2024 · 1 comment · May be fixed by #1032

Comments

@hundredwatt
Copy link
Contributor

I have a secondary service that's deployed from my app's repo via a separate configuration file.

I can deploy the secondary service with kamal deploy --config-file=config/other.deploy.yml and that command succeeds.

I tried to make this command an alias in my main app's config/deploy.yml, but I get a registry error because the secondary service uses a different registry but kamal tries to use the main app's registry to pull the image:

docker stderr: Unable to find image main.myregistry.com/secondary:latest' locally

When in config/other.deploy.yml, I have the registry.server set to other.myregistry.com.

My alias configuration in config/deploy.yml looks like:

aliases:
  "other-deploy": "deploy --config-file=config/other.deploy.yml"

If I'm using kamal in an unintended way please tell me 😅. But it would be nice if I could configure an alias to deploy my secondary service so I don't have to add --config-file=config/other.deploy.yml every time.

@djmb djmb linked a pull request Oct 2, 2024 that will close this issue
@djmb
Copy link
Collaborator

djmb commented Oct 2, 2024

Yes that's not something that was supported, but making it work turned out to be easy enough - #1032

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants