Skip to content

Commit

Permalink
feat: add updatecli config for releasepost
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Salas <[email protected]>
  • Loading branch information
salasberryfin committed Jan 14, 2025
1 parent d4cedbc commit 2a2ee6a
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .releasepost.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
changelogs:
- kind: github
dir: docs/next/modules/en/pages/changelogs
formats:
- extension: asciidoc
frontmatters: |
== "{{ .Changelog.Name }}"
=== "{{ .Changelog.PublishedAt }}"
indexfilename: index
indexfrontmatters: |
= Release Notes
indexfiletemplate: |
{{ .FrontMatters }}
{{ range $pos, $release := .Changelogs }}
* link:changelogs/{{ $release.Tag }}.html[{{ $release.Name }} {{ if (eq $pos 0) }}(latest){{ end}}]
{{ end }}
spec:
owner: rancher
repository: turtles
3 changes: 2 additions & 1 deletion docs/next/modules/en/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@
** xref:reference/intro.adoc[Introduction]
** xref:reference/glossary.adoc[Glossary]
* Security
** xref:security/slsa.adoc[SLSA]
** xref:security/slsa.adoc[SLSA]
* xref:changelogs/index.adoc[Release Notes]
Empty file.
13 changes: 13 additions & 0 deletions updatecli-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
policies:
# The following policies are designed to work from GitHub action workflows.
# This means that before running any Updatecli command, we need the two following environment variables set:
#
# GITHUB_TOKEN: Set to a personal access token
# GITHUB_ACTOR: Set to the username associated with the GITHUB_TOKEN
#
# Instruction to retrieve your PAT is documented on https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens
- name: Handle releasepost
policy: ghcr.io/salasberryfin/rancherlabs-policies/releasepost:0.1.0@sha256:4f34a64936426fdfe723e9380ddaa866453eddec893e82151caf3fe46a008fb6
values:
- updatecli/values.d/scm.yaml
- updatecli/values.d/turtles.yaml
9 changes: 9 additions & 0 deletions updatecli/values.d/scm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Settings used by releasepost Updatecli policy
# to identify which Git repository to update.
scm:
enabled: true
user: "updatecli-bot"
email: "[email protected]"
owner: rancher
repository: turtles-docs
branch: main
4 changes: 4 additions & 0 deletions updatecli/values.d/turtles.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Settings used by releasepost Updatecli policy
# to identify which GitHub repository to monitor for information releases and changelog information
project: "Turtles"
repository: "rancher/turtles"

0 comments on commit 2a2ee6a

Please sign in to comment.