Created chart and CI/CD

This commit is contained in:
2023-03-19 22:43:41 +00:00
parent 9f91f4efe5
commit 520bfbb549
19 changed files with 40 additions and 11 deletions

22
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,22 @@
variables:
HELM_CHART_VERSION: "0.5.1"
stages:
- deploy
default:
image: cloudyne/kubectl-helm:latest
tags:
- kubernetes
- cluster01
deploy:
stage: deploy
script:
- 'sed -i "s/version:.*/version: ${HELM_CHART_VERSION}/"'
- helm package ./Chart
- |
curl --request POST \
--user gitlab-ci-token:$CI_JOB_TOKEN \
--form "chart=@cloudypress-${HELM_CHART_VERSION}.tgz" \
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"'