add new custom docker image helm-utilities
This commit is contained in:
+3
-7
@@ -1,4 +1,7 @@
|
|||||||
default:
|
default:
|
||||||
|
image:
|
||||||
|
- name: registry.gitlab/next-gen-portal/infra-custom-images/helm-utilities:latest
|
||||||
|
entrypoint: [""]
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
@@ -26,17 +29,12 @@ variables:
|
|||||||
GITEA_USERNAME: "gitea_admin"
|
GITEA_USERNAME: "gitea_admin"
|
||||||
GITEA_REPO: "oci://${GITEA_HOST}/${GITEA_USERNAME}/helm"
|
GITEA_REPO: "oci://${GITEA_HOST}/${GITEA_USERNAME}/helm"
|
||||||
|
|
||||||
.helm_image: &helm_image
|
|
||||||
name: alpine/helm:3.14.0
|
|
||||||
entrypoint: [""]
|
|
||||||
|
|
||||||
# Only run publish jobs on the main branch
|
# Only run publish jobs on the main branch
|
||||||
.main_only: &main_only
|
.main_only: &main_only
|
||||||
- if: '$CI_COMMIT_BRANCH == "main"'
|
- if: '$CI_COMMIT_BRANCH == "main"'
|
||||||
|
|
||||||
package_chart:
|
package_chart:
|
||||||
stage: package
|
stage: package
|
||||||
image: *helm_image
|
|
||||||
script:
|
script:
|
||||||
- helm repo add st-common "${COMMON_PROJECT_URL}" --username "$CI_REGISTRY_USER" --password "$CI_JOB_TOKEN" --ca-file "$GITLAB_CRT"
|
- helm repo add st-common "${COMMON_PROJECT_URL}" --username "$CI_REGISTRY_USER" --password "$CI_JOB_TOKEN" --ca-file "$GITLAB_CRT"
|
||||||
- helm dependency build .
|
- helm dependency build .
|
||||||
@@ -49,7 +47,6 @@ package_chart:
|
|||||||
|
|
||||||
publish_chart:
|
publish_chart:
|
||||||
stage: publish
|
stage: publish
|
||||||
image: alpine/curl:8.14.1
|
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
curl --fail-with-body --request POST \
|
curl --fail-with-body --request POST \
|
||||||
@@ -64,7 +61,6 @@ publish_chart:
|
|||||||
push_chart_to_gitea:
|
push_chart_to_gitea:
|
||||||
extends: .openbao-with-secrets
|
extends: .openbao-with-secrets
|
||||||
stage: publish
|
stage: publish
|
||||||
image: *helm_image
|
|
||||||
|
|
||||||
id_tokens:
|
id_tokens:
|
||||||
OPENBAO_ID_TOKEN:
|
OPENBAO_ID_TOKEN:
|
||||||
|
|||||||
Reference in New Issue
Block a user