Feature(s) impacted
I’m working on automating the deployment of our Forest Admin layout during our CD. I’m looking for a way to deployment the layout for an environment to another.
Observed behavior
We have 4 environments (Development, Release, Staging and Production). When we are ready to create a new release, we want to deploy UI changes made on Development to Release. I would like to use environment:copy-layout
but, if I well understood, it has been deprecated in favor of the push
/ deploy
commands.
I tried several things:
> branch release-deployment -o Development
√ Switched to new branch: release-deployment.
> push
? Push branch release-deployment onto Development Yes
√ Branch release-deployment successfully pushed onto Development.
> deploy
? Deploy layout changes to reference? Yes
× environment source has no branch to deploy
> branch release-deployment -o Development
√ Switched to new branch: release-deployment.
> set-origin Release
√ Origin "Release" successfully set.
> push
? Push branch release-deployment onto Release Yes
√ Branch release-deployment successfully pushed onto Release.
> deploy
? Deploy layout changes to reference? Yes
× environment source has no branch to deploy
> branch release-deployment -o Development
√ Switched to new branch: release-deployment.
>deploy
? Deploy layout changes to reference? Yes
× cannot "deploy" to non-reference environment, please use "push"
Expected behavior
The documentation says we should use the command push
but it does not explain how.
Failure Logs
Context
ENVIRONMENTS
ID NAME TYPE
84249 Production production
84426 Development remote
84429 Staging remote
85926 Release remote
BRANCHES
NAME ORIGIN IS CURRENT CLOSED AT
Development Production 2022-09-29T09:55:14.104Z
Production Production
release-deployment Development ✅
- Project name: Koala
- Team name:
- Environment name:
- Agent type & version: forest-express-sequelize@8.5.12 and forestadmin/toolbelt:v3.0.0
- Recent changes made on your end if any: