mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
refactor(release): rename version.sh to plan-version.sh
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
+4
-4
@@ -3,7 +3,7 @@
|
||||
Every release is tagged `v<version>`, 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<version>`, 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user