Skip to content

Bump k8s.io/sample-controller from 0.26.1 to 0.29.0 #69

Bump k8s.io/sample-controller from 0.26.1 to 0.29.0

Bump k8s.io/sample-controller from 0.26.1 to 0.29.0 #69

Workflow file for this run

name: chart
env:
CHARTMUSEUM_URL: "https://charts.flant.com/api/common/github/charts"
CHART_DIR: "helm/charts/k8s-image-availability-exporter"
on:
push:
tags:
- v*
branches:
- master
pull_request:
branches:
- master
defaults:
run:
shell: "bash -l -eo pipefail {0}"
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: werf/actions/[email protected]
- name: Werf lint chart
run: cd "$CHART_DIR" && werf helm lint
- name: Werf render chart
run: cd "$CHART_DIR" && werf helm template .
publish-charts:
runs-on: ubuntu-latest
if: "github.event_name == 'push' && github.ref == 'refs/heads/master'"
needs: tests
steps:
- uses: actions/[email protected]
- uses: werf/actions/[email protected]
- name: Package werf charts
run: |
mkdir -p .packages
werf helm package "$CHART_DIR" -d .packages
- name: Publish packaged werf charts
run: |
while read package; do
curl -sSL --post301 --data-binary "@.packages/$package" --user "${{ secrets.CHARTMUSEUM_BASIC_AUTH_USER }}:${{ secrets.CHARTMUSEUM_BASIC_AUTH_PASS }}" "$CHARTMUSEUM_URL"
done < <(find .packages -mindepth 1 -maxdepth 1 -type f -name '*.tgz' -exec sh -c 'basename "$0"' '{}' \;)