From 6c6e02ce692502b398f033a78e9527cdbe4ca7c7 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sat, 14 Feb 2026 10:51:01 -0500 Subject: [PATCH 1/2] ci(docker): fix environment name and url --- .github/workflows/__call-docker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/__call-docker.yml b/.github/workflows/__call-docker.yml index 226b8cc8..00f19a76 100644 --- a/.github/workflows/__call-docker.yml +++ b/.github/workflows/__call-docker.yml @@ -125,8 +125,8 @@ jobs: packages: write runs-on: ubuntu-22.04 environment: - name: docker-${{ matrix.tag }} - url: https://hub.docker.com/r/${{ needs.check_dockerfiles.outputs.base_tag }}/tags?name=-${{ matrix.tag }} + name: docker${{ matrix.tag }} + url: https://hub.docker.com/r/${{ needs.check_dockerfiles.outputs.base_tag }}/tags?name=${{ matrix.tag }} strategy: fail-fast: false matrix: ${{ fromJson(needs.check_dockerfiles.outputs.matrix) }} From a92f27829ae716702395aa9dd64284d60e826378 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sat, 14 Feb 2026 10:55:22 -0500 Subject: [PATCH 2/2] Make workflow environment conditional on publish input Only set environment.name and environment.url when inputs.publish_release == 'true'. Replace unconditional docker environment values with formatted expressions that return null otherwise, avoiding creation of an environment/link when not publishing releases. Uses format(...) and &&/|| fallback to keep behavior identical when publishing. --- .github/workflows/__call-docker.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/__call-docker.yml b/.github/workflows/__call-docker.yml index 00f19a76..6398c909 100644 --- a/.github/workflows/__call-docker.yml +++ b/.github/workflows/__call-docker.yml @@ -125,8 +125,19 @@ jobs: packages: write runs-on: ubuntu-22.04 environment: - name: docker${{ matrix.tag }} - url: https://hub.docker.com/r/${{ needs.check_dockerfiles.outputs.base_tag }}/tags?name=${{ matrix.tag }} + name: >- + ${{ + inputs.publish_release == 'true' && + format('docker{0}', matrix.tag) || + null + }} + url: >- + ${{ + inputs.publish_release == 'true' && + format('https://hub.docker.com/r/{0}/tags?name={1}', + needs.check_dockerfiles.outputs.base_tag, matrix.tag) || + null + }} strategy: fail-fast: false matrix: ${{ fromJson(needs.check_dockerfiles.outputs.matrix) }}