Skip to content

Commit adf6a57

Browse files
committed
feat: pin versions in documentation and examples
- Replace :latest with pinned versions in README.md, QUICKSTART.md, and docker-compose files - Add renovate custom manager for markdown files to auto-update pinned versions - Remove Docker Compose custom managers (handled automatically by Renovate) - Ensure users get stable, tested versions instead of potentially unstable :latest
1 parent 167be09 commit adf6a57

File tree

5 files changed

+23
-52
lines changed

5 files changed

+23
-52
lines changed

QUICKSTART.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Get ghcr-exporter running in minutes!
66

77
### 1. Pull the image
88
```bash
9-
docker pull ghcr.io/d0ugal/ghcr-exporter:latest
9+
docker pull ghcr.io/d0ugal/ghcr-exporter:v2.0.7
1010
```
1111

1212
### 2. Create a configuration file
@@ -24,7 +24,7 @@ docker run -d \
2424
--name ghcr-exporter \
2525
-p 8080:8080 \
2626
-v $(pwd)/config.yaml:/app/config.yaml:ro \
27-
ghcr.io/d0ugal/ghcr-exporter:latest
27+
ghcr.io/d0ugal/ghcr-exporter:v2.0.7
2828
```
2929

3030
### 4. Verify it's working
@@ -60,7 +60,7 @@ make build
6060
version: '3.8'
6161
services:
6262
ghcr-exporter:
63-
image: ghcr.io/d0ugal/ghcr-exporter:latest
63+
image: ghcr.io/d0ugal/ghcr-exporter:v2.0.7
6464
ports:
6565
- "8080:8080"
6666
volumes:

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A Prometheus exporter for GitHub Container Registry (GHCR) metrics.
44

5-
**Image**: `ghcr.io/d0ugal/ghcr-exporter:latest`
5+
**Image**: `ghcr.io/d0ugal/ghcr-exporter:v2.0.7`
66

77
## Metrics
88

@@ -30,7 +30,7 @@ A Prometheus exporter for GitHub Container Registry (GHCR) metrics.
3030
version: '3.8'
3131
services:
3232
ghcr-exporter:
33-
image: ghcr.io/d0ugal/ghcr-exporter:latest
33+
image: ghcr.io/d0ugal/ghcr-exporter:v2.0.7
3434
ports:
3535
- "8080:8080"
3636
volumes:
@@ -85,7 +85,7 @@ packages:
8585
version: '3.8'
8686
services:
8787
ghcr-exporter:
88-
image: ghcr.io/d0ugal/ghcr-exporter:latest
88+
image: ghcr.io/d0ugal/ghcr-exporter:v2.0.7
8989
ports:
9090
- "8080:8080"
9191
environment:
@@ -113,7 +113,7 @@ spec:
113113
spec:
114114
containers:
115115
- name: ghcr-exporter
116-
image: ghcr.io/d0ugal/ghcr-exporter:latest
116+
image: ghcr.io/d0ugal/ghcr-exporter:v2.0.7
117117
ports:
118118
- containerPort: 8080
119119
env:

docker-compose.env.example.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3.8'
22

33
services:
44
ghcr-exporter:
5-
image: ghcr.io/d0ugal/ghcr-exporter:latest
5+
image: ghcr.io/d0ugal/ghcr-exporter:v2.0.7
66
container_name: ghcr-exporter
77
ports:
88
- "8080:8080"
@@ -34,7 +34,7 @@ services:
3434
# Example with minimal configuration:
3535
# services:
3636
# ghcr-exporter:
37-
# image: ghcr.io/d0ugal/ghcr-exporter:latest
37+
# image: ghcr.io/d0ugal/ghcr-exporter:v2.0.7
3838
# container_name: ghcr-exporter
3939
# ports:
4040
# - "8080:8080"

docker-compose.example.yml

Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3.8'
22

33
services:
44
ghcr-exporter:
5-
image: ghcr.io/d0ugal/ghcr-exporter:latest
5+
image: ghcr.io/d0ugal/ghcr-exporter:v2.0.7
66
container_name: ghcr-exporter
77
ports:
88
- "8080:8080"
@@ -17,45 +17,4 @@ services:
1717
limits:
1818
memory: 256M
1919
reservations:
20-
memory: 128M
21-
22-
# Example with Prometheus and Grafana:
23-
24-
# services:
25-
# ghcr-exporter:
26-
# image: ghcr.io/d0ugal/ghcr-exporter:latest
27-
# container_name: ghcr-exporter
28-
# ports:
29-
# - "8080:8080"
30-
# volumes:
31-
# - ./config.yaml:/app/config.yaml:ro
32-
# environment:
33-
# - TZ=UTC
34-
# restart: unless-stopped
35-
# networks:
36-
# - monitoring
37-
#
38-
# prometheus:
39-
# image: prom/prometheus:latest
40-
# container_name: prometheus
41-
# ports:
42-
# - "9090:9090"
43-
# volumes:
44-
# - ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
45-
# restart: unless-stopped
46-
# networks:
47-
# - monitoring
48-
#
49-
# grafana:
50-
# image: grafana/grafana:latest
51-
# container_name: grafana
52-
# ports:
53-
# - "3000:3000"
54-
# environment:
55-
# - GF_SECURITY_ADMIN_PASSWORD=admin
56-
# restart: unless-stopped
57-
# networks:
58-
# - monitoring
59-
#
60-
# networks:
61-
# monitoring:
20+
memory: 128M

renovate.json5

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,17 @@
5454
datasourceTemplate: 'docker',
5555
versioningTemplate: 'semver',
5656
},
57+
{
58+
customType: 'regex',
59+
managerFilePatterns: [
60+
'**/*.md',
61+
],
62+
matchStrings: [
63+
'ghcr\\.io/d0ugal/ghcr-exporter:(?<currentValue>v[\\d\\.]+)',
64+
],
65+
depNameTemplate: 'ghcr.io/d0ugal/ghcr-exporter',
66+
datasourceTemplate: 'docker',
67+
versioningTemplate: 'semver',
68+
},
5769
],
5870
}

0 commit comments

Comments
 (0)