From 69be07f387e256a5946bfb537b740f0be06d9de8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20C=2E=20Barrionuevo=20da=20Luz?= Date: Wed, 4 Sep 2024 20:28:57 -0300 Subject: [PATCH] Add nginx container to dependabot --- .github/dependabot.yml | 9 ++++++++- {{cookiecutter.project_slug}}/.github/dependabot.yml | 12 +++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 3582a212..c5856a6a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,5 +1,5 @@ # Config for Dependabot updates. See Documentation here: -# https://docs.github.com/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates +# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file version: 2 updates: @@ -96,6 +96,13 @@ updates: labels: - "update" + - package-ecosystem: "docker" + directory: "{{cookiecutter.project_slug}}/compose/production/nginx/" + schedule: + interval: "daily" + labels: + - "update" + - package-ecosystem: "docker" directory: "{{cookiecutter.project_slug}}/compose/production/traefik/" schedule: diff --git a/{{cookiecutter.project_slug}}/.github/dependabot.yml b/{{cookiecutter.project_slug}}/.github/dependabot.yml index be52c68d..4b897355 100644 --- a/{{cookiecutter.project_slug}}/.github/dependabot.yml +++ b/{{cookiecutter.project_slug}}/.github/dependabot.yml @@ -1,5 +1,5 @@ # Config for Dependabot updates. See Documentation here: -# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file version: 2 updates: @@ -83,6 +83,16 @@ updates: schedule: interval: 'daily' +{%- if cookiecutter.cloud_provider == 'None' %} + + - package-ecosystem: 'docker' + # Look for a `Dockerfile` in the `compose/production/nginx` directory + directory: 'compose/production/nginx/' + # Every weekday + schedule: + interval: 'daily' +{%- endif %} + {%- endif %} # Enable version updates for Python/Pip - Production