chore: update rendered manifests and CRD docs #1772
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish-chart | |
on: | |
push: | |
tags: | |
# regex from https://semver.org/ | |
- '^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$' | |
workflow_dispatch: | |
jobs: | |
publish-chart: | |
runs-on: ubuntu-latest | |
if: "startsWith(github.ref, 'refs/tags/')" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- uses: azure/[email protected] | |
- name: Publish chart and push images | |
env: | |
DOCKER_USERNAME: ${{ secrets.RENKU_DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.RENKU_DOCKER_PASSWORD }} | |
GITHUB_TOKEN: ${{ secrets.RENKUBOT_GITHUB_TOKEN }} | |
run: | | |
cd helm-chart/ | |
python -m pip install --upgrade pip | |
pip install chartpress | |
git config --global user.email "[email protected]" | |
git config --global user.name "Renku Bot" | |
echo ${DOCKER_PASSWORD} | docker login -u ${DOCKER_USERNAME} --password-stdin | |
export TAG=$(echo ${GITHUB_REF} | cut -d/ -f3) | |
helm dep update amalthea | |
helm lint amalthea | |
cd .. | |
chartpress --tag $TAG | |
chartpress --tag $TAG --push --publish-chart | |
chartpress --tag latest --push |