Skip to content

Commit

Permalink
doc: yaml input
Browse files Browse the repository at this point in the history
  • Loading branch information
yeoldegrove committed Oct 22, 2024
1 parent 7299770 commit 68bac03
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ This will generate the following initial release data ...
❯ glrd-manage --create-initial-releases stable,patch,nightly --input
```

### Generate/Update an arbitrary release from JSON data
### Generate/Update an arbitrary release from JSON/YAML data

This will generate/update a release from JSON data and upload it to the default S3 bucket.

Expand Down Expand Up @@ -343,6 +343,32 @@ This will generate/update a release from JSON data and upload it to the default
}' | glrd-manage --input-stdin
```

Another approach is writing release YAML data to an input file and use this file as input parameter.

```
❯ cat releases-input.yaml
releases:
- name: patch-1592.1
type: patch
version:
major: 1592
minor: 1
lifecycle:
released:
isodate: "2024-08-22"
timestamp: 1724277600
eol:
isodate: "2025-08-27"
timestamp: 1754949600
git:
commit: ec945aa995d0f08d64303ff6045b313b40b66fff
commit_short: ec945aa
github:
release: https://github.com/gardenlinux/gardenlinux/releases/tag/1592.1
❯ glrd-manage --input --input-file releases-input.yaml
```

### Create or update a stable release

https://github.com/gardenlinux/glrd?tab=readme-ov-file#default-stable-dates
Expand Down

0 comments on commit 68bac03

Please sign in to comment.