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:
|
||||
system: ${{ matrix.system }}
|
||||
|
||||
- name: Install and start Tailscale
|
||||
run: |
|
||||
# Start tailscaled daemon in background using nix shell
|
||||
nix profile add nixpkgs#tailscale
|
||||
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'
|
||||
- name: Login to tailscale
|
||||
uses: tailscale/github-action@v3.2.3
|
||||
with:
|
||||
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
|
||||
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
|
||||
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' }}"
|
||||
|| matrix.system == 'x86_64-darwin' && 'github-actions-x86-64-darwin' }}
|
||||
tags: tag:ci
|
||||
|
||||
# - name: Install and start Tailscale
|
||||
# run: |
|
||||
# # Start tailscaled daemon in background using nix shell
|
||||
# nix profile add nixpkgs#tailscale
|
||||
# sudo tailscaled --state=mem: &
|
||||
|
||||
tailscale up \
|
||||
--authkey="${{ secrets.TS_OAUTH_SECRET }}?preauthorized=true&ephemeral=true" \
|
||||
--hostname="$HOSTNAME" \
|
||||
--advertise-tags="tag:ci" \
|
||||
--accept-routes
|
||||
# # 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
|
||||
run: tailscale status || true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue