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

Attempt new release

parent 91649267
No related branches found
No related tags found
1 merge request!416Attempt new release
...@@ -577,24 +577,22 @@ release-helm: ...@@ -577,24 +577,22 @@ 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
image: docker.io/python:${PYTHON_VERSION}-alpine${ALPINE_VERSION} image: docker.io/python:${PYTHON_VERSION}-alpine${ALPINE_VERSION}
only: only:
refs: - tags
- /^release-.*/
before_script: before_script:
- "apk add --no-cache alpine-sdk bash sed wget openssh jq curl" - "apk add --no-cache alpine-sdk bash sed wget openssh jq curl"
- "pip install pipenv" - "pip install pipenv"
...@@ -629,14 +627,14 @@ release-libs: ...@@ -629,14 +627,14 @@ 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 > /app/.pypirc" - "echo ${CI_PIPYRC} | base64 -d > ./.pypirc"
script: script:
- "python -m build" - "python -m build ./lib/python"
- "python -m twine upload --config-file /app/.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:
image: docker.io/docker:${DOCKER_VERSION}-dind image: docker.io/docker:${DOCKER_VERSION}-dind
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment