EOX GitLab Instance

Commit b8ba2a58 authored by Bernhard Mallinger's avatar Bernhard Mallinger
Browse files

Merge branch 'integration-test' into 'main'

Create branch in vs-deployment with new version on new deploys

See merge request !3
parents a5bd1303 d8a18ac2
Pipeline #19440 passed with stage
in 39 seconds
...@@ -2,9 +2,11 @@ stages: ...@@ -2,9 +2,11 @@ stages:
- test - test
- publish - publish
- chart - chart
- integration_test
variables: variables:
DOCKER_TLS_CERTDIR: "" DOCKER_TLS_CERTDIR: ""
SERVICE_NAME: "vs-scheduler"
test: test:
image: python:3.8-slim image: python:3.8-slim
...@@ -51,3 +53,27 @@ helm: ...@@ -51,3 +53,27 @@ helm:
- curl -u $HELM_CHART_REPOSITORY_CREDENTIALS -v -X POST https://charts-public.hub.eox.at/api/charts --data-binary "@${upload_filename}" - curl -u $HELM_CHART_REPOSITORY_CREDENTIALS -v -X POST https://charts-public.hub.eox.at/api/charts --data-binary "@${upload_filename}"
only: only:
- tags - tags
integration_test:
image: devth/helm:v3.6.3
stage: integration_test
script:
- wget -q https://github.com/mikefarah/yq/releases/download/v4.14.2/yq_linux_amd64.tar.gz -O - | tar xvfz - && chmod +x yq_linux_amd64
# for testing:
# - export SERVICE_NAME=postgresql
# - export CI_COMMIT_TAG=10.12.1
- export BRANCH_NAME="auto-update-${SERVICE_NAME}-${CI_COMMIT_TAG}"
- git config --global user.email "gitlab@eox.at"
- git config --global user.name "gitlab"
- git clone https://${VS_DEPLOYMENT_GIT_REPOSITORY_CREDENTIALS}@gitlab.eox.at/vs/vs-deployment.git
- cd vs-deployment
- git switch -c "${BRANCH_NAME}"
# bump version in Chart.yaml
- ../yq_linux_amd64 eval "( .dependencies[] | select(.name == \"${SERVICE_NAME}\") | .version ) = \"${CI_COMMIT_TAG}\"" --inplace Chart.yaml
- helm dependency update
- git add charts/*
- git commit --all -m "Bump ${SERVICE_NAME} to ${CI_COMMIT_TAG}"
- git push --set-upstream origin "${BRANCH_NAME}"
only:
- tags
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment