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:
Kjeld Schouten-Lebbing
2021-12-04 11:04:24 +01:00
committed by GitHub
parent 91ccfe2631
commit 52aecf1094
5 changed files with 8 additions and 7 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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'

View File

@@ -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

View File

@@ -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