first try this
This commit is contained in:
parent
3f00007a1f
commit
6d22222568
1 changed files with 27 additions and 17 deletions
44
.github/workflows/ci.yml
vendored
44
.github/workflows/ci.yml
vendored
|
|
@ -28,25 +28,35 @@ jobs:
|
||||||
with:
|
with:
|
||||||
system: ${{ matrix.system }}
|
system: ${{ matrix.system }}
|
||||||
|
|
||||||
- name: Install and start Tailscale
|
- name: Login to tailscale
|
||||||
run: |
|
uses: tailscale/github-action@v3.2.3
|
||||||
# Start tailscaled daemon in background using nix shell
|
with:
|
||||||
nix profile add nixpkgs#tailscale
|
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
|
||||||
sudo tailscaled --state=mem: &
|
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
|
||||||
|
hostname: ${{ matrix.system == 'x86_64-linux' && 'github-actions-x86-64-linux'
|
||||||
# Wait for daemon to be ready
|
|
||||||
sleep 10
|
|
||||||
|
|
||||||
# Connect using OAuth
|
|
||||||
HOSTNAME="${{ matrix.system == 'x86_64-linux' && 'github-actions-x86-64-linux'
|
|
||||||
|| matrix.system == 'aarch64-linux' && 'github-actions-aarch64-linux'
|
|| matrix.system == 'aarch64-linux' && 'github-actions-aarch64-linux'
|
||||||
|| matrix.system == 'x86_64-darwin' && 'github-actions-x86-64-darwin' }}"
|
|| matrix.system == 'x86_64-darwin' && 'github-actions-x86-64-darwin' }}
|
||||||
|
tags: tag:ci
|
||||||
|
|
||||||
tailscale up \
|
# - name: Install and start Tailscale
|
||||||
--authkey="${{ secrets.TS_OAUTH_SECRET }}?preauthorized=true&ephemeral=true" \
|
# run: |
|
||||||
--hostname="$HOSTNAME" \
|
# # Start tailscaled daemon in background using nix shell
|
||||||
--advertise-tags="tag:ci" \
|
# nix profile add nixpkgs#tailscale
|
||||||
--accept-routes
|
# sudo tailscaled --state=mem: &
|
||||||
|
|
||||||
|
# # Wait for daemon to be ready
|
||||||
|
# sleep 10
|
||||||
|
|
||||||
|
# # Connect using OAuth
|
||||||
|
# HOSTNAME="${{ matrix.system == 'x86_64-linux' && 'github-actions-x86-64-linux'
|
||||||
|
# || matrix.system == 'aarch64-linux' && 'github-actions-aarch64-linux'
|
||||||
|
# || matrix.system == 'x86_64-darwin' && 'github-actions-x86-64-darwin' }}"
|
||||||
|
|
||||||
|
# tailscale up \
|
||||||
|
# --authkey="${{ secrets.TS_OAUTH_SECRET }}?preauthorized=true&ephemeral=true" \
|
||||||
|
# --hostname="$HOSTNAME" \
|
||||||
|
# --advertise-tags="tag:ci" \
|
||||||
|
# --accept-routes
|
||||||
|
|
||||||
- name: Tailscale status
|
- name: Tailscale status
|
||||||
run: tailscale status || true
|
run: tailscale status || true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue