Sign inSign up

victorcmoura/watchtower-gitlab-deploy

By victorcmoura

•Updated about 6 years ago

Image
0

74

victorcmoura/watchtower-gitlab-deploy repository overview

⁠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:

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:

VaribleDescriptionTypeExample
WATCHTOWER_API_TOKENWatchtower HTTP API authorization token.stringmytoken123
WATCHTOWER_API_HOSTNAMEWatchtower HTTP API host address.stringhttp://example.com⁠

Before running in GitLabCI, you might want to test your instance's public connectivity by running:

docker run -e WATCHTOWER_API_TOKEN=<your token> -e WATCHTOWER_API_HOSTNAME=<your hostname> victorcmoura/watchtower-gitlab-deploy update

Tag summary

Content type

Image

Digest

Size

333.1 MB

Last updated

about 6 years ago

docker pull victorcmoura/watchtower-gitlab-deploy