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

Fixed release libs

parent 50cca655
No related branches found
No related tags found
3 merge requests!422Fixed a library issue where the value could not be empty,!421Fixed a library issue where the value could not be empty,!419Fixed a library issue where the value could not be empty
...@@ -577,17 +577,16 @@ release-helm: ...@@ -577,17 +577,16 @@ release-helm:
- "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}"
- "docker logout ${CI_REGISTRY2_URL}" - "docker logout ${CI_REGISTRY2_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}"
- "mkdir -p ~/.gnupg" - echo "$CI_GPG_KEYRING" | base64 -d > ~/secring.gpg
- echo "$CI_GPG_KEYRING" | base64 -d > ./secring.gpg - echo "$CI_GPG_KEYRING2" | base64 -d > ~/pubring.gpg
- echo "$CI_GPG_KEYRING2" | base64 -d > ./pubring.gpg
- helm registry login --username "${CI_REGISTRY_USER}" --password "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY_URL}" - helm registry login --username "${CI_REGISTRY_USER}" --password "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY_URL}"
- helm registry login --username "${CI_REGISTRY2_USER}" --password "${CI_REGISTRY2_PASSWORD}" "${CI_REGISTRY2_URL}" - helm registry login --username "${CI_REGISTRY2_USER}" --password "${CI_REGISTRY2_PASSWORD}" "${CI_REGISTRY2_URL}"
- make build-helm - make build-helm
- "helm package ./helm/dbrepo --sign --key 'Martin Weise' --keyring ./secring.gpg --destination ./build" - "helm package ./helm/dbrepo --sign --key 'Martin Weise' --keyring ~/secring.gpg --destination ./build"
- "helm plugin install https://github.com/sigstore/helm-sigstore" - "helm plugin install https://github.com/sigstore/helm-sigstore"
script: script:
- "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 --keyring ./pubring.gpg ./build/dbrepo-${CHART_VERSION}.tgz" - "helm sigstore upload --keyring ~/secring.gpg ./build/dbrepo-${CHART_VERSION}.tgz"
release-docs: release-docs:
stage: release stage: release
...@@ -629,13 +628,13 @@ release-libs: ...@@ -629,13 +628,13 @@ release-libs:
only: only:
- tags - tags
variables: variables:
PIPENV_PIPFILE: "./dbrepo-analyse-service/Pipfile" PIPENV_PIPFILE: "./lib/python/Pipfile"
before_script: before_script:
- "pip install pipenv twine build" - "pip install pipenv twine build"
- "pipenv install gunicorn && pipenv install --dev --system --deploy" - "pipenv install --dev --system --deploy"
- "echo ${CI_PIPYRC} | base64 -d > ./.pypirc" - "echo ${CI_PIPYRC} | base64 -d > ./.pypirc"
script: script:
- "python -m build" - "python -m build ./lib/python"
- "python -m twine upload --config-file ./.pypirc --verbose --repository pypi ./lib/python/dist/dbrepo-*" - "python -m twine upload --config-file ./.pypirc --verbose --repository pypi ./lib/python/dist/dbrepo-*"
verify-install-script: verify-install-script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment