Skip to content
Snippets Groups Projects
Verified Commit 310f282c authored by Martin Weise's avatar Martin Weise
Browse files

Attempt to sign chart, let's see what happens

parent b229b8b4
No related branches found
No related tags found
2 merge requests!268Master,!266Dev
...@@ -564,9 +564,9 @@ release-images: ...@@ -564,9 +564,9 @@ release-images:
before_script: before_script:
- "echo ${CI_REGISTRY_PASSWORD} | docker login --username ${CI_REGISTRY_USER} --password-stdin $CI_REGISTRY_URL" - "echo ${CI_REGISTRY_PASSWORD} | docker login --username ${CI_REGISTRY_USER} --password-stdin $CI_REGISTRY_URL"
- "echo ${CI_REGISTRY2_PASSWORD} | docker login --username ${CI_REGISTRY2_USER} --password-stdin $CI_REGISTRY2_URL" - "echo ${CI_REGISTRY2_PASSWORD} | docker login --username ${CI_REGISTRY2_USER} --password-stdin $CI_REGISTRY2_URL"
script:
- "ifconfig eth0 mtu 1450 up" - "ifconfig eth0 mtu 1450 up"
- "apk add make bash" - "apk add make bash"
script:
- "make release" - "make release"
release-images-unstable: release-images-unstable:
...@@ -581,11 +581,11 @@ release-images-unstable: ...@@ -581,11 +581,11 @@ release-images-unstable:
- master - master
- dev - dev
before_script: before_script:
- echo "$CI_REGISTRY_PASSWORD" | docker login --username "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY_URL - "echo ${CI_REGISTRY_PASSWORD} | docker login --username ${CI_REGISTRY_USER} --password-stdin $CI_REGISTRY_URL"
- echo "$CI_REGISTRY2_PASSWORD" | docker login --username "$CI_REGISTRY2_USER" --password-stdin $CI_REGISTRY2_URL - "echo ${CI_REGISTRY2_PASSWORD} | docker login --username ${CI_REGISTRY2_USER} --password-stdin $CI_REGISTRY2_URL"
script:
- "ifconfig eth0 mtu 1450 up" - "ifconfig eth0 mtu 1450 up"
- "apk add make bash" - "apk add make bash"
script:
- "CI_COMMIT_BRANCH=release-unstable make release-images" - "CI_COMMIT_BRANCH=release-unstable make release-images"
release-chart: release-chart:
...@@ -595,11 +595,14 @@ release-chart: ...@@ -595,11 +595,14 @@ release-chart:
refs: refs:
- /^release-.*/ - /^release-.*/
before_script: before_script:
- echo "$CI_REGISTRY2_PASSWORD" | docker login --username "$CI_REGISTRY2_USER" --password-stdin $CI_REGISTRY2_URL - "echo ${CI_REGISTRY2_PASSWORD} | docker login --username ${CI_REGISTRY2_USER} --password-stdin $CI_REGISTRY2_URL"
- "echo ${CI_GPG_KEYRING} | base64 -d > ~/keyring.gpg"
- "apk add sed helm curl"
- "helm plugin install https://github.com/sigstore/helm-sigstore"
script: script:
- apk add sed helm curl - "helm package --sign --key 'Martin Weise' ./helm/dbrepo --keyring ~/keyring.gpg --destination ./build"
- helm package ./helm/dbrepo --destination ./build - "helm push ./build/dbrepo-${CHART_VERSION}.tgz oci://${CI_REGISTRY2_URL}/helm"
- helm push "./build/dbrepo-${CHART_VERSION}.tgz" "oci://${CI_REGISTRY2_URL}/helm" - "helm sigstore upload ./build/dbrepo-${CHART_VERSION}.tgz"
release-docs: release-docs:
stage: release stage: release
......
...@@ -3,3 +3,4 @@ ...@@ -3,3 +3,4 @@
*.key *.key
*.srl *.srl
*.csr *.csr
build/*
\ No newline at end of file
...@@ -12,6 +12,8 @@ hack/ ...@@ -12,6 +12,8 @@ hack/
.hg/ .hg/
.hgignore .hgignore
.svn/ .svn/
# Generated
build/
# Common backup files # Common backup files
*.swp *.swp
*.bak *.bak
......
...@@ -12,7 +12,7 @@ maintainers: ...@@ -12,7 +12,7 @@ maintainers:
- name: Martin Weise - name: Martin Weise
email: martin.weise@tuwien.ac.at email: martin.weise@tuwien.ac.at
home: https://www.ifs.tuwien.ac.at/infrastructures/dbrepo/ home: https://www.ifs.tuwien.ac.at/infrastructures/dbrepo/
icon: https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/master/.docs/images/signet_white.png icon: https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/master/dbrepo-ui/public/favicon.png
dependencies: dependencies:
- name: opensearch - name: opensearch
alias: searchdb alias: searchdb
......
...@@ -3,5 +3,6 @@ all: ...@@ -3,5 +3,6 @@ all:
.PHONY: build .PHONY: build
build: ## Generate Helm values schema JSON build: ## Generate Helm values schema JSON
helm package --sign --key 'Martin Weise' . --keyring ~/.gnupg/mweise.gpg --destination ./build
helm schema -input ./values.yaml helm schema -input ./values.yaml
readme-generator-for-helm --readme README.md --values values.yaml readme-generator-for-helm --readme README.md --values values.yaml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment