Update workflows
This commit is contained in:
parent
47b3a7737e
commit
37b1dfd932
4 changed files with 15 additions and 19 deletions
|
@ -17,7 +17,6 @@ jobs:
|
||||||
- name: "Setup: Runner"
|
- name: "Setup: Runner"
|
||||||
run: |
|
run: |
|
||||||
set -x
|
set -x
|
||||||
echo 'Why is nothing being output here'
|
|
||||||
apt update -y
|
apt update -y
|
||||||
apt install git nodejs nix-bin sudo curl -y
|
apt install git nodejs nix-bin sudo curl -y
|
||||||
git config --global user.email ${{github.actor}}
|
git config --global user.email ${{github.actor}}
|
||||||
|
|
|
@ -16,7 +16,6 @@ jobs:
|
||||||
- name: "Setup: Runner"
|
- name: "Setup: Runner"
|
||||||
run: |
|
run: |
|
||||||
set -x
|
set -x
|
||||||
echo 'Why is nothing being output here'
|
|
||||||
apt update -y
|
apt update -y
|
||||||
apt install git nodejs nix-bin sudo curl -y
|
apt install git nodejs nix-bin sudo curl -y
|
||||||
git config --global user.email ${{github.actor}}
|
git config --global user.email ${{github.actor}}
|
||||||
|
|
|
@ -5,6 +5,7 @@ run-name: ${{ github.actor }} - update-flake-lock
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-flake-lock:
|
update-flake-lock:
|
||||||
runs-on: ubuntu
|
runs-on: ubuntu
|
||||||
|
@ -14,6 +15,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: "Setup: Runner"
|
- name: "Setup: Runner"
|
||||||
run: |
|
run: |
|
||||||
|
set -x
|
||||||
apt update -y
|
apt update -y
|
||||||
apt install git nodejs nix-bin sudo curl -y
|
apt install git nodejs nix-bin sudo curl -y
|
||||||
git config --global user.email "${{github.actor}}"
|
git config --global user.email "${{github.actor}}"
|
||||||
|
@ -22,6 +24,7 @@ jobs:
|
||||||
|
|
||||||
- name: "Setup: Tailscale Repo"
|
- name: "Setup: Tailscale Repo"
|
||||||
run: |
|
run: |
|
||||||
|
set -x
|
||||||
mkdir -p --mode=0755 /usr/share/keyrings
|
mkdir -p --mode=0755 /usr/share/keyrings
|
||||||
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/lunar.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
|
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/lunar.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
|
||||||
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/lunar.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list
|
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/lunar.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list
|
||||||
|
@ -37,16 +40,13 @@ jobs:
|
||||||
chmod 700 /root/.ssh
|
chmod 700 /root/.ssh
|
||||||
chmod 600 /root/.ssh/id_ed25519
|
chmod 600 /root/.ssh/id_ed25519
|
||||||
chmod 644 /root/.ssh/id_ed25519.pub
|
chmod 644 /root/.ssh/id_ed25519.pub
|
||||||
|
echo "Result: $?"
|
||||||
|
|
||||||
- name: "Setup: Headscale Network"
|
- name: "Setup: Headscale Network"
|
||||||
run: |
|
run: |
|
||||||
echo "tailscaled --cleanup"
|
set -x
|
||||||
sudo tailscaled --cleanup
|
sudo tailscaled --cleanup
|
||||||
echo ""
|
|
||||||
echo "tailscaled --state=mem 2> ~/tailscaled.log &"
|
|
||||||
sudo tailscaled --state=mem: 2> ~/tailscaled.log &
|
sudo tailscaled --state=mem: 2> ~/tailscaled.log &
|
||||||
echo ""
|
|
||||||
echo "tailscale up"
|
|
||||||
sudo tailscale up \
|
sudo tailscale up \
|
||||||
--login-server=https://headscale.sysctl.io \
|
--login-server=https://headscale.sysctl.io \
|
||||||
--accept-routes \
|
--accept-routes \
|
||||||
|
@ -56,7 +56,7 @@ jobs:
|
||||||
--advertise-tags "tag:forgejo,tag:container,tag:ephemeral"
|
--advertise-tags "tag:forgejo,tag:container,tag:ephemeral"
|
||||||
sudo tailscale status
|
sudo tailscale status
|
||||||
sudo tailscale netcheck
|
sudo tailscale netcheck
|
||||||
|
echo "Result: $?"
|
||||||
|
|
||||||
- name: "SSH and Update / Check"
|
- name: "SSH and Update / Check"
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -15,14 +15,16 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: "Setup: Runner"
|
- name: "Setup: Runner"
|
||||||
run: |
|
run: |
|
||||||
|
set -x
|
||||||
apt update -y
|
apt update -y
|
||||||
apt install git nodejs nix-bin sudo sudo curl -y
|
apt install git nodejs nix-bin sudo sudo curl -y
|
||||||
git config user.email "${{github.actor}}"
|
git config --global user.email "${{github.actor}}"
|
||||||
git config user.name "Forgejo Runner"
|
git config --global user.name "Forgejo Runner"
|
||||||
echo "100.64.0.13 gotify.sysctl.io" >> /etc/hosts
|
echo "100.64.0.13 gotify.sysctl.io" >> /etc/hosts
|
||||||
|
|
||||||
- name: "Setup: Tailscale Repo"
|
- name: "Setup: Tailscale Repo"
|
||||||
run: |
|
run: |
|
||||||
|
set -x
|
||||||
mkdir -p --mode=0755 /usr/share/keyrings
|
mkdir -p --mode=0755 /usr/share/keyrings
|
||||||
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/lunar.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
|
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/lunar.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
|
||||||
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/lunar.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list
|
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/lunar.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list
|
||||||
|
@ -38,18 +40,13 @@ jobs:
|
||||||
chmod 700 /root/.ssh
|
chmod 700 /root/.ssh
|
||||||
chmod 600 /root/.ssh/id_ed25519
|
chmod 600 /root/.ssh/id_ed25519
|
||||||
chmod 644 /root/.ssh/id_ed25519.pub
|
chmod 644 /root/.ssh/id_ed25519.pub
|
||||||
echo "Public Key: "
|
echo "Result: $?"
|
||||||
cat /root/.ssh/id_ed25519.pub
|
|
||||||
|
|
||||||
- name: "Setup: Headscale Network"
|
- name: "Setup: Headscale Network"
|
||||||
run: |
|
run: |
|
||||||
echo "tailscaled --cleanup"
|
set -x
|
||||||
sudo tailscaled --cleanup
|
sudo tailscaled --cleanup
|
||||||
echo ""
|
|
||||||
echo "tailscaled --state=mem 2> ~/tailscaled.log &"
|
|
||||||
sudo tailscaled --state=mem: 2> ~/tailscaled.log &
|
sudo tailscaled --state=mem: 2> ~/tailscaled.log &
|
||||||
echo ""
|
|
||||||
echo "tailscale up"
|
|
||||||
sudo tailscale up \
|
sudo tailscale up \
|
||||||
--login-server=https://headscale.sysctl.io \
|
--login-server=https://headscale.sysctl.io \
|
||||||
--accept-routes \
|
--accept-routes \
|
||||||
|
@ -59,6 +56,7 @@ jobs:
|
||||||
--advertise-tags "tag:forgejo,tag:container,tag:ephemeral"
|
--advertise-tags "tag:forgejo,tag:container,tag:ephemeral"
|
||||||
sudo tailscale status
|
sudo tailscale status
|
||||||
sudo tailscale netcheck
|
sudo tailscale netcheck
|
||||||
|
echo "Result: $?"
|
||||||
|
|
||||||
- name: "nixos-version (Pre)"
|
- name: "nixos-version (Pre)"
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue