Maintain and update your traefik.io basic rules with GIT + CI.
Create a local
branch in your fork and edit mapping.json
file in that branch. Its a simplified version of the traefik REST syntax.
In your CI, set env.TRAEFIK_URL="http://127.0.0.1:8080/api/providers/rest"
to point to your traefik endPoint.
Run node deploy
to update traefik configuration from mapping.json
or let your CI do the job.
web
provider
trafik.toml
config, be sure to enable rest
provider.
trigger:
image: byrnedo/alpine-curl
depends_on:
- proxy
command: -X POST -F token=abcdef -F ref=local https://gitlab.pouet.pouet/api/v4/projects/42/trigger/pipeline
run a local traefik instance to play with. see sample traefik.toml
docker run -d -p 8080:8080 -p 82:80 -v $PWD/traefik.toml:/etc/traefik/traefik.toml traefik