From 2956929817ff2d79b1c6325a1c7fe064b39ccd89 Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Fri, 30 Oct 2026 15:46:05 +0100 Subject: [PATCH] refactor(release): rename version.sh to plan-version.sh --- .editorconfig | 2 +- .github/workflows/build.yaml | 2 +- .github/workflows/main.yaml | 2 +- .github/workflows/nightly.yaml | 2 +- .github/workflows/release.yaml | 4 ++-- RELEASE.md | 8 ++++---- scripts/{version.sh => plan-version.sh} | 0 7 files changed, 10 insertions(+), 10 deletions(-) rename scripts/{version.sh => plan-version.sh} (100%) diff --git a/.editorconfig b/.editorconfig index 165f6e8c5a..7a5dc5155b 100644 --- a/.editorconfig +++ b/.editorconfig @@ -20,7 +20,7 @@ indent_size = 4 [{release.json,upstream.json}] indent_style = tab -[scripts/{clean-manifests,release,sync-cdn,undo-release,version}.sh] +[scripts/{clean-manifests,plan-version,release,sync-cdn,undo-release}.sh] indent_style = tab binary_next_line = true switch_case_indent = true diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6c3fb93ea6..14fd0b042a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -47,7 +47,7 @@ jobs: BRANCH: ${{ github.base_ref || github.ref_name }} PULL_REQUEST: ${{ github.event.pull_request.number }} run: | - coolify="$(scripts/version.sh --build)" + coolify="$(scripts/plan-version.sh --build)" echo "coolify=$coolify" >> "$GITHUB_OUTPUT" build: diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 7baf0e0fc9..a3ef53d687 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -42,7 +42,7 @@ jobs: MAIN_VERSION="$(jq -r '.["org.opencontainers.image.version"] // empty' <<< "$labels")" MAIN_REVISION="$(jq -r '.["org.opencontainers.image.revision"] // empty' <<< "$labels")" export MAIN_VERSION MAIN_REVISION - build="$(scripts/version.sh --main)" + build="$(scripts/plan-version.sh --main)" echo "build=$build" | tee -a "$GITHUB_OUTPUT" build: diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index 3dd8f8d088..86a49459d1 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -42,7 +42,7 @@ jobs: NIGHTLY_VERSION="$(jq -r '.["org.opencontainers.image.version"] // empty' <<< "$labels")" NIGHTLY_REVISION="$(jq -r '.["org.opencontainers.image.revision"] // empty' <<< "$labels")" export NIGHTLY_VERSION NIGHTLY_REVISION - nightly="$(scripts/version.sh --nightly)" + nightly="$(scripts/plan-version.sh --nightly)" echo "nightly=$nightly" | tee -a "$GITHUB_OUTPUT" build: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7d0d06af1a..468ed9cda3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -45,7 +45,7 @@ jobs: env: BRANCH: ${{ github.ref_name }} run: | - releases="$(scripts/version.sh --release)" + releases="$(scripts/plan-version.sh --release)" echo "releases=$releases" | tee -a "$GITHUB_OUTPUT" build: @@ -150,7 +150,7 @@ jobs: env: GH_TOKEN: ${{ github.token }} run: | - tags="$(scripts/version.sh --tags)" + tags="$(scripts/plan-version.sh --tags)" echo "tags=$tags" >> "$GITHUB_OUTPUT" jq -r 'to_entries[] | "\(.key) \(.value)"' <<< "$tags" | while read -r tag release; do for repository in ghcr.io/coollabsio/coolify docker.io/coollabsio/coolify; do diff --git a/RELEASE.md b/RELEASE.md index 0115f3d599..e6a471457b 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -3,7 +3,7 @@ Every release is tagged `v`, such as `v4.6.0-beta.1`, and publishes the image with the tag `4.6.0-beta.1` on ghcr.io and Docker Hub. > [!IMPORTANT] -> A push that changes `release.json` releases the version it sets, unless that version is released already. Run `scripts/version.sh` first to see what a push releases. +> A push that changes `release.json` releases the version it sets, unless that version is released already. Run `scripts/plan-version.sh` first to see what a push releases. ## Rules @@ -39,7 +39,7 @@ Every release is tagged `v`, such as `v4.6.0-beta.1`, and publishes the 2. Check what the branch releases: ```sh - scripts/version.sh + scripts/plan-version.sh ``` 3. Select the stage and the version, the script commits them and asks to push: @@ -136,7 +136,7 @@ The nightly workflow publishes a nightly twice a day when its branch has a new c - N counts up per day and base - No git tag and no GitHub release, only its image tag, the moving `nightly` tag and the nightly channel of the CDN -Print what the next run publishes with `scripts/version.sh --nightly`. +Print what the next run publishes with `scripts/plan-version.sh --nightly`. ## Main builds @@ -144,7 +144,7 @@ The main workflow builds `main` twice a day when it changed since the last build - ghcr.io only, no version tag, no git tag, no GitHub release and no channel of the CDN -Print what the next run builds with `scripts/version.sh --main`. +Print what the next run builds with `scripts/plan-version.sh --main`. ## Pull requests diff --git a/scripts/version.sh b/scripts/plan-version.sh similarity index 100% rename from scripts/version.sh rename to scripts/plan-version.sh