No description
  • JavaScript 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-09 22:57:11 +01:00
dist update pack 2026-11-09 22:57:11 +01:00
.gitignore use lts/iron 2025-04-13 00:10:58 +02:00
.nvmrc run on node 24 2026-11-05 22:09:16 +01:00
action.yml run on node 24 2026-11-05 22:09:16 +01:00
index.js add error for OIDC not being enabled 2026-11-09 22:50:50 +01:00
LICENSE Create LICENSE 2025-04-14 00:23:22 +02:00
package-lock.json tag v1.1 2026-11-06 16:49:03 +01:00
package.json tag v1.1 2026-11-06 16:49:03 +01:00
README.md update documentation for OIDC flow 2026-11-09 09:16:09 +00:00

trigger-update

Sends a JWT-authenticated request to AuthenticatedGlue, which will then trigger Watchtower to pull your newly pushed container images and restart your containers.

There are two flows to this setup, the OIDC flow (recommended) and the JWT flow (legacy).

OIDC flow

For the OIDC flow, configure a Forgejo Actions OIDC issuer in AuthenticatedGlue. trigger-update will acquire a JWT from Forgejo Actions and send it to AuthenticatedGlue.

Inputs

All inputs are required.

Key Description
flow Must be jwt
glueUrl The full URL where AuthenticatedGlue is accessible from.
images A comma-separated list of images to update.
audience The aud claim for the JWT

Outputs

None

Example

- name: Trigger update
  id: trigger-update
  uses: https://git.foxite.dev/Foxite/trigger-update@feature/use-oidc
  with:
    flow: oidc
    images: "testimage,testimage2"
    glueUrl: https://authenticatedglue.myhomelab.net # Consider putting this in a secret.
    audience: https://authenticatedglue.myhomelab.net

JWT flow

For the JWT flow, generate a PEM-encoded key pair and configure the public key into AuthenticatedGlue, and use the private key to sign a JWT.

Inputs

All inputs are required.

Key Description
flow Must be jwt
glueUrl The full URL where AuthenticatedGlue is accessible from.
images A comma-separated list of images to update.
privateKey PEM encoded private key for signing JWTs.
keyId The JWT kid value.
algorithm JWT signing algorithm. /(RS|PS|ES|HS)(256|384|512)/

To generate a signing key you could use a tool such as https://github.com/bspk/json-web-key-generator

Outputs

None

Example

- name: Trigger update
  uses: Foxite/trigger-update@v1.0
  with:
    keyId: sig-123456789
    algorithm: ES512
    images: ghcr.io/foxite/fridgebot
    glueUrl: https://authenticatedglue.myhomelab.net # Consider putting this in a secret.
    privateKey: ${{ secrets.GLUE_KEY }} # Should be a a value starting with -----BEGIN PRIVATE KEY-----