Skip to content

Commit cadf448

Browse files
Merge branch 'master' into release-v1.4.9
2 parents 32f83fa + c860dcc commit cadf448

58 files changed

Lines changed: 2785 additions & 420 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/init-branch-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
git diff
5858
5959
- name: Create pull request
60-
uses: peter-evans/create-pull-request@v7.0.6
60+
uses: peter-evans/create-pull-request@v7.0.8
6161
with:
6262
commit-message: "Bump version to ${{ inputs.TARGET_VERSION }}"
6363
title: "Bump version to ${{ inputs.TARGET_VERSION }} on ${{ inputs.TARGET_BRANCH }} branch"

.github/workflows/pull_request.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ env:
2525

2626
jobs:
2727
qa:
28-
uses: stakater/.github/.github/workflows/pull_request_doc_qa.yaml@v0.0.131
28+
uses: stakater/.github/.github/workflows/pull_request_doc_qa.yaml@v0.0.163
2929
with:
3030
MD_CONFIG: .github/md_config.json
3131
DOC_SRC: README.md
@@ -63,6 +63,11 @@ jobs:
6363
check-latest: true
6464
cache: true
6565

66+
- name: Create timestamp
67+
id: prep
68+
run: echo "created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
69+
70+
6671
# Get highest tag and remove any suffixes with '-'
6772
- name: Get Highest tag
6873
id: highest_tag
@@ -104,6 +109,7 @@ jobs:
104109
kind create cluster
105110
kubectl cluster-info
106111
112+
107113
- name: Test
108114
run: make test
109115

@@ -135,7 +141,12 @@ jobs:
135141
file: ${{ env.DOCKER_FILE_PATH }}
136142
pull: true
137143
push: false
138-
build-args: BUILD_PARAMETERS=${{ env.BUILD_PARAMETERS }}
144+
build-args: |
145+
VERSION=merge-${{ steps.generate_tag.outputs.GIT_TAG }}
146+
COMMIT=${{github.event.pull_request.head.sha}}
147+
BUILD_DATE=${{ steps.prep.outputs.created }}
148+
BUILD_PARAMETERS=${{ env.BUILD_PARAMETERS }}
149+
139150
cache-to: type=inline
140151
platforms: linux/amd64,linux/arm,linux/arm64
141152
tags: |

.github/workflows/pull_request_docs.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,17 @@ on:
1616

1717
jobs:
1818
qa:
19-
uses: stakater/.github/.github/workflows/pull_request_doc_qa.yaml@v0.0.131
19+
uses: stakater/.github/.github/workflows/pull_request_doc_qa.yaml@v0.0.163
2020
with:
2121
MD_CONFIG: .github/md_config.json
2222
DOC_SRC: docs
2323
MD_LINT_CONFIG: .markdownlint.yaml
2424
build:
25-
uses: stakater/.github/.github/workflows/pull_request_container_build.yaml@v0.0.131
25+
uses: stakater/.github/.github/workflows/pull_request_container_build.yaml@v0.0.163
2626
with:
2727
DOCKER_FILE_PATH: Dockerfile-docs
2828
CONTAINER_REGISTRY_URL: ghcr.io/stakater
29+
PUSH_IMAGE: false
2930
secrets:
3031
CONTAINER_REGISTRY_USERNAME: ${{ github.actor }}
3132
CONTAINER_REGISTRY_PASSWORD: ${{ secrets.GHCR_TOKEN }}

.github/workflows/push-helm-chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515

1616
env:
1717
HELM_REGISTRY_URL: "https://stakater.github.io/stakater-charts"
18-
REGISTRY: ghcr.io
18+
REGISTRY: ghcr.io # container registry
1919

2020
jobs:
2121
verify-and-push-helm-chart:
@@ -73,7 +73,7 @@ jobs:
7373
exit 1
7474
7575
- name: Install Cosign
76-
uses: sigstore/cosign-installer@v3.8.2
76+
uses: sigstore/cosign-installer@v3.10.1
7777

7878
- name: Login to GHCR Registry
7979
uses: docker/login-action@v3
@@ -106,7 +106,7 @@ jobs:
106106
commit_email: stakater@gmail.com
107107

108108
- name: Push new chart tag
109-
uses: anothrNick/github-tag-action@1.71.0
109+
uses: anothrNick/github-tag-action@1.75.0
110110
env:
111111
GITHUB_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
112112
WITH_V: false

.github/workflows/push.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ jobs:
9191
with:
9292
username: ${{ secrets.STAKATER_DOCKERHUB_USERNAME }}
9393
password: ${{ secrets.STAKATER_DOCKERHUB_PASSWORD }}
94+
95+
- name: Create timestamp
96+
id: prep
97+
run: echo "created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
9498

9599
- name: Generate image repository path for Docker registry
96100
run: |
@@ -148,7 +152,11 @@ jobs:
148152
file: ${{ env.DOCKER_FILE_PATH }}
149153
pull: true
150154
push: true
151-
build-args: BUILD_PARAMETERS=${{ env.BUILD_PARAMETERS }}
155+
build-args: |
156+
VERSION=merge-${{ github.event.number }}
157+
COMMIT=${{ github.sha }}
158+
BUILD_DATE=${{ steps.prep.outputs.created }}
159+
BUILD_PARAMETERS=${{ env.BUILD_PARAMETERS }}
152160
cache-to: type=inline
153161
platforms: linux/amd64,linux/arm,linux/arm64
154162
tags: |
@@ -207,7 +215,7 @@ jobs:
207215
org.opencontainers.image.revision=${{ github.sha }}
208216
209217
- name: Push Latest Tag
210-
uses: anothrNick/github-tag-action@1.71.0
218+
uses: anothrNick/github-tag-action@1.75.0
211219
env:
212220
GITHUB_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
213221
WITH_V: false

.github/workflows/release.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ jobs:
7979
id: generate_tag
8080
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
8181

82+
- name: Create timestamp
83+
id: prep
84+
run: echo "created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
85+
8286
- name: Set up QEMU
8387
uses: docker/setup-qemu-action@v3
8488

@@ -106,6 +110,10 @@ jobs:
106110
platforms: linux/amd64,linux/arm,linux/arm64
107111
tags: |
108112
${{ env.DOCKER_IMAGE_REPOSITORY }}:${{ steps.generate_tag.outputs.RELEASE_VERSION }}
113+
build-args: |
114+
VERSION=${{ steps.generate_tag.outputs.RELEASE_VERSION }}
115+
COMMIT=${{ github.sha }}
116+
BUILD_DATE=${{ steps.prep.outputs.created }}
109117
labels: |
110118
org.opencontainers.image.source=${{ github.event.repository.clone_url }}
111119
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
@@ -152,6 +160,10 @@ jobs:
152160
platforms: linux/amd64,linux/arm,linux/arm64
153161
tags: |
154162
${{ env.GHCR_IMAGE_REPOSITORY }}:${{ steps.generate_tag.outputs.RELEASE_VERSION }},${{ env.GHCR_IMAGE_REPOSITORY }}:latest
163+
build-args: |
164+
VERSION=${{ steps.generate_tag.outputs.RELEASE_VERSION }}
165+
COMMIT=${{ github.sha }}
166+
BUILD_DATE=${{ steps.prep.outputs.created }}
155167
labels: |
156168
org.opencontainers.image.source=${{ github.event.repository.clone_url }}
157169
org.opencontainers.image.created=${{ steps.prep.outputs.created }}

.vale.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
StylesPath = styles
22
MinAlertLevel = warning
33

4-
Packages = https://github.com/stakater/vale-package/releases/download/v0.0.62/Stakater.zip
4+
Packages = https://github.com/stakater/vale-package/releases/download/v0.0.87/Stakater.zip
55
Vocab = Stakater
66

77
# Only check MarkDown files

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Code of Conduct
22

3-
Reloader follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md).
3+
Reloader follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md).

Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@ ARG BUILDER_IMAGE
22
ARG BASE_IMAGE
33

44
# Build the manager binary
5-
FROM --platform=${BUILDPLATFORM} ${BUILDER_IMAGE:-golang:1.24.4} AS builder
5+
FROM --platform=${BUILDPLATFORM} ${BUILDER_IMAGE:-golang:1.24.9} AS builder
66

77
ARG TARGETOS
88
ARG TARGETARCH
99
ARG GOPROXY
1010
ARG GOPRIVATE
1111

12+
ARG COMMIT
13+
ARG VERSION
14+
ARG BUILD_DATE
15+
1216
WORKDIR /workspace
1317

1418
# Copy the Go Modules manifests
@@ -30,7 +34,10 @@ RUN CGO_ENABLED=0 \
3034
GOPROXY=${GOPROXY} \
3135
GOPRIVATE=${GOPRIVATE} \
3236
GO111MODULE=on \
33-
go build -mod=mod -a -o manager main.go
37+
go build -ldflags="-s -w -X github.com/stakater/Reloader/pkg/common.Version=${VERSION} \
38+
-X github.com/stakater/Reloader/pkg/common.Commit=${COMMIT} \
39+
-X github.com/stakater/Reloader/pkg/common.BuildDate=${BUILD_DATE}" \
40+
-installsuffix 'static' -mod=mod -a -o manager ./
3441

3542
# Use distroless as minimal base image to package the manager binary
3643
# Refer to https://github.com/GoogleContainerTools/distroless for more details

Dockerfile-docs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN python theme_common/scripts/combine_mkdocs_config_yaml.py theme_common/mkdoc
1717
# build the docs
1818
RUN mkdocs build
1919

20-
FROM nginxinc/nginx-unprivileged:1.27-alpine as deploy
20+
FROM nginxinc/nginx-unprivileged:1.29-alpine as deploy
2121
COPY --from=builder $HOME/application/site/ /usr/share/nginx/html/reloader/
2222
COPY docs-nginx.conf /etc/nginx/conf.d/default.conf
2323

0 commit comments

Comments
 (0)