Skip to content

Instantly share code, notes, and snippets.

View rjpkuyper's full-sized avatar

Robert-Jan Kuyper rjpkuyper

View GitHub Profile
# prefix with name of dependent chart
store-chart:
name: override-name
Initialized empty Git repository in /builds/datails/store-and-consume-helm-charts/.git/
Created fresh repository.
Checking out cb728eea as main...
Skipping Git submodules setup
Executing "step_script" stage of the job script
00:04
Using docker image sha256:f8bb0f201e7557131bf82e50e7dda0e47382d8fdecd20c9edb3fc9f7abb025e1 for alpine/helm:3.9.4 with digest alpine/helm@sha256:df362a6029d9d931101df528c2ba8e0d9eead16fac2100f436e13141b499d8d0 ...
$ helm registry login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
WARNING: Using --password via the CLI is insecure. Use --password-stdin.
Login Succeeded
apiVersion: v2
name: app1
type: application
version: 1.0.0
description: Using the chart from GitLab's private registry.
dependencies:
- name: store-chart
version: 1.0.0
repository: oci://registry.gitlab.com/datails/store-and-consume-helm-charts/charts
default:
image:
name: alpine/helm:3.9.4
entrypoint: [""]
stages:
- publish
publish-chart:
stage: publish
name: default-name
apiVersion: v2
name: store-chart
description: Store a Helm chart in GitLab's private registry.
type: application
version: 1.0.0
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ $.Values.name }}-config
data:
foo: bar
const { writeFileSync } = require('fs')
const createBaseFile = () => `
stages:
- publish
`
const createEmptyJob = () => `
publish:empty:
stage: publish
{
"tasks": [],
"projects": [
"app1"
],
"projectGraph": {
"nodes": [
"app1",
"app2",
"app3"
default:
image: node:16
stages:
- build
- triggers
build:
stage: build
script: