Skip to content

Commit 86f33de

Browse files
committed
feedback
1 parent 7df32ae commit 86f33de

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

.github/workflows/release.yaml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ on:
66
# restricting it to only Major Versions 0,1,2
77
- 'v[012].[0-9]+.[0-9]+'
88

9+
env:
10+
DOCKER_FILE_PATH: Dockerfile
11+
DOCKER_UBI_FILE_PATH: Dockerfile.ubi
12+
KUBERNETES_VERSION: "1.19.0"
13+
KIND_VERSION: "0.17.0"
14+
REGISTRY: ghcr.io
15+
916
jobs:
1017
build:
1118
name: GoReleaser build
@@ -91,7 +98,6 @@ jobs:
9198
file: ${{ env.DOCKER_FILE_PATH }}
9299
pull: true
93100
push: true
94-
build-args: BUILD_PARAMETERS=${{ env.BUILD_PARAMETERS }}
95101
cache-to: type=inline
96102
platforms: linux/amd64,linux/arm,linux/arm64
97103
tags: |
@@ -109,7 +115,6 @@ jobs:
109115
pull: true
110116
push: true
111117
build-args: |
112-
BUILD_PARAMETERS=${{ env.BUILD_PARAMETERS }}
113118
BUILDER_IMAGE=${{ env.DOCKER_IMAGE_REPOSITORY }}:${{ steps.generate_tag.outputs.RELEASE_VERSION }}
114119
cache-to: type=inline
115120
platforms: linux/amd64,linux/arm64
@@ -139,7 +144,6 @@ jobs:
139144
file: ${{ env.DOCKER_FILE_PATH }}
140145
pull: true
141146
push: true
142-
build-args: BUILD_PARAMETERS=${{ env.BUILD_PARAMETERS }}
143147
cache-to: type=inline
144148
platforms: linux/amd64,linux/arm,linux/arm64
145149
tags: |
@@ -157,7 +161,6 @@ jobs:
157161
pull: true
158162
push: true
159163
build-args: |
160-
BUILD_PARAMETERS=${{ env.BUILD_PARAMETERS }}
161164
BUILDER_IMAGE=${{ env.GHCR_IMAGE_REPOSITORY }}:${{ steps.generate_tag.outputs.RELEASE_VERSION }}
162165
cache-to: type=inline
163166
platforms: linux/amd64,linux/arm64
@@ -168,6 +171,20 @@ jobs:
168171
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
169172
org.opencontainers.image.revision=${{ github.sha }}
170173
174+
- uses: dorny/paths-filter@v3
175+
id: filter
176+
with:
177+
filters: |
178+
docs:
179+
- '.markdownlint.yaml'
180+
- '.vale.ini'
181+
- 'Dockerfile-docs'
182+
- 'docs-nginx.conf'
183+
- 'docs/**'
184+
- 'README.md'
185+
- 'theme_common'
186+
- 'theme_override'
187+
171188
- name: Build and Push Docker Image for Docs to ghcr registry
172189
if: steps.filter.outputs.docs == 'true'
173190
uses: docker/build-push-action@v5
@@ -176,7 +193,6 @@ jobs:
176193
file: Dockerfile-docs
177194
pull: true
178195
push: true
179-
build-args: BUILD_PARAMETERS=${{ env.BUILD_PARAMETERS }}
180196
cache-to: type=inline
181197
tags: |
182198
${{ env.GHCR_IMAGE_REPOSITORY }}/docs:${{ steps.generate_tag.outputs.RELEASE_VERSION }}

0 commit comments

Comments
 (0)