question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ENH] - Disable generating .gitlab-ci.yml in Gitlab CI

See original GitHub issue

Feature 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 and git 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:open
  • Created 10 months ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
dharhascommented, Nov 14, 2022

@iameskild lets make sure to migrate those instructions to the new docs.

0reactions
pavithraescommented, Dec 13, 2022

@kalpanachinnappan Just following up on this discussion, does @iameskild’s comment clarifying before_script help resolve your first concern?

Sidenote,

lets make sure to migrate those instructions to the new docs.

This will get documented in https://github.com/nebari-dev/nebari-docs/pull/115 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found