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

garden publish does not respect user-defined publishId #4796

Closed
worldofgeese opened this issue Jul 11, 2023 · 0 comments · Fixed by #4808
Closed

garden publish does not respect user-defined publishId #4796

worldofgeese opened this issue Jul 11, 2023 · 0 comments · Fixed by #4808

Comments

@worldofgeese
Copy link
Contributor

worldofgeese commented Jul 11, 2023

Bug

Reproducible example

https://github.com/worldofgeese/fastapi-mongodb-garden-example

You'll need to authenticate to each image registry first

First auth with each cloud

gcloud auth login
az login
aws-vault exec $USER

Then with each container registry.

Note
you'll need to create the registries first with the my-terraform action.

az acr login -n $(az acr list --query "[].name" -o json | jq -r 'map(select(startswith("acrregistry")))[0]')
aws ecr get-login-password --region eu-central-1 | docker login --username AWS --password-stdin 431328314483.dkr.ecr.eu-central-1.amazonaws.com` 
gcloud auth configure-docker europe-west3-docker.pkg.dev

For a much longer document that goes in-depth on setup see https://garden-preview.motif.land/flux-fastapi-mongodb-garden

Additional context

Grabbing TF output for one registry path below the jump 👇🏼

❯ garden run echo -l3

[verbose] garden version: 0.13.7
Run 

Garden v0.13 (Bonsai) is a major release with significant changes. Please help us improve it by reporting any issues/bugs here:
https://go.garden.io/report-bonsai
→ Run garden util hide-warning 0.13-bonsai to disable this warning.
ℹ garden               → Running in Garden environment default.default
ℹ providers            → Getting status...
ℹ providers [verbose]  → resolve provider templated is ready.
ℹ providers [verbose]  → resolve provider exec is ready.
ℹ providers [verbose]  → resolve provider container is ready.
ℹ providers [verbose]  → resolve provider terraform is ready.
ℹ providers [verbose]  → resolve provider local-kubernetes is ready.
✔ providers            → Cached (took 1.9 sec)
ℹ providers            → Run with --force-refresh to force a refresh of provider statuses.
ℹ graph                → Resolving actions and modules...
✔ graph                → Done (took 0.2 sec)
ℹ deploy.my-terraform  → Running plan...
✔ deploy.my-terraform  → Stack up-to-date (took 24.1 sec)
ℹ deploy.my-terraform  → Already deployed
ℹ deploy.my-terraform [verbose] → Deploy type=terraform name=my-terraform status is ready.
ℹ run.echo [verbose]   → Checking status...
ℹ run.echo [verbose]   → Status check complete
ℹ run.echo             → Running...
ℹ run.echo [verbose]   → europe-west3-docker.pkg.dev/devrel-348008/gcp-repository-231954e9
ℹ run.echo [verbose]   → [echo] europe-west3-docker.pkg.dev/devrel-348008/gcp-repository-231954e9
ℹ run.echo [verbose]   → Finished running task echo. Here is the full output:

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
europe-west3-docker.pkg.dev/devrel-348008/gcp-repository-231954e9
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
✔ run.echo             → Done (took 0.4 sec)
ℹ run.echo [verbose]   → Run type=exec name=echo is ready.

Your environment

  • OS: Clear Linux
  • How I'm running Kubernetes:

garden version 0.13.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
4 participants