Skip to content

Commit d19df06

Browse files
committed
feat: add curl in image for running healthchecks
1 parent 9e5016d commit d19df06

16 files changed

Lines changed: 33 additions & 5 deletions

File tree

.github/workflows/build-alertmanager.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
name: Build Alertmanager image
3+
env:
4+
build_epoch: 1
35
on:
46
push:
57
branches:
@@ -44,5 +46,6 @@ jobs:
4446
build-args: |
4547
VERSION=${{ matrix.version }}
4648
tags: |
49+
ghcr.io/f-bn/alertmanager:${{ matrix.version }}-r${{ env.build_epoch }}
4750
ghcr.io/f-bn/alertmanager:${{ matrix.version }}
4851
ghcr.io/f-bn/alertmanager:latest

.github/workflows/build-feishin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Build Feishin image
33
env:
4-
build_epoch: 1
4+
build_epoch: 2
55
on:
66
push:
77
branches:

.github/workflows/build-grafana.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Build Grafana image
33
env:
4-
build_epoch: 0
4+
build_epoch: 1
55
on:
66
push:
77
branches:
@@ -46,5 +46,6 @@ jobs:
4646
build-args: |
4747
VERSION=${{ matrix.version }}
4848
tags: |
49+
ghcr.io/f-bn/grafana:${{ matrix.version }}-r${{ env.build_epoch }}
4950
ghcr.io/f-bn/grafana:${{ matrix.version }}
5051
ghcr.io/f-bn/grafana:latest

.github/workflows/build-navidrome.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Build Navidrome image
33
env:
4-
build_epoch: 1
4+
build_epoch: 2
55
on:
66
push:
77
branches:

.github/workflows/build-node-exporter.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
name: Build Prometheus Node Exporter image
3+
env:
4+
build_epoch: 1
35
on:
46
push:
57
branches:
@@ -44,5 +46,6 @@ jobs:
4446
build-args: |
4547
VERSION=${{ matrix.version }}
4648
tags: |
49+
ghcr.io/f-bn/node-exporter:${{ matrix.version }}-r${{ env.build_epoch }}
4750
ghcr.io/f-bn/node-exporter:${{ matrix.version }}
4851
ghcr.io/f-bn/node-exporter:latest

.github/workflows/build-podman-exporter.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
name: Build Prometheus Podman Exporter image
3+
env:
4+
build_epoch: 1
35
on:
46
push:
57
branches:
@@ -44,5 +46,6 @@ jobs:
4446
build-args: |
4547
VERSION=${{ matrix.version }}
4648
tags: |
49+
ghcr.io/f-bn/podman-exporter:${{ matrix.version }}-r${{ env.build_epoch }}
4750
ghcr.io/f-bn/podman-exporter:${{ matrix.version }}
4851
ghcr.io/f-bn/podman-exporter:latest

.github/workflows/build-prometheus.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
name: Build Prometheus image
3+
env:
4+
build_epoch: 1
35
on:
46
push:
57
branches:
@@ -44,5 +46,6 @@ jobs:
4446
build-args: |
4547
VERSION=${{ matrix.version }}
4648
tags: |
49+
ghcr.io/f-bn/prometheus:${{ matrix.version }}-r${{ env.build_epoch }}
4750
ghcr.io/f-bn/prometheus:${{ matrix.version }}
4851
ghcr.io/f-bn/prometheus:latest

.github/workflows/build-traefik.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
name: Build Traefik image
3+
env:
4+
build_epoch: 1
35
on:
46
push:
57
branches:
@@ -44,5 +46,6 @@ jobs:
4446
build-args: |
4547
VERSION=${{ matrix.version }}
4648
tags: |
49+
ghcr.io/f-bn/traefik:${{ matrix.version }}-r${{ env.build_epoch }}
4750
ghcr.io/f-bn/traefik:${{ matrix.version }}
4851
ghcr.io/f-bn/traefik:latest

alertmanager/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ RUN set -ex ; \
4343
chown prometheus:prometheus /var/lib/alertmanager ; \
4444
chmod 755 /var/lib/alertmanager
4545

46+
RUN apk add --no-cache curl
47+
4648
USER prometheus
4749

4850
EXPOSE 9093/tcp

feishin/nginx.conf.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ server {
2525
alias /etc/nginx/conf.d/settings.js;
2626
}
2727

28-
location = ${FEISHIN_PUBLIC_PATH}ping {
28+
location = ${FEISHIN_PUBLIC_PATH}health {
2929
access_log off;
3030
return 200 'OK';
3131
add_header Content-Type text/plain;

0 commit comments

Comments
 (0)