Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/darnfish/watchtower-update
Automate your Docker image deployments on GitHub Actions via Watchtower's HTTP API
https://github.com/darnfish/watchtower-update
deployment docker github-actions watchtower
Last synced: 15 days ago
JSON representation
Automate your Docker image deployments on GitHub Actions via Watchtower's HTTP API
- Host: GitHub
- URL: https://github.com/darnfish/watchtower-update
- Owner: darnfish
- License: mit
- Created: 2023-08-21T08:58:34.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-02T20:42:18.000Z (5 months ago)
- Last Synced: 2024-10-06T20:01:14.979Z (about 1 month ago)
- Topics: deployment, docker, github-actions, watchtower
- Language: TypeScript
- Homepage:
- Size: 503 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# 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 endpoint
* *Example: https://watchtower.example.com/v1/update*
* `WATCHTOWER_API_TOKEN` - the api token used in the `Authorization: Bearer ` header
* *Example: 398ea9ce7d9e572684720305d267da61*Then, add the following to your workflow job after your Docker image has finished building and publishing:
```yaml
- 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