Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"include-component-in-tag": false,
"include-v-in-tag": true
"include-v-in-tag": true,
"extra-files": [],
"versioning": "default",
"changelog-sections": [
{"type": "feat", "section": "Features"},
{"type": "fix", "section": "Bug Fixes"},
{"type": "perf", "section": "Performance Improvements"},
{"type": "chore", "section": "Dependencies"},
{"type": "deps", "section": "Dependencies"}
]
}
},
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
Expand Down
6 changes: 3 additions & 3 deletions QUICKSTART.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Get ghcr-exporter running in minutes!

### 1. Pull the image
```bash
docker pull ghcr.io/d0ugal/ghcr-exporter:latest
docker pull ghcr.io/d0ugal/ghcr-exporter:v2.0.7
```

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

### 4. Verify it's working
Expand Down Expand Up @@ -60,7 +60,7 @@ make build
version: '3.8'
services:
ghcr-exporter:
image: ghcr.io/d0ugal/ghcr-exporter:latest
image: ghcr.io/d0ugal/ghcr-exporter:v2.0.7
ports:
- "8080:8080"
volumes:
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

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

## Metrics

Expand Down Expand Up @@ -30,7 +30,7 @@ A Prometheus exporter for GitHub Container Registry (GHCR) metrics.
version: '3.8'
services:
ghcr-exporter:
image: ghcr.io/d0ugal/ghcr-exporter:latest
image: ghcr.io/d0ugal/ghcr-exporter:v2.0.7
ports:
- "8080:8080"
volumes:
Expand Down Expand Up @@ -85,7 +85,7 @@ packages:
version: '3.8'
services:
ghcr-exporter:
image: ghcr.io/d0ugal/ghcr-exporter:latest
image: ghcr.io/d0ugal/ghcr-exporter:v2.0.7
ports:
- "8080:8080"
environment:
Expand Down Expand Up @@ -113,7 +113,7 @@ spec:
spec:
containers:
- name: ghcr-exporter
image: ghcr.io/d0ugal/ghcr-exporter:latest
image: ghcr.io/d0ugal/ghcr-exporter:v2.0.7
ports:
- containerPort: 8080
env:
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.env.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.8'

services:
ghcr-exporter:
image: ghcr.io/d0ugal/ghcr-exporter:latest
image: ghcr.io/d0ugal/ghcr-exporter:v2.0.7
container_name: ghcr-exporter
ports:
- "8080:8080"
Expand Down Expand Up @@ -34,7 +34,7 @@ services:
# Example with minimal configuration:
# services:
# ghcr-exporter:
# image: ghcr.io/d0ugal/ghcr-exporter:latest
# image: ghcr.io/d0ugal/ghcr-exporter:v2.0.7
# container_name: ghcr-exporter
# ports:
# - "8080:8080"
Expand Down
45 changes: 2 additions & 43 deletions docker-compose.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.8'

services:
ghcr-exporter:
image: ghcr.io/d0ugal/ghcr-exporter:latest
image: ghcr.io/d0ugal/ghcr-exporter:v2.0.7
container_name: ghcr-exporter
ports:
- "8080:8080"
Expand All @@ -17,45 +17,4 @@ services:
limits:
memory: 256M
reservations:
memory: 128M

# Example with Prometheus and Grafana:

# services:
# ghcr-exporter:
# image: ghcr.io/d0ugal/ghcr-exporter:latest
# container_name: ghcr-exporter
# ports:
# - "8080:8080"
# volumes:
# - ./config.yaml:/app/config.yaml:ro
# environment:
# - TZ=UTC
# restart: unless-stopped
# networks:
# - monitoring
#
# prometheus:
# image: prom/prometheus:latest
# container_name: prometheus
# ports:
# - "9090:9090"
# volumes:
# - ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
# restart: unless-stopped
# networks:
# - monitoring
#
# grafana:
# image: grafana/grafana:latest
# container_name: grafana
# ports:
# - "3000:3000"
# environment:
# - GF_SECURITY_ADMIN_PASSWORD=admin
# restart: unless-stopped
# networks:
# - monitoring
#
# networks:
# monitoring:
memory: 128M
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ require (
github.com/ugorji/go/codec v1.3.0 // indirect
go.uber.org/mock v0.6.0 // indirect
go.yaml.in/yaml/v2 v2.4.3 // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
golang.org/x/arch v0.21.0 // indirect
golang.org/x/crypto v0.42.0 // indirect
golang.org/x/mod v0.28.0 // indirect
Expand Down
3 changes: 0 additions & 3 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,8 @@ go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
go.uber.org/mock v0.6.0 h1:hyF9dfmbgIX5EfOdasqLsWD6xqpNZlXblLB/Dbnwv3Y=
go.uber.org/mock v0.6.0/go.mod h1:KiVJ4BqZJaMj4svdfmHM0AUx4NJYO8ZNpPnZn1Z+BBU=
go.yaml.in/yaml/v2 v2.4.2 h1:DzmwEr2rDGHl7lsFgAHxmNz/1NlQ7xLIrlN2h5d1eGI=
go.yaml.in/yaml/v2 v2.4.2/go.mod h1:081UH+NErpNdqlCXm3TtEran0rJZGxAYx9hb/ELlsPU=
go.yaml.in/yaml/v2 v2.4.3 h1:6gvOSjQoTB3vt1l+CU+tSyi/HOjfOjRLJ4YwYZGwRO0=
go.yaml.in/yaml/v2 v2.4.3/go.mod h1:zSxWcmIDjOzPXpjlTTbAsKokqkDNAVtZO0WOMiT90s8=
go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
golang.org/x/arch v0.21.0 h1:iTC9o7+wP6cPWpDWkivCvQFGAHDQ59SrSxsLPcnkArw=
golang.org/x/arch v0.21.0/go.mod h1:dNHoOeKiyja7GTvF9NJS1l3Z2yntpQNzgrjh1cU103A=
golang.org/x/crypto v0.42.0 h1:chiH31gIWm57EkTXpwnqf8qeuMUi0yekh6mT2AvFlqI=
Expand Down
12 changes: 12 additions & 0 deletions renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,17 @@
datasourceTemplate: 'docker',
versioningTemplate: 'semver',
},
{
customType: 'regex',
managerFilePatterns: [
'**/*.md',
],
matchStrings: [
'ghcr\\.io/d0ugal/ghcr-exporter:(?<currentValue>v[\\d\\.]+)',
],
depNameTemplate: 'ghcr.io/d0ugal/ghcr-exporter',
datasourceTemplate: 'docker',
versioningTemplate: 'semver',
},
],
}