Skip to content

Commit e00a27c

Browse files
authored
feat: Update ldez/traefik-certs-dumper to v2.10.0 (#197)
* Update ldez/traefik-certs-dumper to v2.10.0 for docker flavor * Update alpine flavor to be based on alpine:3.21.3 * Remove deprecated Dockerfile for Docker Hub release * Update actions/cache to v4.2.2 * Don't run dev build pipeline on push events and update secrets ref * Activate login step for pull requests * Run Codacy scan for pushes only to develop, release and master branches
1 parent 7b451dd commit e00a27c

File tree

8 files changed

+22
-118
lines changed

8 files changed

+22
-118
lines changed

.github/workflows/codacy.yml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Codacy Security Scan
22

33
on:
44
push:
5+
branches:
6+
- 'develop'
7+
- 'release/*'
8+
- 'master'
59
pull_request:
610
schedule:
711
- cron: '19 9 * * 4'

.github/workflows/dev-build.yml

+5-11
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: Build dev images
22

33
on:
4-
push:
5-
branches-ignore:
6-
- 'release/**'
7-
- 'develop'
84
pull_request:
95
branches-ignore:
106
- 'release/**'
@@ -54,7 +50,7 @@ jobs:
5450
driver-opts: network=host
5551

5652
- name: Cache Docker layers
57-
uses: actions/cache@v4.0.2
53+
uses: actions/cache@v4.2.2
5854
with:
5955
path: /tmp/.buildx-cache
6056
key: ${{ runner.os }}-buildx-${{ github.sha }}
@@ -63,11 +59,10 @@ jobs:
6359
6460
- name: Login to GitHub Container Registry
6561
uses: docker/login-action@v3
66-
if: ${{ github.event_name != 'pull_request' }}
6762
with:
6863
registry: ghcr.io
6964
username: ${{ github.actor }}
70-
password: ${{ secrets.GITHUB_TOKEN }}
65+
password: ${{ secrets.CR_PAT }}
7166

7267
- name: Build image
7368
uses: docker/build-push-action@v5
@@ -110,20 +105,19 @@ jobs:
110105
uses: docker/setup-buildx-action@v3
111106

112107
- name: Cache Docker layers
113-
uses: actions/cache@v4.0.2
108+
uses: actions/cache@v4.2.2
114109
with:
115110
path: /tmp/.buildx-cache
116111
key: ${{ runner.os }}-buildx-${{ github.sha }}
117112
restore-keys: |
118113
${{ runner.os }}-buildx-
119114
120115
- name: Login to GitHub Container Registry
121-
uses: docker/login-action@v3
122-
if: ${{ github.event_name != 'pull_request' }}
116+
uses: docker/login-action@v3
123117
with:
124118
registry: ghcr.io
125119
username: ${{ github.actor }}
126-
password: ${{ secrets.GITHUB_TOKEN }}
120+
password: ${{ secrets.CR_PAT }}
127121

128122
- name: Build image
129123
uses: docker/build-push-action@v5

.github/workflows/docker-hub-release.yml

-95
This file was deleted.

.github/workflows/edge-build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
driver-opts: network=host
4444

4545
- name: Cache Docker layers
46-
uses: actions/cache@v4.0.2
46+
uses: actions/cache@v4.2.2
4747
with:
4848
path: /tmp/.buildx-cache
4949
key: ${{ runner.os }}-buildx-${{ github.sha }}
@@ -99,7 +99,7 @@ jobs:
9999
uses: docker/setup-buildx-action@v3
100100

101101
- name: Cache Docker layers
102-
uses: actions/cache@v4.0.2
102+
uses: actions/cache@v4.2.2
103103
with:
104104
path: /tmp/.buildx-cache
105105
key: ${{ runner.os }}-buildx-${{ github.sha }}

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
driver-opts: network=host
4444

4545
- name: Cache Docker layers
46-
uses: actions/cache@v4.0.2
46+
uses: actions/cache@v4.2.2
4747
with:
4848
path: /tmp/.buildx-cache
4949
key: ${{ runner.os }}-buildx-${{ github.sha }}
@@ -102,7 +102,7 @@ jobs:
102102
uses: docker/setup-buildx-action@v3
103103

104104
- name: Cache Docker layers
105-
uses: actions/cache@v4.0.2
105+
uses: actions/cache@v4.2.2
106106
with:
107107
path: /tmp/.buildx-cache
108108
key: ${{ runner.os }}-buildx-${{ github.sha }}

alpine/Dockerfile

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
1-
FROM ldez/traefik-certs-dumper:v2.8.3
1+
FROM alpine:3.21.3
22

33
RUN \
44
apk update && \
55
apk add --no-cache \
6+
--no-progress \
67
inotify-tools \
78
util-linux \
89
bash \
9-
openssl
10+
openssl \
11+
ca-certificates \
12+
tzdata && \
13+
rm -rf /var/cache/apk/*
1014

1115
COPY bin/dump.sh /usr/bin/dump
1216
COPY bin/healthcheck.sh /usr/bin/healthcheck
1317

1418
RUN ["chmod", "+x", "/usr/bin/dump", "/usr/bin/healthcheck"]
1519

20+
COPY --from=ldez/traefik-certs-dumper:v2.10.0 /usr/bin/traefik-certs-dumper /usr/bin/traefik-certs-dumper
21+
1622
HEALTHCHECK --interval=30s --timeout=10s --retries=5 \
1723
CMD ["/usr/bin/healthcheck"]
1824

alpine/Dockerfile.deprecated

-5
This file was deleted.

docker/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN ["chmod", "+x", "/usr/bin/dump", "/usr/bin/healthcheck"]
1616
HEALTHCHECK --interval=30s --timeout=10s --retries=5 \
1717
CMD ["/usr/bin/healthcheck"]
1818

19-
COPY --from=ldez/traefik-certs-dumper:v2.8.1 /usr/bin/traefik-certs-dumper /usr/bin/traefik-certs-dumper
19+
COPY --from=ldez/traefik-certs-dumper:v2.10.0 /usr/bin/traefik-certs-dumper /usr/bin/traefik-certs-dumper
2020

2121
VOLUME ["/traefik"]
2222
VOLUME ["/output"]

0 commit comments

Comments
 (0)