Update .gitlab-ci.yml file

This commit is contained in:
Kevin Tumma 2023-04-27 15:55:23 +02:00
parent 34ffa27360
commit b65507745b

View File

@ -66,7 +66,7 @@ Nexus Upload:
image: registry.knecon.com/knecon/devops/build-image:latest
script:
- |-
export VERSION=$(cat Chart.yaml | grep "^version:" | sed 's/^version: \(.*\)$/\1/g')-$CI_PIPELINE_IID
export VERSION=$(cat Chart.yaml | grep "^version:" | sed 's/^version: \(.*\)$/\1/g')
sed -s "s/^version: .*$/version: $VERSION/g" -i Chart.yaml
- 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