mirror of
https://ghproxy.com/https://github.com/truecharts/charts.git
synced 2026-06-18 11:56:22 +08:00
fix(tests): use GHCR for install tests (#1461)
* fix(tests): use GHCR for install tests * bump jackett to test ci * also use ghcr.io for other tests * actually process all yaml files to ghcr, not just values.yaml
This commit is contained in:
committed by
GitHub
parent
91ccfe2631
commit
52aecf1094
2
.github/workflows/apps.release.yaml
vendored
2
.github/workflows/apps.release.yaml
vendored
@@ -12,7 +12,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
concurrency: gitpush
|
||||
container:
|
||||
image: tccr.io/truecharts/devcontainer:v2.1.0
|
||||
image: ghcr.io/truecharts/devcontainer:v2.1.0
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
6
.github/workflows/apps.test.yaml
vendored
6
.github/workflows/apps.test.yaml
vendored
@@ -146,7 +146,7 @@ jobs:
|
||||
## TODO: Fix common-test
|
||||
- name: Run chart-testing (install)
|
||||
if: ${{ matrix.app != 'common' && matrix.app != '.gitkee' && steps.prep-lint.outputs.install != 'false' }}
|
||||
run: ct install --config .github/ct-install.yaml --charts 'charts/${{ steps.prep-lint.outputs.train }}/${{ matrix.app }}'
|
||||
run: find ./charts/${{ steps.prep-lint.outputs.train }}/${{ matrix.app }} -type f -name *.yaml -exec sed -i 's/tccr.io/ghcr.io/gI' {} \; && ct install --config .github/ct-install.yaml --charts 'charts/${{ steps.prep-lint.outputs.train }}/${{ matrix.app }}'
|
||||
|
||||
app-tests-complete:
|
||||
needs: [app-tests]
|
||||
@@ -159,7 +159,7 @@ jobs:
|
||||
release-test:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: tccr.io/truecharts/devcontainer:v2.1.0
|
||||
image: ghcr.io/truecharts/devcontainer:v2.1.0
|
||||
steps:
|
||||
- name: Cache helm repo cache
|
||||
id: cache
|
||||
@@ -183,4 +183,4 @@ jobs:
|
||||
|
||||
- name: build-and-run
|
||||
run: |
|
||||
tools/build-release.sh --config .github/cr.yaml
|
||||
find ./ -type f -name *.yaml -exec sed -i 's/tccr.io/ghcr.io/gI' {} \; && tools/build-release.sh --config .github/cr.yaml
|
||||
|
||||
2
.github/workflows/common.test.yaml
vendored
2
.github/workflows/common.test.yaml
vendored
@@ -106,4 +106,4 @@ jobs:
|
||||
version: v1.19
|
||||
|
||||
- name: Run chart-testing (install)
|
||||
run: ct install --config .github/ct-install.yaml --charts 'charts/library/common-test'
|
||||
run: find ./charts/library/common-test -type f -name *.yaml -exec sed -i 's/tccr.io/ghcr.io/gI' {} \; && ct install --config .github/ct-install.yaml --charts 'charts/library/common-test'
|
||||
|
||||
@@ -21,7 +21,7 @@ name: jackett
|
||||
sources:
|
||||
- https://github.com/Jackett/Jackett
|
||||
type: application
|
||||
version: 9.0.29
|
||||
version: 9.0.30
|
||||
annotations:
|
||||
truecharts.org/catagories: |
|
||||
- media
|
||||
|
||||
@@ -319,7 +319,8 @@ container_sec_scan() {
|
||||
echo "**Container: ${container}**" >> ${chart}/sec-scan.md
|
||||
echo "" >> ${chart}/sec-scan.md
|
||||
echo '```' >> ${chart}/sec-scan.md
|
||||
trivy image ${container} >> ${chart}/sec-scan.md
|
||||
ghcrcont=$(echo ${container} | sed "s/tccr.io/ghcr.io/g")
|
||||
trivy image ${ghcrcont} >> ${chart}/sec-scan.md
|
||||
echo '```' >> ${chart}/sec-scan.md
|
||||
echo "" >> ${chart}/sec-scan.md
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user