Support ImagePullSecret for pulling from private registry #808
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: Lint Test | |
on: | |
pull_request: | |
paths-ignore: | |
- '.github/**' | |
- 'README.md' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
# Declare default permissions as read only. | |
permissions: read-all | |
jobs: | |
lint-test: | |
env: | |
branch_name: ${{ github.head_ref || github.ref_name }} | |
# renovate: datasource=github-releases depName=helm/helm | |
HELM_VERSION: v3.16.3 | |
# renovate: datasource=github-tags depName=python/cpython | |
PYTHON_VERSION: v3.13.0 | |
# renovate: datasource=pypi depName=pybump | |
PYBUMP_VERSION: 1.12.6 | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Helm 🧰 | |
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4 | |
with: | |
version: ${{ env.HELM_VERSION }} | |
- name: Setup Python 🐍 | |
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Setup chart-testing 🧰 | |
uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1 | |
- name: Setup pybump | |
if: ${{ contains(env.branch_name, 'renovate') }} | |
run: | | |
pip3 install pybump==${PYBUMP_VERSION} | |
- name: Bump chart version | |
if: ${{ contains(env.branch_name, 'renovate') }} | |
id: bumped_charts | |
run: | | |
.github/renovate-bump.sh | |
- name: Run Chart lint tests 🧪 | |
run: ct lint --target-branch main | |
# Use the REST API to commit changes, so we get automatic commit signing | |
- name: Push changes | |
if: ${{ contains(env.branch_name, 'renovate') }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
changed_charts: ${{ steps.bumped_charts.outputs.CHARTS }} | |
run: | | |
for chart in ${changed_charts}; do | |
export SHA=$(git rev-parse origin/${branch_name}:${chart} ) | |
gh api --method PUT /repos/:owner/:repo/contents/${chart} \ | |
--field message="chore: bumped ${chart} version" \ | |
--field content=@<( base64 -i ${chart} ) \ | |
--field branch="${branch_name}" \ | |
--field sha="$SHA" | |
done |