Skip to content

Commit 2013fe2

Browse files
author
Sascha Nowak
authored
Merge pull request #588 from netlogix/feature/renovate-bot
2 parents ca5621b + 897e70c commit 2013fe2

20 files changed

Lines changed: 82 additions & 723 deletions

File tree

.github/dependabot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ updates:
2020
- '/nginx'
2121
- '/node'
2222
- '/opensearch'
23-
- '/prettier'
2423
- '/prometheus-apache-exporter'
2524
- '/prometheus-elasticsearch-exporter'
2625
- '/prometheus-nginx-exporter'

.github/renovate.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:base"
5+
],
6+
"enabledManagers": ["regex"],
7+
"customManagers": [
8+
{
9+
"customType": "regex",
10+
"description": "Update _VERSION variables in Dockerfiles",
11+
"managerFilePatterns": [
12+
"/(^|/|\\.)Dockerfile$/",
13+
"/(^|/)Dockerfile\\.[^/]*$/"
14+
],
15+
"matchStrings": [
16+
"# renovate: datasource=(?<datasource>[a-z-]+?)(?: depName=(?<depName>.+?))? packageName=(?<packageName>.+?)(?: versioning=(?<versioning>[a-z-]+?))?\\s(?:ENV|ARG) .+?_VERSION=(?<currentValue>.+?)\\s"
17+
]
18+
}
19+
]
20+
}

.github/workflows/php.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,11 @@ jobs:
3535
build-args: |
3636
PHP_VERSION=7.2
3737
UBUNTU_VERSION=24.04
38-
XDEBUG_VERSION=3.1.6
3938
- version: 7.3
4039
file: 7.x.Dockerfile
4140
build-args: |
4241
PHP_VERSION=7.3
4342
UBUNTU_VERSION=24.04
44-
XDEBUG_VERSION=3.1.6
4543
- version: 7.4
4644
file: Dockerfile
4745
build-args: |
@@ -53,31 +51,26 @@ jobs:
5351
build-args: |
5452
PHP_VERSION=8.0
5553
UBUNTU_VERSION=24.04
56-
XDEBUG_VERSION=3.4.1
5754
- version: 8.1
5855
file: Dockerfile
5956
build-args: |
6057
PHP_VERSION=8.1
6158
UBUNTU_VERSION=22.04
62-
XDEBUG_VERSION=3.4.1
6359
- version: 8.2
6460
file: 8.x.Dockerfile
6561
build-args: |
6662
PHP_VERSION=8.2
6763
UBUNTU_VERSION=24.04
68-
XDEBUG_VERSION=3.4.1
6964
- version: 8.3
7065
file: Dockerfile
7166
build-args: |
7267
PHP_VERSION=8.3
7368
UBUNTU_VERSION=24.04
74-
XDEBUG_VERSION=3.4.1
7569
- version: 8.4
7670
file: 8.x.Dockerfile
7771
build-args: |
7872
PHP_VERSION=8.4
7973
UBUNTU_VERSION=24.04
80-
XDEBUG_VERSION=3.4.1
8174
8275
steps:
8376
- name: Checkout

.github/workflows/renovate.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Renovate
2+
on:
3+
schedule:
4+
- cron: "0 6 * * *" # Runs daily at 6 AM UTC
5+
push:
6+
branches:
7+
- main
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}
12+
cancel-in-progress: true
13+
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
18+
jobs:
19+
renovate:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v5
24+
25+
- name: Self-hosted Renovate
26+
uses: renovatebot/github-action@v44.0.2
27+
with:
28+
token: "${{secrets.GITHUB_TOKEN}}"
29+
env:
30+
LOG_LEVEL: 'debug'

cfssl/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ ARG TARGETARCH
66

77
WORKDIR /src
88

9-
RUN git clone -b 'v1.6.4' --single-branch --depth 1 https://github.com/cloudflare/cfssl.git .
9+
# renovate: datasource=github-tags depName=cfssl packageName=cloudflare/cfssl
10+
ARG CFSSL_VERSION=1.6.4
11+
12+
RUN git clone -b ${CFSSL_VERSION} --single-branch --depth 1 https://github.com/cloudflare/cfssl.git .
1013

1114
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags "-s -w -X github.com/cloudflare/cfssl/cli/version.version=1.6.5" -o /out/cfssl ./cmd/cfssl
1215
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags "-s -w -X github.com/cloudflare/cfssl/cli/version.version=1.6.5" -o /out/cfssl-bundle ./cmd/cfssl-bundle

nginx/Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@ RUN apt-get update \
7474
# SEE: https://github.com/coreruleset/modsecurity-crs-docker/blob/main/nginx/Dockerfile
7575
FROM nginx:1.29.3 AS modsecurity-builder
7676

77-
ARG MODSECURITY_VERSION="3.0.14"
78-
ARG MODSECURITY_NGINX_VERSION="1.0.4"
77+
# renovate: datasource=github-releases depName=ModSecurity packageName=owasp-modsecurity/ModSecurity
78+
ARG MODSECURITY_VERSION="v3.0.14"
79+
# renovate: datasource=github-releases depName=ModSecurity-nginx packageName=owasp-modsecurity/ModSecurity-nginx
80+
ARG MODSECURITY_NGINX_VERSION="v1.0.4"
7981

8082
USER root
8183

@@ -110,7 +112,7 @@ RUN set -eux; \
110112
WORKDIR /sources
111113

112114
RUN set -eux; \
113-
git clone https://github.com/owasp-modsecurity/ModSecurity.git --branch "v${MODSECURITY_VERSION}" --depth 1 --recursive; \
115+
git clone https://github.com/owasp-modsecurity/ModSecurity.git --branch "${MODSECURITY_VERSION}" --depth 1 --recursive; \
114116
cd ModSecurity; \
115117
ARCH=$(gcc -print-multiarch); \
116118
sed -ie "s/i386-linux-gnu/${ARCH}/g" build/ssdeep.m4; \
@@ -122,7 +124,7 @@ RUN set -eux; \
122124

123125
RUN set -eux; \
124126
NGINX_VERSION=$(nginx -v 2>&1 | sed -E 's#.*nginx/([0-9.]+).*#\1#'); \
125-
git clone https://github.com/owasp-modsecurity/ModSecurity-nginx.git --branch "v${MODSECURITY_NGINX_VERSION}" --depth 1; \
127+
git clone https://github.com/owasp-modsecurity/ModSecurity-nginx.git --branch "${MODSECURITY_NGINX_VERSION}" --depth 1; \
126128
curl -sSL "https://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz" -o nginx-${NGINX_VERSION}.tar.gz; \
127129
tar -xzf nginx-${NGINX_VERSION}.tar.gz; \
128130
cd ./nginx-${NGINX_VERSION}; \

opensearch/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ ENV ES_JAVA_OPTS="-Xms1g -Xmx1g"
66
ENV logger.level=WARN
77
ENV plugins.security.ssl.http.enabled=false
88

9+
# renovate: datasource=github-releases depName=jq packageName=jqlang/jq
910
ARG JQ_VERSION=1.7
10-
ADD --chmod=755 https://github.com/stedolan/jq/releases/download/jq-$JQ_VERSION/jq-linux64 /usr/bin/jq
11+
ADD --chmod=755 https://github.com/jqlang/jq/releases/download/jq-$JQ_VERSION/jq-linux64 /usr/bin/jq
1112
HEALTHCHECK --interval=1s --timeout=5s --retries=60 CMD if [ "$(curl --silent --fail -u admin:${OPENSEARCH_INITIAL_ADMIN_PASSWORD} localhost:9200/_cluster/health | jq .number_of_nodes)" -gt 0 ]; then exit 0; else exit 1; fi

php/8.x.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
ARG UBUNTU_VERSION=24.04
44
FROM ubuntu:${UBUNTU_VERSION} AS base
55
ARG PHP_VERSION=8.4
6+
# renovate: datasource=github-releases depName=xdebug packageName=xdebug/xdebug
67
ARG XDEBUG_VERSION=3.4.1
78

89
ENV DEBIAN_FRONTEND=noninteractive \

php/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
ARG UBUNTU_VERSION=24.04
44
FROM ubuntu:${UBUNTU_VERSION} AS base
55
ARG PHP_VERSION=8.3
6+
# renovate: datasource=github-releases depName=xdebug packageName=xdebug/xdebug
67
ARG XDEBUG_VERSION=3.4.1
78

89
ENV DEBIAN_FRONTEND=noninteractive \

prettier/.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lts/jod
1+
lts/krypton

0 commit comments

Comments
 (0)