Fix/drc (#36) #29
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: ci | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
env: | |
ENV: production | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 'pypy3.9' | |
- run: | | |
cd ./parser | |
pip install -r requirements.txt | |
python3 parser.py | |
- name: helm login | |
run: | | |
echo ${{ secrets.GHCR_TOKEN }} | helm registry login ghcr.io -u $ --password-stdin | |
- name: helm lint | |
run: | | |
helm lint ./helm/ri-zgw | |
- name: helm package | |
run: | | |
VERSION=$(echo "$GITHUB_REF_NAME" | sed 's/v//') | |
helm package ./helm/ri-zgw --version $VERSION | |
- name: helm push | |
if: ${{ github.event_name == 'push' }} | |
run: | | |
REPO_NAME=$(echo 'print("${{ github.repository_owner }}".lower())' | python3 -) | |
CHART=$(ls | grep ri-zgw-*.tgz) | |
helm push $CHART oci://ghcr.io/$REPO_NAME |