-
Notifications
You must be signed in to change notification settings - Fork 1
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 #2 from loispostula/updatecli
👷 bootstrap updatecli
- Loading branch information
Showing
5 changed files
with
94 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,41 @@ | ||
name: updatecli | ||
on: | ||
release: null | ||
workflow_dispatch: null | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
schedule: | ||
# Run every hour | ||
- cron: "0 0 * * *" | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
updatecli: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
steps: | ||
- name: "Checkout" | ||
uses: "actions/[email protected]" | ||
- name: "Setup updatecli" | ||
uses: "updatecli/updatecli-action@v2" | ||
- name: "Run updatecli in dryrun" | ||
run: "updatecli compose diff" | ||
env: | ||
GITHUB_ACTOR: ${{ github.actor }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: "tibdex/[email protected]" | ||
id: generate_token | ||
if: github.ref == 'refs/heads/main' | ||
with: | ||
app_id: ${{ secrets.MBRELLA_BOT_APP_ID }} | ||
private_key: ${{ secrets.MBRELLA_BOT_APP_PRIVKEY }} | ||
- name: "Run updatecli" | ||
if: github.ref == 'refs/heads/main' | ||
run: "updatecli compose apply" | ||
env: | ||
GITHUB_ACTOR: ${{ vars.UPDATECLI_BOT_GITHUB_ACTOR }} | ||
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} |
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,11 @@ | ||
policies: | ||
- name: Local Updatecli Policies | ||
config: | ||
- updatecli/updatecli.d/ | ||
values: | ||
- updatecli/values.d/scm.yaml | ||
- name: Update Updatecli policies | ||
policy: ghcr.io/updatecli/policies/updatecli/autodiscovery:0.5.0@sha256:947817644fb89e27f7b7121b822328c2d47364c7a3a08241e4d2ac1a5897020c | ||
values: | ||
- updatecli/values.d/scm.yaml | ||
- updatecli/values.d/updatecli-compose.yaml |
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,28 @@ | ||
name: ⬆️ github actions | ||
pipelineid: github_actions | ||
|
||
actions: | ||
default: | ||
kind: github/pullrequest | ||
spec: | ||
automerge: false | ||
labels: | ||
- chore | ||
scmid: default | ||
scms: | ||
default: | ||
kind: github | ||
spec: | ||
branch: '{{ .scm.branch }}' | ||
email: '{{ .scm.email }}' | ||
owner: '{{ .scm.owner }}' | ||
repository: '{{ .scm.repository }}' | ||
token: '{{ requiredEnv "GITHUB_TOKEN" }}' | ||
user: '{{ .scm.user }}' | ||
username: '{{ requiredEnv "GITHUB_ACTOR" }}' | ||
|
||
autodiscovery: | ||
scmid: default | ||
actionid: default | ||
crawlers: | ||
github/action: |
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,9 @@ | ||
scm: | ||
commitusingapi: true | ||
enabled: true | ||
user: mbrella | ||
email: [email protected] | ||
owner: loispostula | ||
repository: terraform-docs.el | ||
username: "updatecli-bot" | ||
branch: main |
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,5 @@ | ||
spec: | ||
files: | ||
- "updatecli-compose.yaml" | ||
only: | ||
- path: "updatecli-compose.yaml" |