Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

定期実行を組み込む #19

Closed
4 of 5 tasks
matsubara0507 opened this issue Jan 13, 2020 · 2 comments
Closed
4 of 5 tasks

定期実行を組み込む #19

matsubara0507 opened this issue Jan 13, 2020 · 2 comments
Assignees

Comments

@matsubara0507
Copy link
Member

matsubara0507 commented Jan 13, 2020

去年 Drone CI で毎時実行を実現したけど、いつぞやから自動実行がされなくなってしまった(今は手動)。
TravicCI にして戻してもいいけど、いっそのこと適当な無料枠インスタンスで cron っぽい動作をさせようかなと。

つまり、あるインスタンスで antenna --saver sites.yaml とかやっていれば毎時更新してくれる(コミットしてくれる)ようにするイメージ。

次のステップでやる

@matsubara0507
Copy link
Member Author

matsubara0507 commented Jan 17, 2020

Step 4: インスタンスを設定する

のメモ

  • GCP Console からインスタンス作成
    • f1-micro オレゴン
    • 30GB 標準ストレージ
    • Ubuntu 18.04
  • docker インストール
  • イメージの pull : sudo docker pull haskelljp/antenna
  • sshkey の設定
    • 生成 ssh-keygen -t rsa -b 4096 -C ""
    • pub key を haskell-jp/antenna の deploy key に設定する
  • クローン
    git clone [email protected]:haskell-jp/antenna.git
    cd antenna
    git checkout gh-pages
    
  • 起動
    // お試し
    sudo docker run --rm -v `pwd`:/work -v `echo $HOME`/.ssh:/root/.ssh haskelljp/antenna antenna --verbose --with-commit sites.yaml
    sudo docker run -d -v `pwd`:/work -v `echo $HOME`/.ssh:/root/.ssh haskelljp/antenna antenna --verbose --with-commit --with-push --with-copy --hourly sites.yaml
    

様子見

@matsubara0507
Copy link
Member Author

定期実行自体は完了したのでクローズ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant