Update .gitlab-ci.yml file
This commit is contained in:
parent
11aba0bc03
commit
1a7a43dd81
@ -15,6 +15,7 @@ variables:
|
|||||||
options:
|
options:
|
||||||
- release
|
- release
|
||||||
- default
|
- default
|
||||||
|
- custom
|
||||||
|
|
||||||
workflow:
|
workflow:
|
||||||
name: "Pipeline for Merge Request: $merge_request_event"
|
name: "Pipeline for Merge Request: $merge_request_event"
|
||||||
@ -56,6 +57,19 @@ Kubescore:
|
|||||||
- echo "Scoring the Chart YAML"
|
- echo "Scoring the Chart YAML"
|
||||||
- kube-score score Chart.yaml
|
- kube-score score Chart.yaml
|
||||||
|
|
||||||
|
Nexus Custom Upload:
|
||||||
|
stage: release
|
||||||
|
needs:
|
||||||
|
- Helm Template
|
||||||
|
- Helm Lint
|
||||||
|
rules:
|
||||||
|
- if: $PIPELINE == "custom"
|
||||||
|
image: registry.knecon.com/knecon/devops/build-image:latest
|
||||||
|
script:
|
||||||
|
- VERSION=$(cat Chart.yaml | grep "^version:" | sed 's/^version:\s\(.*\)$/\1/g')
|
||||||
|
- uploadFile=$( helm package . | awk 'NF>1{print q $NF}' )
|
||||||
|
- curl -s -u "${CI_NEXUS_USER}:${CI_NEXUS_PASSWORD}" "${CI_NEXUS_ADDRESS}:443/repository/red-dev/" --upload-file $uploadFile
|
||||||
|
|
||||||
Nexus Upload:
|
Nexus Upload:
|
||||||
stage: release
|
stage: release
|
||||||
needs:
|
needs:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user