Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
Signed-off-by: Lasse Gaardsholt <[email protected]>
  • Loading branch information
Gaardsholt committed Oct 12, 2023
1 parent 2ab1ee1 commit 91e9ce1
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build_container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,49 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
debugger:
runs-on: ubuntu-latest
needs: [build-and-push-image]
steps:
- uses: hmarr/debug-action@v2
lint-test:
runs-on: ubuntu-latest
needs: [build-and-push-image]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.11.2

- uses: actions/setup-python@v4
with:
python-version: "3.9"
check-latest: true

- name: Set up chart-testing
uses: helm/[email protected]

- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --config ct.yaml --target-branch ${{ github.event.repository.default_branch }})
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --config ct.yaml --target-branch ${{ github.event.repository.default_branch }}

- name: Create kind cluster
if: steps.list-changed.outputs.changed == 'true'
uses: helm/[email protected]

- name: Run chart-testing (install)
if: steps.list-changed.outputs.changed == 'true'
run: ct install --config ct.yaml --helm-extra-set-args "--set=image.tag=${GITHUB_REF#refs/heads/}" --target-branch ${{ github.event.repository.default_branch }}

0 comments on commit 91e9ce1

Please sign in to comment.