-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing http redirection to allow certbot automatic renewal (#96)
* removing http redirection to allow certbot renewal * also adding auto deploy once a month, in case of a certificate renewal * Also adding a step to clean up resources so we have free space
- Loading branch information
1 parent
ded981b
commit 4be2fb7
Showing
3 changed files
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ on: | |
- '.github/workflows/deploy-api-client.yml' | ||
- 'docker-compose.yaml' | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 15 * *' | ||
|
||
permissions: | ||
actions: write | ||
|
@@ -53,3 +55,15 @@ jobs: | |
docker-compose rm -f | ||
docker-compose build --no-cache | ||
docker-compose up -d | ||
- name: Cleanup unused docker images, volumes and build cache | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.DEPLOY_HOST_DNS }} | ||
username: ${{ secrets.DEPLOY_USERNAME }} | ||
key: ${{ secrets.DEPLOY_SSH_KEY }} | ||
script: | | ||
docker container prune -f | ||
docker image prune -f | ||
docker volume prune -f | ||
docker builder prune -f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters