Skip to content
Snippets Groups Projects
Commit 846107f0 authored by Jan Zickermann's avatar Jan Zickermann
Browse files

#2 OZG-7121 pipeline: Post helm package to nexus

parent 802295a1
No related branches found
No related tags found
1 merge request!3Resolve "xta-test-server helm-chart mit Deployment und Keystore-Secrets/Certificate-Resources"
Pipeline #1291 passed with warnings
...@@ -37,12 +37,13 @@ test: ...@@ -37,12 +37,13 @@ test:
.helm: .helm:
before_script: before_script:
- apk add --no-cache helm git - apk add --no-cache helm git curl
- helm plugin install https://github.com/helm-unittest/helm-unittest.git
test-helm: test-helm:
stage: test stage: test
extends: .helm extends: .helm
before_script:
- helm plugin install https://github.com/helm-unittest/helm-unittest.git
script: script:
- helm template ./src/main/helm/ -f src/test/helm-linter-values.yaml - helm template ./src/main/helm/ -f src/test/helm-linter-values.yaml
- helm lint -f src/test/helm-linter-values.yaml ./src/main/helm/ - helm lint -f src/test/helm-linter-values.yaml ./src/main/helm/
...@@ -87,7 +88,8 @@ push-merge-request-helm-nexus: ...@@ -87,7 +88,8 @@ push-merge-request-helm-nexus:
- .get-version - .get-version
- .helm - .helm
script: 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: rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event' - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
when: manual when: manual
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment