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:
|
||||
push:
|
||||
|
||||
# Pattern matched against refs/tags
|
||||
tags:
|
||||
- '**' # Push events to every tag including hierarchical tags like v1.0/beta
|
||||
jobs:
|
||||
lint-test:
|
||||
runs-on: ubuntu-latest
|
||||
@ -11,7 +13,7 @@ jobs:
|
||||
name: Check out code
|
||||
|
||||
- uses: mr-smithers-excellent/docker-build-push@v6
|
||||
name: Build & push Docker image
|
||||
name: Build & push Container image
|
||||
with:
|
||||
image: library/azure-agent
|
||||
registry: repo.rre.nu
|
||||
|
@ -19,30 +19,20 @@ jobs:
|
||||
with:
|
||||
version: v3.14.4
|
||||
|
||||
- uses: actions/setup-python@v5
|
||||
- name: Check for changed charts
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
python-version: '3.x'
|
||||
check-latest: true
|
||||
dir_names: true
|
||||
dir_names_max_depth: '2'
|
||||
files: 'charts/**'
|
||||
|
||||
- name: Set up chart-testing
|
||||
uses: helm/chart-testing-action@v2.6.1
|
||||
|
||||
- name: Run chart-testing (list-changed)
|
||||
id: list-changed
|
||||
- name: List all changed files
|
||||
env:
|
||||
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
|
||||
run: |
|
||||
changed=$(ct list-changed --target-branch ${{ gitea.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 --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 }}
|
||||
echo "performing lint"
|
||||
for file in ${ALL_CHANGED_FILES}; do
|
||||
echo "$file was changed"
|
||||
helm lint $file
|
||||
done
|
||||
|
@ -1,8 +1,5 @@
|
||||
name: Testing pipes
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
on: []
|
||||
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
|
@ -6,4 +6,4 @@ stringData:
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ include "az-agent.fullname" . }}
|
||||
type: Opaque
|
||||
type: Opaque
|
||||
|
@ -1,10 +1,10 @@
|
||||
# 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.
|
||||
|
||||
azure:
|
||||
url
|
||||
pool
|
||||
url:
|
||||
pool:
|
||||
token:
|
||||
|
||||
harbor:
|
||||
|
Loading…
x
Reference in New Issue
Block a user