-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25155 from developer-guy/kontainer-driver-metadata
kontainer-driver-metadata for rancher
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#nolint:valid-pipeline-git-checkout-tag | ||
package: | ||
name: rancher-kontainer-driver-metadata | ||
version: 2.9 | ||
epoch: 0 | ||
description: This repository is to keep information of k8s versions and their dependencies like k8s components flags and system addons images. | ||
copyright: | ||
- license: Apache-2.0 | ||
|
||
environment: | ||
contents: | ||
packages: | ||
- build-base | ||
- busybox | ||
- ca-certificates-bundle | ||
|
||
pipeline: | ||
- uses: git-checkout | ||
with: | ||
repository: https://github.com/rancher/kontainer-driver-metadata/ | ||
branch: release-v${{package.version}} | ||
expected-commit: 6b07bc04422dd7cb6cb6bc8fd08f6e6806d48f6b | ||
|
||
- runs: | | ||
mkdir -p ${{targets.contextdir}}/var/lib/rancher-data/driver-metadata | ||
install -Dm755 data/data.json ${{targets.contextdir}}/var/lib/rancher-data/driver-metadata/data.json | ||
update: | ||
enabled: false | ||
exclude-reason: they use branches for releases instead of tags https://github.com/rancher/kontainer-driver-metadata/branches | ||
|
||
test: | ||
pipeline: | ||
- runs: | | ||
# check data.json is available at the expected location at `/var/lib/rancher-data/driver-metadata/` | ||
test -f /var/lib/rancher-data/driver-metadata/data.json |