Skip to content

Conversation

@erral
Copy link
Member

@erral erral commented May 27, 2025

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>/backend instead of docker.io/<organisation>/<projects_slug>-backend

So to achieve that, I added an if-else clause, 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.[

@erral erral requested a review from cihanandac May 27, 2025 14:29
@erral erral requested review from ericof and sneridagh as code owners May 29, 2025 13:08
erral and others added 3 commits May 29, 2025 15:08
@@ -0,0 +1 @@
GitLab CI/CD support @erral
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
GitLab CI/CD support @erral
Added GitLab CI/CD support. @erral

"0": "No"
},
"devops_gitlab_deploy": {
"__prompt__": "Add GitLab Action to Deploy this project?",
Copy link
Contributor

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.

Suggested change
"__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"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
""" 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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

Suggested change
"Remove GitLab Actions deployment files",
"Remove GitLab CI/CD deployment files",

],
[
handle_container_registry_gitlab,
"Remove GitLab Actions deployment files",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Remove GitLab Actions deployment files",
"Remove GitLab CI/CD deployment files",

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

Successfully merging this pull request may close these issues.

2 participants