mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-22 09:36:52 +03:00
Pin base Python Docker images to bugfix (#4194)
* Pin base Python Docker images to bugfix Fix #1810 * Skip major & minor versions of Docker images in Dependabot * Remove argument for docs Docker image * Update Dependabot config of generated project
This commit is contained in:
parent
5cd58ce160
commit
d90f16b647
9
.github/dependabot.yml
vendored
9
.github/dependabot.yml
vendored
|
@ -27,6 +27,9 @@ updates:
|
||||||
directory: "{{cookiecutter.project_slug}}/compose/local/django/"
|
directory: "{{cookiecutter.project_slug}}/compose/local/django/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
ignore:
|
||||||
|
- dependency-name: "*"
|
||||||
|
update-types: ["version-update:semver-major", "version-update:semver-minor"]
|
||||||
labels:
|
labels:
|
||||||
- "update"
|
- "update"
|
||||||
|
|
||||||
|
@ -34,6 +37,9 @@ updates:
|
||||||
directory: "{{cookiecutter.project_slug}}/compose/local/docs/"
|
directory: "{{cookiecutter.project_slug}}/compose/local/docs/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
ignore:
|
||||||
|
- dependency-name: "*"
|
||||||
|
update-types: ["version-update:semver-major", "version-update:semver-minor"]
|
||||||
labels:
|
labels:
|
||||||
- "update"
|
- "update"
|
||||||
|
|
||||||
|
@ -55,6 +61,9 @@ updates:
|
||||||
directory: "{{cookiecutter.project_slug}}/compose/production/django/"
|
directory: "{{cookiecutter.project_slug}}/compose/production/django/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
ignore:
|
||||||
|
- dependency-name: "*"
|
||||||
|
update-types: ["version-update:semver-major", "version-update:semver-minor"]
|
||||||
labels:
|
labels:
|
||||||
- "update"
|
- "update"
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ updates:
|
||||||
# Update GitHub actions in workflows
|
# Update GitHub actions in workflows
|
||||||
- package-ecosystem: "github-actions"
|
- package-ecosystem: "github-actions"
|
||||||
directory: "/"
|
directory: "/"
|
||||||
# Check for updates to GitHub Actions every weekday
|
# Every weekday
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
|
||||||
|
@ -19,55 +19,61 @@ updates:
|
||||||
- package-ecosystem: "docker"
|
- package-ecosystem: "docker"
|
||||||
# Look for a `Dockerfile` in the `compose/local/django` directory
|
# Look for a `Dockerfile` in the `compose/local/django` directory
|
||||||
directory: "compose/local/django/"
|
directory: "compose/local/django/"
|
||||||
# Check for updates to GitHub Actions every weekday
|
# Every weekday
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
# Ignore minor version updates (3.10 -> 3.11) but update patch versions
|
||||||
|
ignore:
|
||||||
|
- dependency-name: "*"
|
||||||
|
update-types: ["version-update:semver-major", "version-update:semver-minor"]
|
||||||
|
|
||||||
# Enable version updates for Docker
|
|
||||||
- package-ecosystem: "docker"
|
- package-ecosystem: "docker"
|
||||||
# Look for a `Dockerfile` in the `compose/local/docs` directory
|
# Look for a `Dockerfile` in the `compose/local/docs` directory
|
||||||
directory: "compose/local/docs/"
|
directory: "compose/local/docs/"
|
||||||
# Check for updates to GitHub Actions every weekday
|
# Every weekday
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
# Ignore minor version updates (3.10 -> 3.11) but update patch versions
|
||||||
|
ignore:
|
||||||
|
- dependency-name: "*"
|
||||||
|
update-types: ["version-update:semver-major", "version-update:semver-minor"]
|
||||||
|
|
||||||
# Enable version updates for Docker
|
|
||||||
- package-ecosystem: "docker"
|
- package-ecosystem: "docker"
|
||||||
# Look for a `Dockerfile` in the `compose/local/node` directory
|
# Look for a `Dockerfile` in the `compose/local/node` directory
|
||||||
directory: "compose/local/node/"
|
directory: "compose/local/node/"
|
||||||
# Check for updates to GitHub Actions every weekday
|
# Every weekday
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
|
||||||
# Enable version updates for Docker
|
|
||||||
- package-ecosystem: "docker"
|
- package-ecosystem: "docker"
|
||||||
# Look for a `Dockerfile` in the `compose/production/aws` directory
|
# Look for a `Dockerfile` in the `compose/production/aws` directory
|
||||||
directory: "compose/production/aws/"
|
directory: "compose/production/aws/"
|
||||||
# Check for updates to GitHub Actions every weekday
|
# Every weekday
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
|
||||||
# Enable version updates for Docker
|
|
||||||
- package-ecosystem: "docker"
|
- package-ecosystem: "docker"
|
||||||
# Look for a `Dockerfile` in the `compose/production/django` directory
|
# Look for a `Dockerfile` in the `compose/production/django` directory
|
||||||
directory: "compose/production/django/"
|
directory: "compose/production/django/"
|
||||||
# Check for updates to GitHub Actions every weekday
|
# Every weekday
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
# Ignore minor version updates (3.10 -> 3.11) but update patch versions
|
||||||
|
ignore:
|
||||||
|
- dependency-name: "*"
|
||||||
|
update-types: ["version-update:semver-major", "version-update:semver-minor"]
|
||||||
|
|
||||||
# Enable version updates for Docker
|
|
||||||
- package-ecosystem: "docker"
|
- package-ecosystem: "docker"
|
||||||
# Look for a `Dockerfile` in the `compose/production/postgres` directory
|
# Look for a `Dockerfile` in the `compose/production/postgres` directory
|
||||||
directory: "compose/production/postgres/"
|
directory: "compose/production/postgres/"
|
||||||
# Check for updates to GitHub Actions every weekday
|
# Every weekday
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
|
||||||
# Enable version updates for Docker
|
|
||||||
- package-ecosystem: "docker"
|
- package-ecosystem: "docker"
|
||||||
# Look for a `Dockerfile` in the `compose/production/traefik` directory
|
# Look for a `Dockerfile` in the `compose/production/traefik` directory
|
||||||
directory: "compose/production/traefik/"
|
directory: "compose/production/traefik/"
|
||||||
# Check for updates to GitHub Actions every weekday
|
# Every weekday
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
|
||||||
|
@ -78,7 +84,7 @@ updates:
|
||||||
# Look for a `requirements.txt` in the `root` directory
|
# Look for a `requirements.txt` in the `root` directory
|
||||||
# also 'setup.cfg', 'runtime.txt' and 'requirements/*.txt'
|
# also 'setup.cfg', 'runtime.txt' and 'requirements/*.txt'
|
||||||
directory: "/"
|
directory: "/"
|
||||||
# Check for updates to GitHub Actions every weekday
|
# Every weekday
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
|
||||||
|
@ -86,9 +92,9 @@ updates:
|
||||||
|
|
||||||
# Enable version updates for javascript/npm
|
# Enable version updates for javascript/npm
|
||||||
- package-ecosystem: "npm"
|
- package-ecosystem: "npm"
|
||||||
# Look for a `packages.json' in the `root` directory
|
# Look for a `packages.json` in the `root` directory
|
||||||
directory: "/"
|
directory: "/"
|
||||||
# Check for updates to GitHub Actions every weekday
|
# Every weekday
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
ARG PYTHON_VERSION=3.10-slim-bullseye
|
|
||||||
|
|
||||||
# define an alias for the specfic python version used in this file.
|
# define an alias for the specfic python version used in this file.
|
||||||
FROM python:${PYTHON_VERSION} as python
|
FROM python:3.10.9-slim-bullseye as python
|
||||||
|
|
||||||
# Python build stage
|
# Python build stage
|
||||||
FROM python as python-build-stage
|
FROM python as python-build-stage
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
ARG PYTHON_VERSION=3.10-slim-bullseye
|
|
||||||
|
|
||||||
# define an alias for the specfic python version used in this file.
|
# define an alias for the specfic python version used in this file.
|
||||||
FROM python:${PYTHON_VERSION} as python
|
FROM python:3.10.9-slim-bullseye as python
|
||||||
|
|
||||||
|
|
||||||
# Python build stage
|
# Python build stage
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
ARG PYTHON_VERSION=3.10-slim-bullseye
|
|
||||||
|
|
||||||
{% if cookiecutter.frontend_pipeline in ['Gulp', 'Webpack'] -%}
|
{% if cookiecutter.frontend_pipeline in ['Gulp', 'Webpack'] -%}
|
||||||
FROM node:16-bullseye-slim as client-builder
|
FROM node:16-bullseye-slim as client-builder
|
||||||
|
|
||||||
|
@ -28,7 +26,7 @@ RUN npm run build
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
# define an alias for the specfic python version used in this file.
|
# define an alias for the specfic python version used in this file.
|
||||||
FROM python:${PYTHON_VERSION} as python
|
FROM python:3.10.9-slim-bullseye as python
|
||||||
|
|
||||||
# Python build stage
|
# Python build stage
|
||||||
FROM python as python-build-stage
|
FROM python as python-build-stage
|
||||||
|
|
Loading…
Reference in New Issue
Block a user