Ming Di Leom 2025-03-30 09:32:21 +00:00
parent 3fa8c33ea5
commit e731f85296
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 4 additions and 5 deletions

View File

@ -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