Watchtower Update for GitHub Actions
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 endpointWATCHTOWER_API_TOKEN
- the api token used in theAuthorization: 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/[email protected]
with:
url: "${{ secrets.WATCHTOWER_URL }}"
api_token: "${{ secrets.WATCHTOWER_API_TOKEN }}"
images: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
License
MIT