Compare commits

..

No commits in common. "main" and "0.0.2" have entirely different histories.
main ... 0.0.2

View File

@ -11,28 +11,25 @@ outputs:
k8s-config-path: k8s-config-path:
description: "The location of the stored kubeconfig file. You can use this through the KUBECONFIG variable to kubectl calls." description: "The location of the stored kubeconfig file. You can use this through the KUBECONFIG variable to kubectl calls."
value: /opt/kube/config value: /opt/kube/config
http-proxy:
description: "The URL of the HTTP proxy created by Tailscale"
value: "http://localhost:1055"
runs: runs:
using: composite using: composite
steps: steps:
- run: apk add tailscale kubectl bash curl ca-certificates - run: apk add tailscale kubectl bash curl
name: Install dependencies name: Install dependencies
shell: sh shell: bash
- name: Create kube directory - name: Create kube directory
run: mkdir /opt/kube run: mkdir /opt/kube
shell: sh shell: bash
- name: Bootstrap kubeconfig - name: Bootstrap kubeconfig
run: echo "$PALTIVERSE_K8S" | base64 -d > /opt/kube/config run: echo "$PALTIVERSE_K8S" | base64 -d > /opt/kube/config
env: env:
PALTIVERSE_K8S: ${{ inputs.k8s-config }} PALTIVERSE_K8S: ${{ inputs.k8s-config }}
shell: sh shell: bash
- name: Add tailscale proxy to kubeconfig - name: Add tailscale proxy to kubeconfig
run: kubectl config set clusters.default.proxy-url http://localhost:1055 run: kubectl config set clusters.default.proxy-url http://localhost:1055
env: env:
KUBECONFIG: /opt/kube/config KUBECONFIG: /opt/kube/config
shell: sh shell: bash
- name: Configure tailscale - 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 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: sh shell: bash