Skip to content

Commit

Permalink
rancher-charts-2.10: add version stream as git {} backends are not cu… (
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayk authored Nov 26, 2024
1 parent 3d7a9b9 commit 2094629
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions rancher-charts-2.10.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2094629

Please sign in to comment.