Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/victorcmoura/watchtower-gitlab-deploy
https://github.com/victorcmoura/watchtower-gitlab-deploy
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/victorcmoura/watchtower-gitlab-deploy
- Owner: victorcmoura
- License: gpl-3.0
- Created: 2020-07-26T23:53:15.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T06:18:33.000Z (4 months ago)
- Last Synced: 2024-07-09T00:04:38.584Z (3 months ago)
- Language: Python
- Size: 19.5 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Watchtower GitLab Deploy
This project packs a GitLabCI compatible image to trigger updates in any public Watchtower instance running in HTTP API mode.
## Usage
In your `.gitlab-ci.yml`, create a job in which the update action will occur and set `victorcmoura/watchtower-gitlab-deploy` as its base image:
```yml
trigger_watchtower_update:
stage: deploy
image: victorcmoura/watchtower-gitlab-deploy
script:
- update
only:
- master
```To work properly, the following environment variables have to be set in GitLabCI's configs:
| Varible | Description | Type | Example |
|---------|-------------|------|---------|
| WATCHTOWER_API_TOKEN | Watchtower HTTP API authorization token. | string | mytoken123 |
| WATCHTOWER_API_HOSTNAME | Watchtower HTTP API host address. | string | http://example.com |Before running in GitLabCI, you might want to test your instance's public connectivity by running:
```sh
docker run -e WATCHTOWER_API_TOKEN= -e WATCHTOWER_API_HOSTNAME= victorcmoura/watchtower-gitlab-deploy update
```