Compare commits
20 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
2a5139e9b0 | ||
|
2a40a55649 | ||
|
3897cb8ee7 | ||
|
184cc663d9 | ||
|
ab9a1d385f | ||
|
6fdcccff69 | ||
|
6007cc9f09 | ||
|
4990e6fae9 | ||
|
f64d3eba0f | ||
|
c7f0e3071a | ||
|
0ec7ec199a | ||
|
3633fb4a59 | ||
|
907bb83ef4 | ||
|
ef7425ddea | ||
|
bef4b23ced | ||
|
54e87b6b8c | ||
|
e7e344e9dc | ||
|
56a38f556a | ||
|
062fb1c416 | ||
|
f2b8cf31ca |
@ -2,7 +2,9 @@ name: Lint and Test Charts
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
# Pattern matched against refs/tags
|
||||||
|
tags:
|
||||||
|
- '**' # Push events to every tag including hierarchical tags like v1.0/beta
|
||||||
jobs:
|
jobs:
|
||||||
lint-test:
|
lint-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -11,7 +13,7 @@ jobs:
|
|||||||
name: Check out code
|
name: Check out code
|
||||||
|
|
||||||
- uses: mr-smithers-excellent/docker-build-push@v6
|
- uses: mr-smithers-excellent/docker-build-push@v6
|
||||||
name: Build & push Docker image
|
name: Build & push Container image
|
||||||
with:
|
with:
|
||||||
image: library/azure-agent
|
image: library/azure-agent
|
||||||
registry: repo.rre.nu
|
registry: repo.rre.nu
|
||||||
|
@ -19,30 +19,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: v3.14.4
|
version: v3.14.4
|
||||||
|
|
||||||
- uses: actions/setup-python@v5
|
- name: Check for changed charts
|
||||||
|
id: changed-files
|
||||||
|
uses: tj-actions/changed-files@v44
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
dir_names: true
|
||||||
check-latest: true
|
dir_names_max_depth: '2'
|
||||||
|
files: 'charts/**'
|
||||||
|
|
||||||
- name: Set up chart-testing
|
- name: List all changed files
|
||||||
uses: helm/chart-testing-action@v2.6.1
|
env:
|
||||||
|
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
|
||||||
- name: Run chart-testing (list-changed)
|
|
||||||
id: list-changed
|
|
||||||
run: |
|
run: |
|
||||||
changed=$(ct list-changed --target-branch ${{ gitea.event.repository.default_branch }})
|
echo "performing lint"
|
||||||
if [[ -n "$changed" ]]; then
|
for file in ${ALL_CHANGED_FILES}; do
|
||||||
echo "changed=true" >> "$GITHUB_OUTPUT"
|
echo "$file was changed"
|
||||||
fi
|
helm lint $file
|
||||||
|
done
|
||||||
- name: Run chart-testing (lint)
|
|
||||||
if: steps.list-changed.outputs.changed == 'true'
|
|
||||||
run: ct lint --target-branch ${{ gitea.event.repository.default_branch }}
|
|
||||||
|
|
||||||
- name: Create kind cluster
|
|
||||||
if: steps.list-changed.outputs.changed == 'true'
|
|
||||||
uses: helm/kind-action@v1.10.0
|
|
||||||
|
|
||||||
- name: Run chart-testing (install)
|
|
||||||
if: steps.list-changed.outputs.changed == 'true'
|
|
||||||
run: ct install --target-branch ${{ gitea.event.repository.default_branch }}
|
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
name: Testing pipes
|
name: Testing pipes
|
||||||
on:
|
on: []
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
Explore-Gitea-Actions:
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
# Default values for az-agent.
|
# Default values for az-agent.
|
||||||
# This is a YAML-formatted file.
|
# This is a YAML-formatted file. sdf
|
||||||
# Declare variables to be passed into your templates.
|
# Declare variables to be passed into your templates.
|
||||||
|
|
||||||
azure:
|
azure:
|
||||||
url
|
url:
|
||||||
pool
|
pool:
|
||||||
token:
|
token:
|
||||||
|
|
||||||
harbor:
|
harbor:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user