Skip to content

Commit 7327f26

Browse files
committed
add supply chain attestations and auto release for windows images
1 parent 86c1e1a commit 7327f26

File tree

4 files changed

+87
-0
lines changed

4 files changed

+87
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Release flunetd windows docker image
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'charts/fluend/docker_windows/fluentd_windows.dockerfile'
9+
- 'charts/fluend/docker_windows/fluentd_windows2022.dockerfile'
10+
11+
jobs:
12+
release-docker-windows:
13+
name: release fluentd windows 2019 docker image
14+
runs-on: windows-2019
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
- name: Get new image version
19+
id: extract_version
20+
run: (for /f "tokens=2 delims==" %a in ('type "fluentd_windows.dockerfile" ^|findstr "version"') do @echo NEW_VERSION=%a) >> $GITHUB_ENV
21+
- name: Set up QEMU
22+
uses: docker/setup-qemu-action@v3
23+
- name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v3
25+
- name: Log in to Docker Hub
26+
uses: docker/login-action@v3
27+
with:
28+
username: ${{ secrets.DOCKER_USERNAME }}
29+
password: ${{ secrets.DOCKER_PASSWORD }}
30+
- name: Build and push
31+
uses: docker/build-push-action@v5
32+
with:
33+
push: true
34+
platforms: windows/amd64
35+
sbom: true
36+
provenance: mode=max
37+
tags: logzio/fluentd-windows:latest, logzio/fluentd-windows:${{ env.NEW_VERSION }}
38+
context: charts/logzio-fluend/docker_windows
39+
file: fluentd_windows.dockerfile
40+
41+
release-docker-windows2022:
42+
name: release fluentd windows 2022 docker image
43+
runs-on: windows-2022
44+
steps:
45+
- name: Checkout repository
46+
uses: actions/checkout@v4
47+
- name: Get new image version
48+
id: extract_version
49+
run: (for /f "tokens=2 delims==" %a in ('type "fluentd_windows.dockerfile" ^|findstr "version"') do @echo NEW_VERSION=%a) >> $GITHUB_ENV
50+
- name: Set up QEMU
51+
uses: docker/setup-qemu-action@v3
52+
- name: Set up Docker Buildx
53+
uses: docker/setup-buildx-action@v3
54+
- name: Log in to Docker Hub
55+
uses: docker/login-action@v3
56+
with:
57+
username: ${{ secrets.DOCKER_USERNAME }}
58+
password: ${{ secrets.DOCKER_PASSWORD }}
59+
- name: Build and push
60+
uses: docker/build-push-action@v5
61+
with:
62+
push: true
63+
platforms: windows/amd64
64+
sbom: true
65+
provenance: mode=max
66+
tags: logzio/fluentd-windows-2022:latest, logzio/fluentd-windows-2022:${{ env.NEW_VERSION }}
67+
context: charts/logzio-fluend/docker_windows
68+
file: fluentd_windows2022.dockerfile

.github/workflows/auto-release-kube-tools.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,7 @@ jobs:
3131
with:
3232
push: true
3333
platforms: linux/amd64, linux/arm/v7, linux/arm/v8, linux/arm64
34+
sbom: true
35+
provenance: mode=max
3436
tags: logzio/kube-tools:latest, logzio/kube-tools:${{ env.NEW_VERSION }}
3537
context: charts/logzio-monitoring/plugins

charts/fluentd/docker_windows/fluentd_windows.dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FROM fluent/fluentd:v1.18.0-windows-ltsc2019-1.0
2+
LABEL version=0.0.5-test
23
RUN gem install fluent-plugin-detect-exceptions \
34
&& gem install fluent-plugin-logzio \
45
&& gem install fluent-plugin-concat \
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM fluent/fluentd:v1.18.0-windows-ltsc2022-1.0
2+
LABEL version=0.0.5-test
3+
RUN gem install fluent-plugin-detect-exceptions \
4+
&& gem install fluent-plugin-logzio \
5+
&& gem install fluent-plugin-concat \
6+
&& gem install fluent-plugin-record-modifier \
7+
&& gem install fluent-plugin-kubernetes_metadata_filter \
8+
&& gem install fluent-plugin-kubernetes \
9+
&& gem install fluent-plugin-systemd \
10+
&& gem install fluent-plugin-multi-format-parser \
11+
&& gem install fluent-plugin-windows-eventlog \
12+
&& gem install fluent-plugin-prometheus \
13+
&& gem install fluent-plugin-dedot_filter
14+
COPY plugins /fluent/plugins
15+
16+
ENTRYPOINT ["cmd", "/k" ,"fluentd", "--config", "C:\\fluent\\conf\\fluent.conf","-p","C:\\fluent\\plugins"]

0 commit comments

Comments
 (0)