diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 83e579622fe1c987262c56211a75783f98b764d9..677374bb03d0bbd46d4b9f2ea7a61597d736b069 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -37,12 +37,13 @@ test: .helm: before_script: - - apk add --no-cache helm git - - helm plugin install https://github.com/helm-unittest/helm-unittest.git + - apk add --no-cache helm git curl test-helm: stage: test extends: .helm + before_script: + - helm plugin install https://github.com/helm-unittest/helm-unittest.git script: - helm template ./src/main/helm/ -f src/test/helm-linter-values.yaml - helm lint -f src/test/helm-linter-values.yaml ./src/main/helm/ @@ -87,7 +88,8 @@ push-merge-request-helm-nexus: - .get-version - .helm script: - - cd src/main/helm && helm package --version=MR-${CI_MERGE_REQUEST_IID}-${PROJECT_VERSION} + - helm package src/main/helm --version=MR-${CI_MERGE_REQUEST_IID}-${PROJECT_VERSION} + - curl -u ${NEXUS_USER}:${NEXUS_PASSWORD} https://nexus.ozg-sh.de/service/rest/v1/components?repository=ozg-base-apps-snapshot -F file=@${PROJECT_ARTIFACTID}-MR-${CI_MERGE_REQUEST_IID}-${PROJECT_VERSION}.tgz rules: - if: $CI_PIPELINE_SOURCE == 'merge_request_event' when: manual