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:
@@ -12,7 +12,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
concurrency: gitpush
|
concurrency: gitpush
|
||||||
container:
|
container:
|
||||||
image: tccr.io/truecharts/devcontainer:v2.1.0
|
image: ghcr.io/truecharts/devcontainer:v2.1.0
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ jobs:
|
|||||||
## TODO: Fix common-test
|
## TODO: Fix common-test
|
||||||
- name: Run chart-testing (install)
|
- name: Run chart-testing (install)
|
||||||
if: ${{ matrix.app != 'common' && matrix.app != '.gitkee' && steps.prep-lint.outputs.install != 'false' }}
|
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:
|
app-tests-complete:
|
||||||
needs: [app-tests]
|
needs: [app-tests]
|
||||||
@@ -159,7 +159,7 @@ jobs:
|
|||||||
release-test:
|
release-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: tccr.io/truecharts/devcontainer:v2.1.0
|
image: ghcr.io/truecharts/devcontainer:v2.1.0
|
||||||
steps:
|
steps:
|
||||||
- name: Cache helm repo cache
|
- name: Cache helm repo cache
|
||||||
id: cache
|
id: cache
|
||||||
@@ -183,4 +183,4 @@ jobs:
|
|||||||
|
|
||||||
- name: build-and-run
|
- name: build-and-run
|
||||||
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
|
||||||
|
|||||||
@@ -106,4 +106,4 @@ jobs:
|
|||||||
version: v1.19
|
version: v1.19
|
||||||
|
|
||||||
- name: Run chart-testing (install)
|
- 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:
|
sources:
|
||||||
- https://github.com/Jackett/Jackett
|
- https://github.com/Jackett/Jackett
|
||||||
type: application
|
type: application
|
||||||
version: 9.0.29
|
version: 9.0.30
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- media
|
- media
|
||||||
|
|||||||
@@ -319,7 +319,8 @@ container_sec_scan() {
|
|||||||
echo "**Container: ${container}**" >> ${chart}/sec-scan.md
|
echo "**Container: ${container}**" >> ${chart}/sec-scan.md
|
||||||
echo "" >> ${chart}/sec-scan.md
|
echo "" >> ${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
|
||||||
echo "" >> ${chart}/sec-scan.md
|
echo "" >> ${chart}/sec-scan.md
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user