Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions .github/workflows/updatecli.weekly.yaml

This file was deleted.

46 changes: 13 additions & 33 deletions .github/workflows/updatecli.yaml
Original file line number Diff line number Diff line change
@@ -1,49 +1,29 @@
---
name: Updatecli
on:
merge_group:
branch: master
release:
workflow_dispatch:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
# * is a special character in YAML so you have to quote this string
# Run every hour
- cron: '0 * * * *'
# Commenting until https://github.com/orgs/community/discussions/41518
# is fixed
#concurrency:
# # Restrict to one workflow per branch
# group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
# cancel-in-progress: true
# Run at 12:00 every Saterday every 14 days
- cron: "0 12 */14 * *"

jobs:
updatecli:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Install Updatecli"
uses: "updatecli/updatecli-action@v2.98.0"
uses: "actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3" # v6.0.0

- name: "Setup updatecli"
uses: "updatecli/updatecli-action@5ca36367fadc6ad94d590984fd9c696e783ec635" # v2.96.0
with:
version: "v0.114.0"
- name: "Run updatecli in dryrun"
run: "updatecli compose diff"
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "Login Udash"
if: github.ref == 'refs/heads/master'
run: "updatecli udash login --experimental --api-url $UPDATECLI_UDASH_API_URL --oauth-access-token $UPDATECLI_UDASH_ACCESS_TOKEN $UPDATECLI_UDASH_URL"
env:
UPDATECLI_UDASH_API_URL: ${{ secrets.UPDATECLI_UDASH_API_URL }}
UPDATECLI_UDASH_ACCESS_TOKEN: ${{ secrets.UPDATECLI_UDASH_ACCESS_TOKEN }}
UPDATECLI_UDASH_URL: ${{ secrets.UPDATECLI_UDASH_URL }}

- name: "Run updatecli"
if: github.ref == 'refs/heads/master'
run: "updatecli compose apply --clean-git-branches=true --experimental"
run: updatecli compose apply --clean-git-branches=true --experimental
env:
UPDATECLI_GITHUB_APP_CLIENT_ID: ${{ secrets.UPDATECLIBOT_APP_ID }}
UPDATECLI_GITHUB_APP_PRIVATE_KEY: ${{ secrets.UPDATECLIBOT_APP_PRIVKEY }}
UPDATECLI_GITHUB_APP_INSTALLATION_ID: ${{ secrets.UPDATECLIBOT_APP_INSTALLATION_ID }}
UPDATECLI_UDASH_API_URL: ${{ secrets.UPDATECLI_UDASH_API_URL }}
UPDATECLI_UDASH_ACCESS_TOKEN: ${{ secrets.UPDATECLI_UDASH_ACCESS_TOKEN }}
UPDATECLI_UDASH_URL: ${{ secrets.UPDATECLI_UDASH_URL }}
48 changes: 48 additions & 0 deletions .github/workflows/updatecli_release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
name: Updatecli Release
on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
# Run at 12:00 every Thursday
- cron: "0 12 * * 4"
repository_dispatch:
types:
- "updatecli-release"
jobs:
updatecli:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: "actions/checkout@v4"

- name: "Install Updatecli"
uses: "updatecli/updatecli-action@v2.96.0"
with:
version: "v0.114.0"

# releasepost is required by the Updatecli
# * policy ghcr.io/updatecli/policies/releasepost/releasepost
- name: "Install Releasepost"
uses: "updatecli/releasepost-action@v0.5.0"

- name: "Run updatecli only on release pipelines"
run: updatecli compose apply --clean-git-branches=true --labels="event:release" --experimental
env:
UPDATECLI_GITHUB_APP_CLIENT_ID: ${{ secrets.UPDATECLIBOT_APP_ID }}
UPDATECLI_GITHUB_APP_PRIVATE_KEY: ${{ secrets.UPDATECLIBOT_APP_PRIVKEY }}
UPDATECLI_GITHUB_APP_INSTALLATION_ID: ${{ secrets.UPDATECLIBOT_APP_INSTALLATION_ID }}
UPDATECLI_UDASH_API_URL: ${{ secrets.UPDATECLI_UDASH_API_URL }}
UPDATECLI_UDASH_ACCESS_TOKEN: ${{ secrets.UPDATECLI_UDASH_ACCESS_TOKEN }}
UPDATECLI_UDASH_URL: ${{ secrets.UPDATECLI_UDASH_URL }}

- name: "Run updatecli"
run: "updatecli compose apply --file updatecli-compose-release.yaml --experimental"
env:
RELEASEPOST_GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
UPDATECLI_GITHUB_APP_CLIENT_ID: ${{ secrets.UPDATECLIBOT_APP_ID }}
UPDATECLI_GITHUB_APP_PRIVATE_KEY: ${{ secrets.UPDATECLIBOT_APP_PRIVKEY }}
UPDATECLI_GITHUB_APP_INSTALLATION_ID: ${{ secrets.UPDATECLIBOT_APP_INSTALLATION_ID }}
UPDATECLI_UDASH_API_URL: ${{ secrets.UPDATECLI_UDASH_API_URL }}
UPDATECLI_UDASH_ACCESS_TOKEN: ${{ secrets.UPDATECLI_UDASH_ACCESS_TOKEN }}
UPDATECLI_UDASH_URL: ${{ secrets.UPDATECLI_UDASH_URL }}
26 changes: 26 additions & 0 deletions .github/workflows/updatecli_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Updatecli Test

on:
pull_request:

permissions:
contents: read

jobs:
updatecli:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: "actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3" # v6.0.0

- name: "Setup updatecli"
uses: "updatecli/updatecli-action@5ca36367fadc6ad94d590984fd9c696e783ec635" # v2.96.0
with:
version: "v0.114.0"

- name: "Test updatecli in dry-run mode"
run: "updatecli compose diff --experimental"
env:
# This step is executed in untrusted context. We use a GitHub token with minimal permissions.
UPDATECLI_GITHUB_USERNAME: ${{ github.actor }}
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38 changes: 38 additions & 0 deletions .github/workflows/updatecli_update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Updatecli - Update
on:
workflow_dispatch:
push:
branches:
- main

jobs:
updatecli:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: "actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3" # v6.0.0

- name: "Setup updatecli"
uses: "updatecli/updatecli-action@5ca36367fadc6ad94d590984fd9c696e783ec635" # v2.96.0
with:
version: "v0.114.0"

- name: "Run updatecli only on monitored pipelines"
run: updatecli compose apply --clean-git-branches=true --labels="monitoring:enabled" --experimental
env:
UPDATECLI_GITHUB_APP_CLIENT_ID: ${{ secrets.UPDATECLIBOT_APP_ID }}
UPDATECLI_GITHUB_APP_PRIVATE_KEY: ${{ secrets.UPDATECLIBOT_APP_PRIVKEY }}
UPDATECLI_GITHUB_APP_INSTALLATION_ID: ${{ secrets.UPDATECLIBOT_APP_INSTALLATION_ID }}
UPDATECLI_UDASH_API_URL: ${{ secrets.UPDATECLI_UDASH_API_URL }}
UPDATECLI_UDASH_ACCESS_TOKEN: ${{ secrets.UPDATECLI_UDASH_ACCESS_TOKEN }}
UPDATECLI_UDASH_URL: ${{ secrets.UPDATECLI_UDASH_URL }}

- name: "Run updatecli only on existing pipelines"
run: updatecli compose apply --clean-git-branches=true --existing-only=true --experimental
env:
UPDATECLI_GITHUB_APP_CLIENT_ID: ${{ secrets.UPDATECLIBOT_APP_ID }}
UPDATECLI_GITHUB_APP_PRIVATE_KEY: ${{ secrets.UPDATECLIBOT_APP_PRIVKEY }}
UPDATECLI_GITHUB_APP_INSTALLATION_ID: ${{ secrets.UPDATECLIBOT_APP_INSTALLATION_ID }}
UPDATECLI_UDASH_API_URL: ${{ secrets.UPDATECLI_UDASH_API_URL }}
UPDATECLI_UDASH_ACCESS_TOKEN: ${{ secrets.UPDATECLI_UDASH_ACCESS_TOKEN }}
UPDATECLI_UDASH_URL: ${{ secrets.UPDATECLI_UDASH_URL }}
11 changes: 9 additions & 2 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
[files]
extend-exclude = ["static/*", "assets/*", "vendor", "content/en/schema", "vale"]
extend-exclude = [
"static/*",
"assets/*",
"vendor",
"content/en/schema",
"vale",
"content/en/changelogs/updatecli/changelogs/v0.87.0.adoc",
]

[default]
extend-ignore-identifiers-re = ["equirements","stderr"]
extend-ignore-identifiers-re = ["equirements", "stderr"]
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
policies:
- name: Local policies
config:
- updatecli/updatecli.d/
values:
- updatecli/values.d/scm.yaml

- name: Trigger releasepost
policy: ghcr.io/updatecli/policies/releasepost/releasepost:0.10.0@sha256:b4b857efbed3a966cbdbc224b5ba0b9322c96322effa0cedff93a2b39d8e086d
values:
Expand Down
17 changes: 10 additions & 7 deletions updatecli/updatecli.d/docs.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: "docs: update Updatecli cli documentation"

pipelineid: cli_docs

labels:
event: release
monitoring: enable

actions:
default:
kind: github/pullrequest
Expand All @@ -18,13 +21,13 @@ scms:
default:
kind: github
spec:
branch: master
email: updatecli@olblak.com
owner: updatecli
repository: website
user: updatecli
branch: "{{ .scm.branch }}"
email: "{{ .scm.email }}"
owner: "{{ .scm.owner }}"
repository: "{{ .scm.repository }}"
user: "{{ .scm.user }}"
force: true
commitusingapi: true
commitusingapi: {{ scm.commitusingapi }}
disabled: false

targets:
Expand Down
17 changes: 11 additions & 6 deletions updatecli/updatecli.d/installation.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: "docs: update Updatecli version throughout the documentation"
pipelineid: updatecli/version

labels:
event: release
monitoring: enable

actions:
default:
kind: github/pullrequest
Expand All @@ -17,12 +21,13 @@ scms:
default:
kind: github
spec:
branch: master
email: updatecli@olblak.com
owner: updatecli
repository: website
user: updatecli
commitusingapi: true
branch: "{{ .scm.branch }}"
email: "{{ .scm.email }}"
owner: "{{ .scm.owner }}"
repository: "{{ .scm.repository }}"
user: "{{ .scm.user }}"
force: true
commitusingapi: {{ scm.commitusingapi }}
disabled: false

sources:
Expand Down
17 changes: 11 additions & 6 deletions updatecli/updatecli.d/jsonschema.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
pipelineid: jsonschema
name: "docs: update Updatecli jsonschema"

labels:
event: release
monitoring: enable

actions:
default:
kind: github/pullrequest
Expand All @@ -18,12 +22,13 @@ scms:
default:
kind: github
spec:
branch: master
email: updatecli@olblak.com
owner: updatecli
repository: website
user: updatecli
commitusingapi: true
branch: "{{ .scm.branch }}"
email: "{{ .scm.email }}"
owner: "{{ .scm.owner }}"
repository: "{{ .scm.repository }}"
user: "{{ .scm.user }}"
force: true
commitusingapi: {{ scm.commitusingapi }}
disabled: false

targets:
Expand Down
2 changes: 1 addition & 1 deletion updatecli/values.d/scm.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
scm:
enabled: true
user: updatecli-bot
user: updateclibot
email: updatecli-bot@updatecli.io
owner: updatecli
repository: website
Expand Down
Loading