diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index e21eb2e..d35cc5b 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -1,10 +1,12 @@ 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' + - 'develop' tags: - 'v*' pull_request: @@ -70,7 +72,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. 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 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) 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