darnfish / watchtower-update

Automate your Docker image deployments on GitHub Actions via Watchtower's HTTP API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Watchtower Update for GitHub Actions

typescript-action status

Automate your Docker image deployments on GitHub Actions via Watchtower's HTTP API.

Usage

First, navigate to /yourproject/settings/secrets/actions and add the following secrets:

  • WATCHTOWER_URL - the endpoint that points to your Watchtower update endpoint
  • WATCHTOWER_API_TOKEN - the api token used in the Authorization: Bearer <token> header
    • Example: 398ea9ce7d9e572684720305d267da61

Then, add the following to your workflow job after your Docker image has finished building and publishing:

- name: Deploy
  uses: darnfish/watchtower-update@v3.2
  with:
    url: "${{ secrets.WATCHTOWER_URL }}"
    api_token: "${{ secrets.WATCHTOWER_API_TOKEN }}"
    images: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"

License

MIT

About

Automate your Docker image deployments on GitHub Actions via Watchtower's HTTP API

License:MIT License


Languages

Language:TypeScript 100.0%