This repository is a proof-of-concept that connects a simple web server and a client running in a GitLab CI pipeline using Tailscale.
Set up the web server on your machine:
- create a Tailscale auth key (enable ephemeral, multiple uses and optionally set tags)
- install docker
- in
server/sample.env
, update theTS_AUTHKEY
variable and save the file asserver/.env
- run:
cd server; docker compose up --build
Run the client in GitLab:
- create an empty repository in GitLab
- create a new ci variable
TS_AUTHKEY
and fill it with the same key (Settings > CI/CD > Variables) - push the code (it should instantly work)
The .gitlab-ci.yml
is inspired by this code GitLab