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

"No matching environments for "main" in the app settings" - console.autodeploy not being picked up #4374

Open
thomasklein opened this issue Jul 26, 2024 · 2 comments
Assignees

Comments

@thomasklein
Copy link

thomasklein commented Jul 26, 2024

I have the same sst.config.ts setup as suggested in the docs:

console: {
        autodeploy: {
          target(event) {
            if (
              event.type === "branch" &&
              event.branch === "main" &&
              event.action === "pushed"
             ) {
              return {
                stage: "production",
                runner: { engine: "codebuild", compute: "large" }
              };
            }
          }
        }
      }

and in the console itself the branch environment production setup (github repo connected to console.) When I now push to main, the console skips the deploy and notes:
No matching environments for "main" in the app settings

Edit: Using current latest sst ion/v0.1.42

@jayair
Copy link
Contributor

jayair commented Jul 26, 2024

That looks right to me, do you have a link to the deploy? We'll take a look.

@thomasklein
Copy link
Author

https://console.sst.dev/astrodimension-nextjs/website/autodeploy/s0npz1es1h0wptffwxyzkyob - meanwhile I changed in the console in the branch settings the stage to main and that works.

@thdxr thdxr transferred this issue from sst/ion Oct 21, 2024
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

No branches or pull requests

3 participants