I have a static HTML website with the following structure: . ├── index.html └── images/ ├── a.jpg ├── b.jpg └── c.jpg I found the following configuration in a blog post from 2016: page...
I'm looking for a way to programmatically parse my GitLab CI config (.gitlab-ci.yml). It is extremely complex and consists of more than 20 individual yml file that are included via the include-keyword. I'm also using reference-tags and anchors btw.
I want to create some nested conditions: i need this pipeline to work when it is a merge or merge request and with certain name start "feature". So, is there an AND condition in the 'only'
How to use if else condition inside the gitlab-CI. I have below code: deploy-dev: image: testimage environment: dev tags: - kubectl script: - kubectl apply -f demo1 --record=true ...
Not the question you asked, but my personal experience has been that editing complex scripts in a yaml file is irritating and almost always the best solution here is moving the whole script to a sh/ps1/py/whatever file, and gitlab-ci.yml should just have a one-line call to that script. This also makes it far easier to test your script locally.
Below is the script mentioned in the gitlab-ci.yml file. This GitLab CI configuration is valid. But, when the CI/CD build is run, the job fails. Is it something to do with the FOR loop syntax?
According to the Gitlab documentation you only need to create a .gitlab-ci.yml file, the Gitlab implementation of Travis-CI. Now from the looks of it you can accomplish a lot with the .gitlab-ci.yml, but a lot of the documentation is referencing Ruby and other languages.
commands that contain a colon (:) must be wrapped in single quotes ('). The YAML parser needs to interpret the text as a string rather than a “key: value” pair.
In a later step I want to commit that to the repo from within the CI pipeline. Here's the pertinent part of .gitlab-ci.yml: commit-graph: stage: pages script: - git config user.email "[email protected]" - git config user.name "CI Pipeline" - cd /group/project - mv public/graph.png .
gitlab-ci.yml - override a specific job and script execution. 0. Gitlab Yamls does not works ...