Compare commits

...

5 Commits
0.0.2 ... main

Author SHA1 Message Date
67c8a44389
pal pal 2024-04-02 14:34:33 +01:00
4444735e81
Change DNS config setup 2024-04-02 14:05:10 +01:00
62f3d4f7fd
Add DNS and ca-certificates 2024-04-02 14:00:09 +01:00
aeb218e714
Correct tailscale token variable name 2024-01-17 11:41:56 +00:00
8045002f54
Use sh for shell 2024-01-17 11:15:05 +00:00

View File

@ -11,25 +11,28 @@ 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:
- run: apk add tailscale kubectl bash curl
- run: apk add tailscale kubectl bash curl ca-certificates
name: Install dependencies
shell: bash
shell: sh
- name: Create kube directory
run: mkdir /opt/kube
shell: bash
shell: sh
- name: Bootstrap kubeconfig
run: echo "$PALTIVERSE_K8S" | base64 -d > /opt/kube/config
env:
PALTIVERSE_K8S: ${{ inputs.k8s-config }}
shell: bash
shell: sh
- name: Add tailscale proxy to kubeconfig
run: kubectl config set clusters.default.proxy-url http://localhost:1055
env:
KUBECONFIG: /opt/kube/config
shell: bash
shell: sh
- name: Configure tailscale
run: tailscaled --tun=userspace-networking --socks5-server=localhost:1055 --outbound-http-proxy-listen=localhost:1055 & tailscale up --authkey="${{ secrets.TAILSCALE_TOKEN }}" --advertise-tags=tag:gitea-runners
shell: bash
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