Update .gitlab-ci.yml file
This commit is contained in:
parent
045ffc5c3b
commit
34ffa27360
@ -56,29 +56,6 @@ Kubescore:
|
||||
- echo "Scoring the Chart YAML"
|
||||
- kube-score score Chart.yaml
|
||||
|
||||
Construct Readme:
|
||||
stage: build
|
||||
image:
|
||||
name: registry.knecon.com/knecon/devops/readme-generator:1.1.0
|
||||
before_script:
|
||||
- git clone "https://${CI_GIT_USERNAME}:${CI_GIT_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git" "${CI_COMMIT_SHA}"
|
||||
- git config --global user.email "project_2_bot_18f71e7e9b3d68b252f9d3dc757685bc@noreply.gitlab.knecon.com"
|
||||
- git config --global user.name "GitLab"
|
||||
after_script:
|
||||
- cd "$CI_COMMIT_SHA"
|
||||
- git add README.md
|
||||
- |-
|
||||
CHANGES=$(git status --porcelain | wc -l)
|
||||
if [ "$CHANGES" -gt "0" ]
|
||||
then
|
||||
git status
|
||||
git commit -m "Automated README.md update"
|
||||
git push --push-option='ci.skip' origin "${CI_COMMIT_BRANCH}"
|
||||
fi
|
||||
script:
|
||||
- cd "$CI_COMMIT_SHA"
|
||||
- readme-generator -r README.md -v values.yaml
|
||||
|
||||
Nexus Upload:
|
||||
stage: release
|
||||
needs:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user