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

#2 OZG-7121 pipeline: Use references for helm

parent 90522aac
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 #1297 passed with warnings
...@@ -41,9 +41,10 @@ test: ...@@ -41,9 +41,10 @@ test:
test-helm: test-helm:
stage: test stage: test
extends: .helm before_script:
script: - !reference [ .helm, before_script ]
- helm plugin install https://github.com/helm-unittest/helm-unittest.git - 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 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/
- cd src/main/helm && helm unittest -f '../../test/helm/**/*test.yaml' . - cd src/main/helm && helm unittest -f '../../test/helm/**/*test.yaml' .
...@@ -96,7 +97,9 @@ push-merge-request-helm-nexus: ...@@ -96,7 +97,9 @@ push-merge-request-helm-nexus:
# Snapshot jobs # Snapshot jobs
push-snapshot-image-gitlab: push-snapshot-image-gitlab:
stage: publish stage: publish
extends: .get-version before_script:
- !reference [.get-version, before_script]
- !reference [.helm, before_script]
script: script:
- export IMAGE_TAGS="${CI_REGISTRY_IMAGE}:${PROJECT_VERSION}-main+${CI_COMMIT_SHORT_SHA},${CI_REGISTRY_IMAGE}:snapshot-latest" - export IMAGE_TAGS="${CI_REGISTRY_IMAGE}:${PROJECT_VERSION}-main+${CI_COMMIT_SHORT_SHA},${CI_REGISTRY_IMAGE}:snapshot-latest"
- mvn deploy -Pgitlab-deploy $MAVEN_DEPLOY_CLI_OPTS $MAVEN_CLI_OPTS - mvn deploy -Pgitlab-deploy $MAVEN_DEPLOY_CLI_OPTS $MAVEN_CLI_OPTS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment