This commit is contained in:
Pal Kerecsenyi 2024-04-02 14:34:33 +01:00
parent 4444735e81
commit 67c8a44389
Signed by: palk
GPG Key ID: 6891661E25394C2C

View File

@ -11,6 +11,9 @@ outputs:
k8s-config-path:
description: "The location of the stored kubeconfig file. You can use this through the KUBECONFIG variable to kubectl calls."
value: /opt/kube/config
http-proxy:
description: "The URL of the HTTP proxy created by Tailscale"
value: "http://localhost:1055"
runs:
using: composite
steps:
@ -33,8 +36,3 @@ runs:
- name: Configure tailscale
run: tailscaled --tun=userspace-networking --socks5-server=localhost:1055 --outbound-http-proxy-listen=localhost:1055 & tailscale up --authkey="${{ inputs.tailscale-token }}" --advertise-tags=tag:gitea-runners
shell: sh
- name: Configure DNS
run: |
echo -e "nameserver 100.100.100.100\nnameserver 1.1.1.1\nnameserver 1.0.0.1" | cat - /etc/resolv.conf > /tmp/resolv.conf
mv /tmp/resolv.conf /etc/resolv.conf
shell: sh