feat(buildkit): bump chart version to 0.3.4 and skip replicas when me… #559
This file contains hidden or 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: Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| unittest: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Helm | |
| uses: azure/setup-helm@v4 | |
| - name: Install helm-unittest plugin | |
| run: helm plugin install https://github.com/helm-unittest/helm-unittest --verify=false | |
| - name: Detect charts with tests | |
| id: charts | |
| run: | | |
| charts=$(find charts -mindepth 2 -maxdepth 2 -type d -name tests | sed 's|/tests$||' | sort -u | tr '\n' ' ') | |
| echo "list=${charts}" >> "$GITHUB_OUTPUT" | |
| - name: Run helm unittest | |
| run: | | |
| for chart in ${{ steps.charts.outputs.list }}; do | |
| echo "==> Testing ${chart}" | |
| helm unittest "${chart}" | |
| done | |
| release: | |
| needs: unittest | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Configure Git | |
| run: | | |
| git config user.name "$GITHUB_ACTOR" | |
| git config user.email "$GITHUB_ACTOR@users.noreply.github.com" | |
| - name: Install Helm | |
| uses: azure/setup-helm@v1 | |
| with: | |
| version: v3.4.1 | |
| - name: Add dependency chart repos | |
| run: | | |
| helm repo add tsuru https://tsuru.github.io/charts | |
| helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx | |
| helm repo add twuni https://twuni.github.io/docker-registry.helm | |
| helm repo add bitnami https://charts.bitnami.com/bitnami | |
| helm repo add jetstack https://charts.jetstack.io | |
| - name: Run chart-releaser | |
| uses: helm/chart-releaser-action@v1.2.1 | |
| with: | |
| charts_dir: charts | |
| env: | |
| CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
| CR_SKIP_EXISTING: "true" |