-
Notifications
You must be signed in to change notification settings - Fork 7
Unable to build freshly scaffolded project in Lagoon due to missing drush aliases #45
Comments
This is the correct solution to continue to remove all the upstream drupal logic baked into govcms8lagoon.
There is a PR for update SaaS to use the PaaS scaffold with a fairly large document that went to CAB to approve. It should be Also to be really clear. A lot of people decided to update .lagoon.yml the way it is for the time being. This has been discussed a lot. |
@simesy As for |
I feel like you're reiterating the same point? |
Summary
After recent changes to some scripts, Lagoon is "confused" by looking into files that no longer exist in the repository:
Details
New PaaS projects are provisioned using the code from the
master
branch of this project.master
branch contains Drush alias file as.docker/config/cli/ci.site.yml
develop
branch contains Drush alias file as.docker/config/cli/govcms.site.yml
Both branches are using scaffold-tooling package, which has govcms-deploy file that expects
.docker/config/cli/ci.site.yml
to be present. This all should work fine, sincemaster
branch of this repo has.docker/config/cli/ci.site.yml
. But Lagoon callsgovcms-deploy
command (/usr/bin/govcms-deploy
) added to the CLI container in upstream image rather thangovcms-deploy
fromscaffold-tooling
package (./vendor/bin/govcms-deploy
). This means that any script that callsgovcms-deploy
directly uses the old version of the script.Another issue -
.lagoon.yml
indevelop
branch stopped usinggovcms-deploy
altogether (🤦♂️). I'm not sure why this change was accepted as it now completely disconnects build processes in all 3 environments. The easiest way is to revert the latest commit 3bc0d35.Locally, Ahoy calls the same outdated script as well in both
master
anddevelop
.In CI, GitLab config calls
govcms-deploy
fromscaffold-tooling
package.So we have a situation where different
govcms-deploy
is called in different environments multiplied by having 2 branches (master
anddevelop
) that are not aligned.Note that
govcms-deploy
is first identified script that has this issue, but there may be more, so it is important to resolve this in a way that can be applied to any future scripts.Possible solutions
govcms-deploy
(located at the/usr/bin/govcms-deploy
) to use./vendor/bin/govcms-deploy
../vendor/bin/govcms-deploy
is available in the codebase and is not "baked" into container.- Revert
.lagoon.yml
to use./vendor/bin/govcms-deploy
instead of using bunch of commands.OR
/usr/bin/govcms-deploy
with./vendor/bin/govcms-deploy
file during Docker build in PaaSDockerfile.cli
(RUN cp -f /app/vendor/bin/govcms-deploy /usr/bin/govcms-deploy
).scaffold-tooling
repo to guarantee that the same file is called.scaffold-tooling
package and bring newgovcms-deploy
without rebuilding CLI container - not convenient for devops development../vendor/bin
- Revert
.lagoon.yml
to use./vendor/bin/govcms-deploy
instead of using bunch of commands.The preferable option is Option 1, as it would follow how other scripts are called - from
./vendor/bin/
.Branches alignement solution
Once we solve the
govcms-deploy
script issue, we need to make a release of this project to even updevelop
withmaster
so that new projects can get these new fixed changes.The text was updated successfully, but these errors were encountered: