nix shell it is
This commit is contained in:
parent
15c363d07b
commit
10d41e635d
1 changed files with 4 additions and 7 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
|
@ -30,11 +30,8 @@ jobs:
|
||||||
|
|
||||||
- name: Install and start Tailscale
|
- name: Install and start Tailscale
|
||||||
run: |
|
run: |
|
||||||
# Install tailscale via nix
|
# Start tailscaled daemon in background using nix shell
|
||||||
nix profile install nixpkgs#tailscale
|
sudo nix shell nixpkgs#tailscale --command tailscaled --state=mem: &
|
||||||
|
|
||||||
# Start tailscaled daemon in background
|
|
||||||
sudo tailscaled --state=mem: &
|
|
||||||
|
|
||||||
# Wait for daemon to be ready
|
# Wait for daemon to be ready
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
@ -44,14 +41,14 @@ jobs:
|
||||||
|| 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' }}"
|
||||||
|
|
||||||
tailscale up \
|
nix shell nixpkgs#tailscale --command tailscale up \
|
||||||
--authkey="${{ secrets.TS_OAUTH_SECRET }}?preauthorized=true&ephemeral=true" \
|
--authkey="${{ secrets.TS_OAUTH_SECRET }}?preauthorized=true&ephemeral=true" \
|
||||||
--hostname="$HOSTNAME" \
|
--hostname="$HOSTNAME" \
|
||||||
--advertise-tags="tag:ci" \
|
--advertise-tags="tag:ci" \
|
||||||
--accept-routes
|
--accept-routes
|
||||||
|
|
||||||
- name: Tailscale status
|
- name: Tailscale status
|
||||||
run: tailscale status || true
|
run: nix shell nixpkgs#tailscale --command tailscale status || true
|
||||||
|
|
||||||
- name: Check if Attic endpoint is reachable
|
- name: Check if Attic endpoint is reachable
|
||||||
id: check_attic
|
id: check_attic
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue