From 862fa161db45769cb62c30c2b276c2d25f33bd18 Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Date: Wed, 8 Nov 2023 21:09:26 +0000 Subject: [PATCH 1/6] chore: update docker compose --- docker-compose.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index a502840..5e5a6a2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,10 +1,10 @@ -version: '3' +version: "3.9" services: - deleterr: - build: . - volumes: - - .:/app - - ./config:/app/config - - ./logs:/app/logs - environment: - - PYTHONUNBUFFERED=1 + deleterr: + image: ghcr.io/rfsbraz/deleterr:latest + container_name: deleterr + environment: + LOG_LEVEL: INFO + volumes: + - ./config:/config + - ./logs:/config/logs \ No newline at end of file From 02c602de93cb9e0d199986a1c72815014ef727c2 Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Date: Wed, 8 Nov 2023 21:11:09 +0000 Subject: [PATCH 2/6] chore: update readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7b6b0c0..bdbfbd1 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Adding deleterr to your docker-compose file is really easy and can be combined w version: "3.9" services: deleterr: - image: ghcr.io/rfsbraz/deleterr:master + image: ghcr.io/rfsbraz/deleterr:latest container_name: deleterr environment: LOG_LEVEL: INFO @@ -46,7 +46,7 @@ You can find more information about ofelia's scheduling options [here](https://g Set your settings file in `config/settings.yaml` and run the following command: ```bash -docker run -v ./config:/config -v ./logs:/config/logs ghcr.io/rfsbraz/deleterr:master -e LOG_LEVEL=DEBUG +docker run -v ./config:/config -v ./logs:/config/logs ghcr.io/rfsbraz/deleterr:latest -e LOG_LEVEL=DEBUG ``` ## Configuration From 582f440fb005c9b2b3ab2cec6391f4716be3399d Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Date: Wed, 8 Nov 2023 21:26:36 +0000 Subject: [PATCH 3/6] chore: add develop build pipeline --- .github/workflows/docker-image.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index e21eb2e..acc9fec 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -5,6 +5,7 @@ on: push: branches: - 'master' + - 'develop' tags: - 'v*' pull_request: From 97c2c83aaaa111385340bfec30a687657b27067a Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Date: Wed, 8 Nov 2023 21:29:59 +0000 Subject: [PATCH 4/6] chore: remove sha tag --- .github/workflows/docker-image.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index acc9fec..5e53a24 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -71,7 +71,6 @@ jobs: type=ref,event=branch type=ref,event=pr type=ref,event=tag - type=sha # This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages. # It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository. # It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step. From 6ec65d35d3ef8267a4905c309c75e3230393eca9 Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Date: Wed, 8 Nov 2023 21:33:15 +0000 Subject: [PATCH 5/6] chore: add nightly cron event --- .github/workflows/docker-image.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 5e53a24..d35cc5b 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -1,7 +1,8 @@ name: Create and publish a Docker image -# Configures this workflow to run every time a change is pushed to the branch master. on: + schedule: + - cron: '0 2 * * *' push: branches: - 'master' From 2f4db70c59a4546588aea75d2a0ae8435b495afa Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Date: Fri, 10 Nov 2023 20:14:16 +0000 Subject: [PATCH 6/6] fix: config path --- app/deleterr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/deleterr.py b/app/deleterr.py index 1cc7e78..7e0d754 100644 --- a/app/deleterr.py +++ b/app/deleterr.py @@ -667,7 +667,7 @@ def main(): ) logger.info("Log level set to %s", log_level) - config = load_config("config/settings.yaml") + config = load_config("/config/settings.yaml") config.validate() Deleterr(config)