Glue Watchtower to your CI
- C# 93.8%
- Dockerfile 6.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| AuthenticatedGlue | ||
| TestCallJwt | ||
| WatchtowerGlue | ||
| .dockerignore | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| WatchtowerGlue.sln | ||
AuthenticatedGlue
Use in conjunction with Watchtower to automate your deployments.
AuthenticatedGlue is meant to be used in conjunction with the trigger-update workflow action. It authenticates all incoming requests using JWTs.
There are two flows to this, the OIDC flow (recommended) and JWT flow (legacy).
Environment variables
| Key | Description | Example |
|---|---|---|
Watchtower__Url |
The full URL that Watchtower is accessible from | http://localhost:8080 |
Watchtower__Token |
The HTTP API token for Watchtower | mytoken |
Keys__Keys__* |
JWT flow: followed by a key id, the value should be the PEM-encoded certificate for that signing key. | -----BEGIN CERTIFICATE-----\n... |
Keys__Path |
JWT flow: path to a directory which contains key files, file name is equal to key ID (no extension) | /path/to/keys |
Oidc__Issuers__*__Issuer |
OIDC flow: with a numeric index for the trusted issuer, iss claim |
Oidc__Issuers__0__Issuer: https://git.foxite.dev/api/actions |
Oidc__Issuers__*__DiscoveryDocument |
OIDC flow: with a numeric index for the trusted issuer, URL to discovery document | https://git.foxite.dev/api/actions/.well-known/openid-configuration |
Oidc__Issuers__*__RequiredAudience |
OIDC flow: with a numeric index for the trusted issuer, aud claim |
https://authenticatedglue.foxite.dev |
Oidc__Issuers__*__RequiredScopes__* |
OIDC flow: with a numeric index for the trusted issuer and a claim name, required value for that claim | Oidc__Issuers__0__Issuer__repository_owner: Foxite |
Legacy glue
WatchtowerGlue is designed to be linked to a selfhosted registry container, which can be configured to call a webhook when images are pushed:
# /etc/docker/registry/config.yml
notifications:
events:
includereferences: true
endpoints:
- name: updater
url: http://glue-container-name/
timeout: 1500ms
threshold: 1
backoff: 0s
ignore:
# Doesn't work, but whatever.
mediatypes:
- application/octet-stream
actions:
- pull
WatchtowerGlue is not supposed to be accessible from the internet, as it does not authenticate its incoming requests.
Environment variables
| Key | Description |
|---|---|
| DEBOUNCE_MILLIS | the amount of milliseconds to wait before making a request to Watchtower. Useful if your workflows push multiple images, to avoid triggering multiple updates. Default 5000 |
| WATCHTOWER | the full hostname including http:// or https:// that Watchtower is located at. |
| WATCHTOWER_TOKEN | the authorization token configured in Watchtower's http api. |