Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# 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
* *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