Was wondering if it’s possible to choose which sta...
# seed
c
Was wondering if it’s possible to choose which stage an application is created in based off the branch name for auto branch deploys?, so going off GitFlow terminology a release branch would be called
release/v1.2.3
& should be auto-deployed in the
qa
stage, whereas branches of the form
feat/some-feature
would be deployed in the
dev
stage I can see there’s
stage_name_constructor
but that’s for the changing name of the app based off the branch, rather than being able to allocate into a specific deployment stage
As a secondary question I’ve added a stage name constructor like:
Copy code
stage_name_constructor: >
  if [[ $SEED_STAGE_BRANCH == "releases"* ]]; then
      # from releases/v1.2.3 to releases-1-2-3
      # so we get a nice url like <http://releases-1-2-3.website.com|releases-1-2-3.website.com>
      echo $SEED_STAGE_BRANCH | sed -E -e 's/\.|\//-/g'
  else
      echo $SEED_STAGE_BRANCH
  fi
but the name is still coming out as
pr123
on a
releases/vx.x.x
branch - is
sed
available? How can I see what is being outputted stdout/stderr wise?
f
Hey @Cass Winfrey, do you mean you want multiple branches
releases/v1.2.3
,
releases/v1.2.4
, …
releases/v*
all auto-deploy to the
qa
stage?
And similarly
feat/*
to
dev
?
c
yeah that’s right
f
Got it! Yeah it’s not possible currently. But let me put that down on our roadmap.
That said, you can probably create a GitHub action that gets triggered by
releases/*
and have it use the SEED CLI to deploy to
qa
https://seed.run/docs/deploying-with-the-seed-cli.html