Compare commits

4 Commits

Author SHA1 Message Date
seeseemelk 2bf31c49a6 Add renovate.json 2026-05-03 13:06:56 +02:00
seeseemelk 4e968d9860 Update action.yml 2026-04-01 11:45:11 +02:00
seeseemelk 17a3dc6bfd Update README.md 2026-01-14 19:27:39 +01:00
seeseemelk 3c31a0da83 Remove Go code 2025-11-13 13:07:21 +01:00
4 changed files with 18 additions and 40 deletions
+11
View File
@@ -1,2 +1,13 @@
# Watchtower Action # Watchtower Action
This action will automatically trigger an update of watchtower, causing containers that have the label `com.centurylinklabs.watchtower.enable=true` to be automatically updated. This action will automatically trigger an update of watchtower, causing containers that have the label `com.centurylinklabs.watchtower.enable=true` to be automatically updated.
```
name: 'Watchtower Example'
on: [push]
jobs:
use-action:
runs-on: standard-latest
steps:
- name: Trigger watchtower
uses: https://gitea.seeseepuff.be/actions/watchtower@master
```
+1 -1
View File
@@ -5,4 +5,4 @@ runs:
steps: steps:
- name: Trigger Watchtower Update - name: Trigger Watchtower Update
run: | run: |
curl -H "Authorization: Bearer mytoken" https://watchtower.seeseepuff.be/v1/update curl -X POST -H "Authorization: Bearer mytoken" https://watchtower.seeseepuff.be/v1/update
-39
View File
@@ -1,39 +0,0 @@
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
token := "mytoken"
url := "https://watchtower.seeseepuff.be/v1/update"
req, err := http.NewRequest("GET", url, nil)
if err != nil {
fmt.Fprintf(os.Stderr, "Failed to create request: %v\n", err)
os.Exit(1)
}
req.Header.Set("Authorization", "Bearer "+token)
fmt.Printf("Triggering Watchtower update...")
resp, err := http.DefaultClient.Do(req)
if err != nil {
fmt.Fprintf(os.Stderr, "HTTP request failed: %v\n", err)
os.Exit(1)
}
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {
fmt.Fprintf(os.Stderr, "HTTP request failed: %s\n", resp.Status)
os.Exit(1)
}
if _, err := io.Copy(os.Stdout, resp.Body); err != nil {
fmt.Fprintf(os.Stderr, "Failed to read response: %v\n", err)
os.Exit(1)
}
fmt.Printf("Done!")
}
+6
View File
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"local>seeseemelk/renovate"
]
}