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:
parent
08bcab2921
commit
f7b6f7b244
1 changed files with 16 additions and 0 deletions
16
.github/workflows/reload-dns.yml
vendored
Normal file
16
.github/workflows/reload-dns.yml
vendored
Normal 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"'
|
Loading…
Add table
Reference in a new issue