mirror of https://gitlab.com/curben/blog
ci(gl): start tailscaled without openrc
https://stackoverflow.com/questions/78269734/is-there-a-better-way-to-run-openrc-in-a-container-than-enabling-softlevel
This commit is contained in:
parent
3fa8c33ea5
commit
e731f85296
|
@ -49,11 +49,10 @@ deploy:
|
|||
stage: deploy
|
||||
|
||||
before_script:
|
||||
- apk update && apk add openrc tailscale openssh-client rsync
|
||||
- mkdir -p /run/openrc/
|
||||
- touch /run/openrc/softlevel
|
||||
- rc-service -Z tailscale start
|
||||
- rc-service tailscale start
|
||||
- apk update && apk add tailscale openssh-client rsync
|
||||
- export PATH="/usr/libexec/tailscale:$PATH"
|
||||
- export TS_DEBUG_FIREWALL_MODE=nftables
|
||||
- tailscaled --socket=/run/tailscale/tailscaled.sock --state=/var/lib/tailscale/tailscaled.state --port=41641 --no-logs-no-support >/dev/null 2>&1 &
|
||||
- tailscale up --auth-key="${TAILSCALE_OAUTH}?ephemeral=true&preauthorized=true" --advertise-tags=tag:gl-ci --hostname="gitlab-$(cat /etc/hostname)" --accept-routes
|
||||
- mkdir -p ~/.ssh
|
||||
- chmod 700 ~/.ssh
|
||||
|
|
Loading…
Reference in New Issue