From 16e8094cdd27683a1e038e0eb67aa88c0eddbb78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serhat=20And=C4=B1=C3=A7?= Date: Wed, 25 Nov 2026 16:05:40 +0300 Subject: [PATCH 1/2] Consolidate tools setup, add release policy gate, and automate versioned tag publishing --- .github/actions/setup-tools/action.yml | 27 +++++ .../workflows/publish_docker_images_cron.yml | 27 ++--- .../publish_docker_images_on_manual.yml | 56 +++++---- .../publish_docker_images_on_push.yml | 79 ++++++++++--- .../publish_docker_images_on_tag.yml | 44 +++++--- .github/workflows/update_version.yml | 106 +++++++++++++----- pkgvars | 1 + 7 files changed, 244 insertions(+), 96 deletions(-) create mode 100644 .github/actions/setup-tools/action.yml diff --git a/.github/actions/setup-tools/action.yml b/.github/actions/setup-tools/action.yml new file mode 100644 index 0000000..b4df866 --- /dev/null +++ b/.github/actions/setup-tools/action.yml @@ -0,0 +1,27 @@ +name: Setup citusdata/tools +description: Clone citusdata/tools outside the checkout and install packaging_automation dependencies + +inputs: + tools_ref: + description: Immutable citusdata/tools git tag to clone + required: false + default: "v0.8.42" + +runs: + using: composite + steps: + - name: Install system dependencies + shell: bash + run: sudo apt-get update && sudo apt-get install -y --no-install-recommends libcurl4-openssl-dev libssl-dev python3-testresources + + - name: Clone citusdata/tools and install Python requirements + shell: bash + env: + TOOLS_REF: ${{ inputs.tools_ref }} + run: | + tools_root="${RUNNER_TEMP:?RUNNER_TEMP must be set}/citus-tools" + rm -rf "${tools_root}" + git clone --branch "${TOOLS_REF}" --depth 1 -- https://github.com/citusdata/tools.git "${tools_root}/tools" + python -m pip install -r "${tools_root}/tools/packaging_automation/requirements.txt" + echo "TOOLS_PATH=${tools_root}" >> "${GITHUB_ENV}" + echo "PYTHONPATH=${tools_root}${PYTHONPATH:+:${PYTHONPATH}}" >> "${GITHUB_ENV}" diff --git a/.github/workflows/publish_docker_images_cron.yml b/.github/workflows/publish_docker_images_cron.yml index 58dc88f..9c31e06 100644 --- a/.github/workflows/publish_docker_images_cron.yml +++ b/.github/workflows/publish_docker_images_cron.yml @@ -6,9 +6,6 @@ on: push: branches: - "**" -env: - DOCKERHUB_USER_NAME: ${{ secrets.DOCKERHUB_USER_NAME }} - DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} jobs: build_and_publish_images: @@ -32,23 +29,21 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Clone tools branch - run: git clone -b v0.8.38 --depth=1 https://github.com/citusdata/tools.git tools - - - name: Install package dependencies - run: sudo apt-get update && sudo apt install libcurl4-openssl-dev libssl-dev python3-testresources - - - name: Install python requirements - run: python -m pip install -r tools/packaging_automation/requirements.txt + - name: Setup tools + uses: ./.github/actions/setup-tools - name: DockerHub Login - run: docker login -u "${DOCKERHUB_USER_NAME}" -p "${DOCKERHUB_PASSWORD}" + env: + DOCKERHUB_USER_NAME: ${{ secrets.DOCKERHUB_USER_NAME }} + DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} + run: echo "${DOCKERHUB_PASSWORD}" | docker login -u "${DOCKERHUB_USER_NAME}" --password-stdin - name: Build and publish docker images env: DOCKER_BUILD_MULTI_ARCH: ${{ github.ref == 'refs/heads/master' && '1' || '0' }} + IMAGE_TYPE: ${{ matrix.image_type }} run: | - python -m tools.packaging_automation.publish_docker \ - --pipeline_trigger_type "${GITHUB_EVENT_NAME}" \ - --github_ref "${GITHUB_REF}" \ - --image_type "${{ matrix.image_type }}" + python -m tools.packaging_automation.publish_docker \ + --pipeline_trigger_type "${GITHUB_EVENT_NAME}" \ + --github_ref "${GITHUB_REF}" \ + --image_type "${IMAGE_TYPE}" diff --git a/.github/workflows/publish_docker_images_on_manual.yml b/.github/workflows/publish_docker_images_on_manual.yml index af17559..6f3868b 100644 --- a/.github/workflows/publish_docker_images_on_manual.yml +++ b/.github/workflows/publish_docker_images_on_manual.yml @@ -1,17 +1,19 @@ name: On Demand (Manual) Docker Image Build -env: - DOCKERHUB_USER_NAME: ${{ secrets.DOCKERHUB_USER_NAME }} - DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} - on: workflow_dispatch: inputs: trigger_type: - description: "Type of build which you want to trigger. Allowed values: main, tags, nightly" + description: "Type of build to trigger" + type: choice required: true + options: + - main + - tags + - nightly tag_name: - description: "The tag name on the project repo to be released. It is mandatory if you select the trigger_type as 'tags'" + description: "Tag name to release (required when trigger_type is 'tags')" + type: string required: false default: "" @@ -21,9 +23,14 @@ jobs: runs-on: ubuntu-24.04 strategy: fail-fast: false + matrix: + image_type: ${{ fromJSON(inputs.trigger_type == 'nightly' && '["nightly"]' || '["latest", "alpine", "postgres_17", "postgres_16", "nightly"]') }} steps: - name: Checkout repository uses: actions/checkout@v6 + with: + fetch-depth: ${{ inputs.trigger_type == 'tags' && '0' || '1' }} + ref: ${{ inputs.trigger_type == 'tags' && 'master' || '' }} - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -31,24 +38,33 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Clone tools branch - run: git clone -b v0.8.38 --depth=1 https://github.com/citusdata/tools.git tools - - - name: Install package dependencies - run: sudo apt-get update && sudo apt install libcurl4-openssl-dev libssl-dev python3-testresources - - - name: Install python requirements - run: python -m pip install -r tools/packaging_automation/requirements.txt + - name: Setup tools + uses: ./.github/actions/setup-tools - name: DockerHub Login - run: docker login -u "${DOCKERHUB_USER_NAME}" -p "${DOCKERHUB_PASSWORD}" + env: + DOCKERHUB_USER_NAME: ${{ secrets.DOCKERHUB_USER_NAME }} + DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} + run: echo "${DOCKERHUB_PASSWORD}" | docker login -u "${DOCKERHUB_USER_NAME}" --password-stdin - name: Build and publish docker images env: DOCKER_BUILD_MULTI_ARCH: "1" + TRIGGER_TYPE: ${{ inputs.trigger_type }} + TAG_NAME: ${{ inputs.tag_name }} + IMAGE_TYPE: ${{ matrix.image_type }} run: | - python -m tools.packaging_automation.publish_docker \ - --pipeline_trigger_type "${GITHUB_EVENT_NAME}" \ - --tag_name "${{ github.event.inputs.tag_name }}" \ - --manual_trigger_type "${{ github.event.inputs.trigger_type }}" \ - --github_ref "${GITHUB_REF}" + target_ref="${GITHUB_REF}" + if [ "${TRIGGER_TYPE}" = "tags" ]; then + [[ "${TAG_NAME}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] || { echo "::error::Valid tag_name (vX.Y.Z) is required when trigger_type is 'tags'"; exit 1; } + target_ref="refs/tags/${TAG_NAME}" + git checkout --quiet "${target_ref}" + elif [ "${TRIGGER_TYPE}" = "main" ] && [ -n "${TAG_NAME}" ]; then + echo "::error::tag_name must be empty when trigger_type is 'main'"; exit 1 + fi + python -m tools.packaging_automation.publish_docker \ + --pipeline_trigger_type "${GITHUB_EVENT_NAME}" \ + --tag_name "${TAG_NAME}" \ + --manual_trigger_type "${TRIGGER_TYPE}" \ + --github_ref "${target_ref}" \ + --image_type "${IMAGE_TYPE}" diff --git a/.github/workflows/publish_docker_images_on_push.yml b/.github/workflows/publish_docker_images_on_push.yml index 6d45ecd..c38a493 100644 --- a/.github/workflows/publish_docker_images_on_push.yml +++ b/.github/workflows/publish_docker_images_on_push.yml @@ -1,13 +1,17 @@ name: Build Docker Image On Push (Both Tags and Branches) -env: - DOCKERHUB_USER_NAME: ${{ secrets.DOCKERHUB_USER_NAME }} - DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} +permissions: + contents: read + +concurrency: + group: publish-docker-on-push-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} on: push: branches: - "**" + jobs: build_and_publish_images: runs-on: ubuntu-24.04 @@ -30,23 +34,66 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Clone tools branch - run: git clone -b v0.8.38 --depth=1 https://github.com/citusdata/tools.git tools - - - name: Install package dependencies - run: sudo apt-get update && sudo apt install libcurl4-openssl-dev libssl-dev python3-testresources - - - name: Install python requirements - run: python -m pip install -r tools/packaging_automation/requirements.txt + - name: Setup tools + uses: ./.github/actions/setup-tools - name: DockerHub Login - run: docker login -u "${DOCKERHUB_USER_NAME}" -p "${DOCKERHUB_PASSWORD}" + env: + DOCKERHUB_USER_NAME: ${{ secrets.DOCKERHUB_USER_NAME }} + DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} + run: echo "${DOCKERHUB_PASSWORD}" | docker login -u "${DOCKERHUB_USER_NAME}" --password-stdin - name: Build and publish docker images env: DOCKER_BUILD_MULTI_ARCH: ${{ github.ref == 'refs/heads/master' && '1' || '0' }} + IMAGE_TYPE: ${{ matrix.image_type }} run: | - python -m tools.packaging_automation.publish_docker \ - --github_ref "${GITHUB_REF}" \ - --pipeline_trigger_type "${GITHUB_EVENT_NAME}" \ - --image_type "${{ matrix.image_type }}" + python -m tools.packaging_automation.publish_docker \ + --github_ref "${GITHUB_REF}" \ + --pipeline_trigger_type "${GITHUB_EVENT_NAME}" \ + --image_type "${IMAGE_TYPE}" + + tag_release: + needs: build_and_publish_images + if: github.ref == 'refs/heads/master' + runs-on: ubuntu-24.04 + permissions: + contents: write + outputs: + should_publish: ${{ steps.tag.outputs.should_publish }} + tag_name: ${{ steps.tag.outputs.tag_name }} + steps: + - name: Checkout repository + uses: actions/checkout@v6 + + - name: Create release tag if missing + id: tag + run: | + version=$(sed -n 's/^ARG VERSION=\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[[:space:]]*$/\1/p' Dockerfile | head -n 1) + [ -n "${version}" ] || { echo "::error::Could not parse ARG VERSION=X.Y.Z from Dockerfile"; exit 1; } + tag="v${version}" + existing_refs=$(git ls-remote --tags origin "refs/tags/${tag}" "refs/tags/${tag}^{}") + if [ -n "${existing_refs}" ]; then + tag_commit=$(printf '%s\n' "${existing_refs}" | awk '$2 ~ /\^\{\}$/ {c=$1} !c {c=$1} END {print c}') + if [ "${tag_commit}" != "${GITHUB_SHA}" ]; then + echo "Tag ${tag} already exists at ${tag_commit}; skipping." + echo "should_publish=false" >> "${GITHUB_OUTPUT}" + exit 0 + fi + echo "Tag ${tag} already points to ${GITHUB_SHA}; proceeding to versioned publish." + else + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git tag -a "${tag}" "${GITHUB_SHA}" -m "Release ${tag}" + git push origin "refs/tags/${tag}" + fi + echo "should_publish=true" >> "${GITHUB_OUTPUT}" + echo "tag_name=${tag}" >> "${GITHUB_OUTPUT}" + + publish_tagged_images: + needs: tag_release + if: needs.tag_release.outputs.should_publish == 'true' + uses: ./.github/workflows/publish_docker_images_on_tag.yml + with: + tag_name: ${{ needs.tag_release.outputs.tag_name }} + secrets: inherit diff --git a/.github/workflows/publish_docker_images_on_tag.yml b/.github/workflows/publish_docker_images_on_tag.yml index 80a9c5c..5213b24 100644 --- a/.github/workflows/publish_docker_images_on_tag.yml +++ b/.github/workflows/publish_docker_images_on_tag.yml @@ -1,13 +1,19 @@ name: Build Docker Image On Tag Push -env: - DOCKERHUB_USER_NAME: ${{ secrets.DOCKERHUB_USER_NAME }} - DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} +permissions: + contents: read on: push: tags: - "v[0-9]+.[0-9]+.[0-9]+" + workflow_call: + inputs: + tag_name: + description: "Release tag to build and publish (e.g. v14.3.0)" + required: true + type: string + jobs: build_and_publish_images: runs-on: ubuntu-24.04 @@ -33,23 +39,29 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Clone tools branch - run: git clone -b v0.8.38 --depth=1 https://github.com/citusdata/tools.git tools - - - name: Install package dependencies - run: sudo apt-get update && sudo apt install libcurl4-openssl-dev libssl-dev python3-testresources - - - name: Install python requirements - run: python -m pip install -r tools/packaging_automation/requirements.txt + - name: Setup tools + uses: ./.github/actions/setup-tools - name: DockerHub Login - run: docker login -u "${DOCKERHUB_USER_NAME}" -p "${DOCKERHUB_PASSWORD}" + env: + DOCKERHUB_USER_NAME: ${{ secrets.DOCKERHUB_USER_NAME }} + DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} + run: echo "${DOCKERHUB_PASSWORD}" | docker login -u "${DOCKERHUB_USER_NAME}" --password-stdin - name: Build and publish docker images env: DOCKER_BUILD_MULTI_ARCH: "1" + INPUT_TAG_NAME: ${{ inputs.tag_name }} + IMAGE_TYPE: ${{ matrix.image_type }} run: | - python -m tools.packaging_automation.publish_docker \ - --github_ref "${GITHUB_REF}" \ - --pipeline_trigger_type "${GITHUB_EVENT_NAME}" \ - --image_type "${{ matrix.image_type }}" + if [ -n "${INPUT_TAG_NAME}" ]; then + [[ "${INPUT_TAG_NAME}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] || { echo "::error::Invalid tag_name '${INPUT_TAG_NAME}'"; exit 1; } + target_ref="refs/tags/${INPUT_TAG_NAME}" + else + target_ref="${GITHUB_REF}" + fi + git checkout --quiet "${target_ref}" + python -m tools.packaging_automation.publish_docker \ + --github_ref "${target_ref}" \ + --pipeline_trigger_type push \ + --image_type "${IMAGE_TYPE}" diff --git a/.github/workflows/update_version.yml b/.github/workflows/update_version.yml index 2c83a94..6eaf957 100644 --- a/.github/workflows/update_version.yml +++ b/.github/workflows/update_version.yml @@ -1,17 +1,23 @@ name: Update Version on Docker Files -env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} - POSTGRES_VERSION: ${{ github.event.inputs.postgres_version }} - permissions: - contents: write + contents: read on: workflow_dispatch: inputs: - project_version: - description: "Version number to be released e.g 10.0.3" + source_tag: + description: "Citus source tag (e.g. v14.3.0)" + type: string + required: true + deb_version: + description: "Debian package version (e.g. 14.3.0.citus-1)" + type: string + required: true + force_docker: + description: "Allow patch/off-line releases (passes --explicitly_requested)" + type: boolean + default: false microsoft_email: description: "Email to be written on changelogs" default: "ihalatci@microsoft.com" @@ -24,9 +30,6 @@ jobs: name: "Update docker files" runs-on: ubuntu-24.04 steps: - - name: Checkout repository - uses: actions/checkout@v6 - - name: Generate GitHub App token id: app-token uses: actions/create-github-app-token@v3 @@ -35,29 +38,76 @@ jobs: private-key: ${{ secrets.GH_APP_KEY }} owner: citusdata - - name: Export App token to environment + - name: Checkout repository + uses: actions/checkout@v6 + with: + token: ${{ steps.app-token.outputs.token }} + + - name: Check release policy and read pkgvars + id: policy + env: + SOURCE_TAG: ${{ inputs.source_tag }} + DEB_VERSION: ${{ inputs.deb_version }} + FORCE_DOCKER: ${{ inputs.force_docker }} run: | - echo "GH_TOKEN=${{ steps.app-token.outputs.token }}" >> "$GITHUB_ENV" - echo "GITHUB_TOKEN=${{ steps.app-token.outputs.token }}" >> "$GITHUB_ENV" + if [[ "${SOURCE_TAG}" =~ ^v([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then + major="${BASH_REMATCH[1]}" + patch="${BASH_REMATCH[3]}" + elif [[ "${SOURCE_TAG}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+([_-]|[a-zA-Z]).*$ ]]; then + if [ "${FORCE_DOCKER}" = "true" ]; then + echo "::error::Prerelease tag '${SOURCE_TAG}' is not eligible for Docker releases" + exit 1 + fi + echo "Skipping Docker update: prerelease tag '${SOURCE_TAG}' is not eligible." + echo "should_run=false" >> "${GITHUB_OUTPUT}" + exit 0 + else + echo "::error::Invalid source_tag '${SOURCE_TAG}'; expected vX.Y.Z" + exit 1 + fi - - name: Install package dependencies - run: sudo apt-get update && sudo apt install libcurl4-openssl-dev libssl-dev python3-testresources + citus_series=$(sed -n 's/^citus_series=\([0-9][0-9]*\)[[:space:]]*$/\1/p' pkgvars | head -n 1) + [ -n "${citus_series}" ] || { echo "::error::Missing citus_series in pkgvars"; exit 1; } - - name: Clone tools branch - run: git clone -b v0.8.36 --depth=1 https://github.com/citusdata/tools.git tools + if [ "${FORCE_DOCKER}" != "true" ] && { [ "${major}" != "${citus_series}" ] || [ "${patch}" != "0" ]; }; then + echo "Skipping Docker update: '${SOURCE_TAG}' (series=${major}, patch=${patch}, active citus_series=${citus_series})." + echo "should_run=false" >> "${GITHUB_OUTPUT}" + exit 0 + fi - - name: Set git name and email - run: | - git config --global user.email "${{ github.event.inputs.microsoft_email }}" && \ - git config --global user.name "${{ github.event.inputs.name }}" + [ -n "${DEB_VERSION}" ] || { echo "::error::deb_version must not be empty"; exit 1; } + pg_versions=$(sed -n 's/^postgres_[0-9][0-9]*_version=\([0-9][0-9]*\.[0-9][0-9]*\)[[:space:]]*$/\1/p' pkgvars | sort -V | paste -sd,) + [ -n "${pg_versions}" ] || { echo "::error::No stable postgres__version entries in pkgvars"; exit 1; } + + echo "should_run=true" >> "${GITHUB_OUTPUT}" + echo "pg_versions=${pg_versions}" >> "${GITHUB_OUTPUT}" - - name: Install python requirements - run: export PYTHONPATH="$(pwd)/tools" && python -m pip install -r tools/packaging_automation/requirements.txt + - name: Setup tools + if: steps.policy.outputs.should_run == 'true' + uses: ./.github/actions/setup-tools - name: Update docker files + if: steps.policy.outputs.should_run == 'true' + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} + SOURCE_TAG: ${{ inputs.source_tag }} + DEB_VERSION: ${{ inputs.deb_version }} + FORCE_DOCKER: ${{ inputs.force_docker }} + PG_VERSIONS: ${{ steps.policy.outputs.pg_versions }} + GIT_USER_EMAIL: ${{ inputs.microsoft_email }} + GIT_USER_NAME: ${{ inputs.name }} run: | - python -m tools.packaging_automation.update_docker \ - --prj_ver ${{ github.event.inputs.project_version }} \ - --gh_token "${GH_TOKEN}" \ - --pipeline \ - --exec_path "$(pwd)" + git config user.email "${GIT_USER_EMAIL}" + git config user.name "${GIT_USER_NAME}" + extra_args=() + if [ "${FORCE_DOCKER}" = "true" ]; then + extra_args=(--explicitly_requested) + fi + PYTHONPATH="${TOOLS_PATH}" python -m tools.packaging_automation.update_docker \ + --source_tag "${SOURCE_TAG}" \ + --deb_version "${DEB_VERSION}" \ + --postgres_versions "${PG_VERSIONS}" \ + "${extra_args[@]}" \ + --gh_token "${GH_TOKEN}" \ + --pipeline \ + --exec_path "$(pwd)" diff --git a/pkgvars b/pkgvars index e5dc14b..cb475ed 100644 --- a/pkgvars +++ b/pkgvars @@ -1,3 +1,4 @@ +citus_series=14 postgres_19_version=19beta3 postgres_18_version=18.4 postgres_17_version=17.10 From 9fbdf0d1715bdfc32a1c7dbf2ebf086a23081188 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serhat=20And=C4=B1=C3=A7?= Date: Thu, 26 Nov 2026 12:22:13 +0300 Subject: [PATCH 2/2] Enforce numeric major series bounds in update_version policy gate --- .github/workflows/update_version.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update_version.yml b/.github/workflows/update_version.yml index 6eaf957..ba50e2b 100644 --- a/.github/workflows/update_version.yml +++ b/.github/workflows/update_version.yml @@ -15,7 +15,7 @@ on: type: string required: true force_docker: - description: "Allow patch/off-line releases (passes --explicitly_requested)" + description: "Allow active-series patch releases (passes --explicitly_requested)" type: boolean default: false microsoft_email: @@ -69,8 +69,23 @@ jobs: citus_series=$(sed -n 's/^citus_series=\([0-9][0-9]*\)[[:space:]]*$/\1/p' pkgvars | head -n 1) [ -n "${citus_series}" ] || { echo "::error::Missing citus_series in pkgvars"; exit 1; } - if [ "${FORCE_DOCKER}" != "true" ] && { [ "${major}" != "${citus_series}" ] || [ "${patch}" != "0" ]; }; then - echo "Skipping Docker update: '${SOURCE_TAG}' (series=${major}, patch=${patch}, active citus_series=${citus_series})." + if (( 10#${major} > 10#${citus_series} )); then + echo "::error::Release '${SOURCE_TAG}' (series ${major}) is newer than active citus_series=${citus_series} in pkgvars; update citus_series and supported PG majors in pkgvars first" + exit 1 + fi + + if (( 10#${major} < 10#${citus_series} )); then + if [ "${FORCE_DOCKER}" = "true" ]; then + echo "::error::Release '${SOURCE_TAG}' (series ${major}) is older than active citus_series=${citus_series} in pkgvars; older series cannot be published to master" + exit 1 + fi + echo "Skipping Docker update: older series '${SOURCE_TAG}' (series=${major}, active citus_series=${citus_series})." + echo "should_run=false" >> "${GITHUB_OUTPUT}" + exit 0 + fi + + if [ "${FORCE_DOCKER}" != "true" ] && (( 10#${patch} != 0 )); then + echo "Skipping Docker update: patch release '${SOURCE_TAG}' requires force_docker=true." echo "should_run=false" >> "${GITHUB_OUTPUT}" exit 0 fi