Skip to content

Commit 707d714

Browse files
authored
feat: Add if conditions to release pipeline (#24)
1 parent dadd6a9 commit 707d714

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/release.yml

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4242

4343
- name: Setup Docker buildx
44+
if: steps.release.outputs.new_release_published == 'true'
4445
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
4546

4647
- name: Log in to the Container registry
@@ -54,6 +55,7 @@ jobs:
5455

5556
- name: Docker meta
5657
uses: docker/metadata-action@dbef88086f6cef02e264edb7dbf63250c17cef6c # v5.5.0
58+
if: steps.release.outputs.new_release_published == 'true'
5759
id: meta
5860
with:
5961
images: |

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ RUN apt-get update \
3434
&& rm -rf /var/lib/apt/lists/*
3535

3636
FROM deps-kube AS deps-yq
37-
ENV YQ_VERSION="${ENV_YQ_VERSION:-v4.30.6}"
37+
ENV YQ_VERSION="v4.30.6"
3838
ENV YQ_BINARY="yq_linux_amd64"
3939
RUN wget https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/${YQ_BINARY}.tar.gz -O - | tar xz && mv ${YQ_BINARY} /usr/bin/yq
4040

0 commit comments

Comments
 (0)