Skip to content

Commit

Permalink
create cronjob for certbot
Browse files Browse the repository at this point in the history
  • Loading branch information
malteish committed Oct 16, 2024
1 parent 5da0caf commit 40177a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,8 @@ jobs:
run: |
ssh -i ./ssh-key app@${{ vars.HOST_DOMAIN }} "\
cd dm3 && docker compose --env-file .env up -d && docker system prune -af"
- name: Create cronjob for certbot
run: |
ssh -i ./ssh-key root@${{ vars.HOST_DOMAIN }} "\
(crontab -l 2>/dev/null | grep -q 'certbot renew --quiet' || \
(crontab -l 2>/dev/null; echo '0 0 * * * certbot renew --quiet') | crontab -)"

0 comments on commit 40177a8

Please sign in to comment.