[ENH] - Disable generating .gitlab-ci.yml in Gitlab CI
See original GitHub issueFeature description
Disable generating specifically the .gitlab-ci.yml
file, for those who are managing their Nebari installation in Gitlab CI with custom scripts
sections in CI.
Suggestion: Set a variable like ci_render
in nebari-config.yaml
, like:
ci_cd:
type: gitlab-ci
branch: main
commit_render: true
ci_render: false
This way CI would still render other files to be committed (.tf
files, etc), but will not generate and commit back the .gitlab-ci.yml
file.
Value and/or benefit
Beneficial for those who require custom scripts
sections in .gitlab-ci.yml
, for example:
- specifying their own
git config user.email
andgit config user.name
- adding extra scripts like
git remote set-url origin https://user:$TOKEN@gitlab.com/group/nebari
Disabling the generation of .gitlab-ci.yml
will allow teams to maintain their own CI configuration.
Anything else?
No response
Issue Analytics
- State:
- Created 10 months ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Disabling GitLab CI/CD
Disable CI /CD in a project · On the top bar, select Main menu > Projects and find your project. · On the...
Read more >`.gitlab-ci.yml` keyword reference - GitLab Docs
CI /CD · Tutorial: Create your first pipeline · CI/CD concepts · Migrate from CircleCI · Migrate from Jenkins · Enable or disable...
Read more >Disable expansion of file type variables when referenced in ...
When using file variables in the "variables" section of a job in .gitlab-ci.yml the contents are being written to the new variable.
Read more >Customize pipeline configuration - GitLab Docs
Specify a custom CI/CD configuration file · On the top bar, select Main menu > Projects and find your project. · On the...
Read more >The `.gitlab-ci.yml` file - GitLab Docs
A file called .gitlab-ci.yml in the root of your repository, ... You create the strategy for your app and GitLab runs the pipeline...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@iameskild lets make sure to migrate those instructions to the new docs.
@kalpanachinnappan Just following up on this discussion, does
@iameskild
’s comment clarifyingbefore_script
help resolve your first concern?Sidenote,
This will get documented in https://github.com/nebari-dev/nebari-docs/pull/115 😃