-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update(release): workflow to update the caddy-docker-proxy module
- Loading branch information
Showing
3 changed files
with
76 additions
and
1 deletion.
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,25 @@ | ||
name: update | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
permissions: | ||
contents: "write" | ||
pull-requests: "write" | ||
|
||
jobs: | ||
updatecli: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: updatecli/updatecli-action@v2 | ||
- run: updatecli diff --config ./updatecli/updatecli.d | ||
env: | ||
UPDATECLI_GITHUB_ACTOR: ${{ github.actor }} | ||
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- run: updatecli apply --debug --config ./updatecli/updatecli.d | ||
env: | ||
UPDATECLI_GITHUB_ACTOR: ${{ github.actor }} | ||
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_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
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,48 @@ | ||
name: Update caddy-docker-proxy from upstream | ||
|
||
scms: | ||
default: | ||
kind: github | ||
spec: | ||
user: hostwithquantum | ||
email: [email protected] | ||
username: '{{ requiredEnv "UPDATECLI_GITHUB_ACTOR" }}' | ||
owner: "hostwithquantum" | ||
repository: "quantum-caddy" | ||
token: '{{ requiredEnv "UPDATECLI_GITHUB_TOKEN" }}' | ||
branch: "main" | ||
|
||
sources: | ||
cdp: | ||
name: Get latest release | ||
kind: githubrelease | ||
spec: | ||
owner: "lucaslorentz" | ||
repository: "caddy-docker-proxy" | ||
token: '{{ requiredEnv "UPDATECLI_GITHUB_TOKEN" }}' | ||
versionfilter: | ||
kind: latest | ||
|
||
targets: | ||
dockerfile: | ||
name: Update Dockerfile ARG CDP_VERSION | ||
kind: dockerfile | ||
scmid: default | ||
sourceid: cdp | ||
spec: | ||
file: Dockerfile | ||
instruction: | ||
keyword: ARG | ||
matcher: CDP_VERSION | ||
|
||
actions: | ||
default: | ||
kind: github/pullrequest | ||
scmid: default | ||
title: 'Update caddy-docker-proxy version to {{ source "cdp" }}' | ||
spec: | ||
automerge: false | ||
draft: false | ||
labels: | ||
- dependencies | ||
- enhancement |