diff --git a/rancher-charts-2.10.yaml b/rancher-charts-2.10.yaml new file mode 100644 index 00000000000..3a36387cc11 --- /dev/null +++ b/rancher-charts-2.10.yaml @@ -0,0 +1,56 @@ +#nolint:git-checkout-must-use-github-updates,valid-pipeline-git-checkout-tag +package: + name: rancher-charts-2.10 + version: 0_git20241126 + epoch: 0 + description: Complete container management platform - charts + copyright: + - license: Apache-2.0 + dependencies: + provides: + - rancher-charts=${{package.full-version}} + +environment: + contents: + packages: + - busybox + - perl-utils + +pipeline: + - uses: git-checkout + with: + repository: https://github.com/rancher/charts + branch: release-v2.10 + expected-commit: f95f7170323d6f410633ef5369c927cd835d4722 + destination: ./charts + depth: -1 + + - working-directory: ./charts + runs: | + shasum256=$(echo -n "https://git.rancher.io/charts" |shasum -a 256 | awk '{ print $1 }') + mkdir -p ${{targets.contextdir}}/var/lib/rancher-data/local-catalogs/v2/rancher-charts/$shasum256 + cp -r ./* ${{targets.contextdir}}/var/lib/rancher-data/local-catalogs/v2/rancher-charts/$shasum256 + + git checkout master + mkdir -p ${{targets.contextdir}}/var/lib/rancher-data/local-catalogs/library + cp -r ./* ${{targets.contextdir}}/var/lib/rancher-data/local-catalogs/library + +test: + environment: + contents: + packages: + - perl-utils + pipeline: + - runs: | + shasum256=$(echo -n "https://git.rancher.io/charts" |shasum -a 256 | awk '{ print $1 }') + # check the expected files are available at the expected location at `/var/lib/rancher-data/local-catalogs/v2/rancher-charts/$shasum256/` + test -f /var/lib/rancher-data/local-catalogs/v2/rancher-charts/$shasum256/README.md + # check the expected files are available at the expected location at `/var/lib/rancher-data/local-catalogs/library/` + test -f /var/lib/rancher-data/local-catalogs/library/README.md + +update: + enabled: true + git: {} + schedule: + period: daily + reason: Commit at head of branch moves frequently