-
-
Couldn't load subscription status.
- Fork 8
GitLab CI/CD support for cookieplone generated template #239
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
base: main
Are you sure you want to change the base?
Conversation
templates/projects/monorepo/{{ cookiecutter.__folder_name }}/devops/README-GITLAB.md
Outdated
Show resolved
Hide resolved
templates/projects/monorepo/{{ cookiecutter.__folder_name }}/devops/README-GITLAB.md
Outdated
Show resolved
Hide resolved
templates/projects/monorepo/{{ cookiecutter.__folder_name }}/devops/README-GITLAB.md
Show resolved
Hide resolved
templates/projects/monorepo/{{ cookiecutter.__folder_name }}/devops/README-GITLAB.md
Outdated
Show resolved
Hide resolved
templates/projects/monorepo/{{ cookiecutter.__folder_name }}/devops/README-GITLAB.md
Outdated
Show resolved
Hide resolved
…evops/README-GITLAB.md Co-authored-by: Steve Piercy <[email protected]>
…evops/README-GITLAB.md Co-authored-by: Steve Piercy <[email protected]>
…evops/README-GITLAB.md Co-authored-by: Steve Piercy <[email protected]>
…evops/README-GITLAB.md Co-authored-by: Steve Piercy <[email protected]>
| @@ -0,0 +1 @@ | |||
| GitLab CI/CD support @erral | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| GitLab CI/CD support @erral | |
| Added GitLab CI/CD support. @erral |
| "0": "No" | ||
| }, | ||
| "devops_gitlab_deploy": { | ||
| "__prompt__": "Add GitLab Action to Deploy this project?", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think GitLab calls it an "Action" as GitHub does.
| "__prompt__": "Add GitLab Action to Deploy this project?", | |
| "__prompt__": "Add GitLab CI/CD to deploy this project?", |
|
|
||
|
|
||
| def handle_container_registry_gitlab(context: OrderedDict, output_dir: Path): | ||
| """ show a warning when using GitLab as container registry""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| """ show a warning when using GitLab as container registry""" | |
| """Show a warning when using GitLab as container registry""" |
| ], | ||
| [ | ||
| handle_devops_gitlab_deploy, | ||
| "Remove GitLab Actions deployment files", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
| "Remove GitLab Actions deployment files", | |
| "Remove GitLab CI/CD deployment files", |
| ], | ||
| [ | ||
| handle_container_registry_gitlab, | ||
| "Remove GitLab Actions deployment files", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "Remove GitLab Actions deployment files", | |
| "Remove GitLab CI/CD deployment files", |
…evops/README-GITLAB.md
Adding gitlab CI/CD support back to the project generated using cookieplone.
The most complex stuff here is that GitLab container registry requires container names be / separated. I mean:
registry.gitlab.com/<organisation>/<project_slug>/backendinstead ofdocker.io/<organisation>/<projects_slug>-backendSo to achieve that, I added an
if-elseclause, which is not elegant, but I haven't found a nice way to do it.In the previous PR we discussed extracting the separator thing to a filter, but I haven't found a way to do that.[