From 58634756d3c03daefe7d8289982eb1e20679a8bf Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sun, 9 Apr 2023 18:51:31 +0000 Subject: [PATCH] Update file .gitlab-ci.yml --- .gitlab-ci.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f19d17e..2bb0a0d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,17 @@ include: - project: 'developerdurp/yml' ref: main - file: 'pipelines/build-container.yml' \ No newline at end of file + file: 'pipelines/build-container.yml' + +default: + image: dtzar/helm-kubectl + before_script: + - 'helm repo add --username gitlab-ci-token --password ${CI_JOB_TOKEN} ${CI_PROJECT_NAME} ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/stable' +stages: + - build +upload: + stage: upload + script: + - helm package ./charts/durpapi + - 'helm plugin install https://github.com/chartmuseum/helm-push.git' + - 'helm push ./durpapi-0.1.0.tgz ${CI_PROJECT_NAME}'