EOX GitLab Instance
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
View Server 2
harvester
Commits
f22f6d25
Commit
f22f6d25
authored
Dec 13, 2021
by
Bernhard Mallinger
Browse files
Bump version in vs-deployment on new tags
parent
f22897a7
Pipeline
#19672
passed with stages
in 7 minutes and 31 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
f22f6d25
...
...
@@ -2,9 +2,11 @@ stages:
-
test
-
publish
-
chart
-
integration_test
variables
:
DOCKER_TLS_CERTDIR
:
"
"
SERVICE_NAME
:
"
vs-harvester"
test
:
image
:
python:3.8-slim
...
...
@@ -52,3 +54,27 @@ helm:
-
curl -u $HELM_CHART_REPOSITORY_CREDENTIALS -v -X POST https://charts-public.hub.eox.at/api/charts --data-binary "@${upload_filename}"
only
:
-
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
-
export CHART_VERSION=$(./yq_linux_amd64 eval .version chart/Chart.yaml)
-
export BRANCH_NAME="auto-update-${SERVICE_NAME}-${CHART_VERSION}"
-
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 ) = \"${CHART_VERSION}\"" --inplace Chart.yaml
-
helm dependency update
-
git add charts/*
-
git commit --all -m "Bump ${SERVICE_NAME} to ${CHART_VERSION}"
-
git push --set-upstream origin "${BRANCH_NAME}"
only
:
-
tags
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment