Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Update nginx to 1.30.8 and keep Renovate on stable nginx releases (#5875)

Olga Bulat7e4ed90fabef
diff --git a/.github/renovate.json5 b/.github/renovate.json5
index f53f58a81..52da7d625 100644
--- a/.github/renovate.json5
+++ b/.github/renovate.json5
@@ -87,5 +87,13 @@
matchManagers: ["docker-compose", "dockerfile"],
enabled: false,
},
+ {
+ // Stay on nginx's stable branch (even minor versions). Moving to a new
+ // stable branch each year follows the runbook in the infrastructure
+ // repository, docs/UPDATE-NGINX.md.
+ matchPackageNames: ["docker.io/nginx"],
+ allowedVersions: "/^1\\.\\d*[02468]\\.\\d+-alpine$/",
+ groupName: "nginx",
+ },
],
}
diff --git a/api/Dockerfile b/api/Dockerfile
index 1e502780c..c45cff677 100644
--- a/api/Dockerfile
+++ b/api/Dockerfile
@@ -130,7 +130,7 @@ CMD ["python", "run.py"]
# NGINX #
#########
-FROM docker.io/nginx:1.28.0-alpine AS nginx
+FROM docker.io/nginx:1.30.8-alpine AS nginx
LABEL org.opencontainers.image.source="https://github.com/WordPress/openverse"
diff --git a/frontend/Dockerfile.nginx b/frontend/Dockerfile.nginx
index 2020d8007..63267dbaa 100644
--- a/frontend/Dockerfile.nginx
+++ b/frontend/Dockerfile.nginx
@@ -13,7 +13,7 @@
# NGINX #
#########
-FROM docker.io/nginx:1.28.0-alpine AS nginx
+FROM docker.io/nginx:1.30.8-alpine AS nginx
LABEL org.opencontainers.image.source="https://github.com/WordPress/openverse"