1
0
Fork 0
mirror of https://github.com/kou029w/fogtype.com synced 2025-01-18 08:05:02 +00:00

create reload dns action

This commit is contained in:
Nebel 2023-09-11 15:43:48 +09:00
parent 08bcab2921
commit f7b6f7b244
Signed by: nebel
GPG key ID: 79807D08C6EF6460

16
.github/workflows/reload-dns.yml vendored Normal file
View file

@ -0,0 +1,16 @@
name: reload-dns
concurrency: fogtype.com
on:
workflow_dispatch:
schedule:
# 土曜日 02:30 (JST) は 金曜日 17:30 (UTC)
# https://time.is/compare/JST
# https://crontab.guru/#30_17_*_*_FRI
- cron: 30 17 * * FRI
jobs:
main:
runs-on: ubuntu-latest
steps:
- run: install -m 700 -d ~/.ssh
- run: install -m 600 <(echo '${{ secrets.DEPLOY_KEY }}') ~/.ssh/deploy_key
- run: ssh -i ~/.ssh/deploy_key -o 'StrictHostKeyChecking no' kou029w@fogtype.com 'sh -c "cd ~/fogtype.com && docker compose restart dns"'