ci: publish an image for every pull request

- version.sh --build appends the -pr.<number> suffix
This commit is contained in:
peaklabs-dev
2026-11-01 19:37:39 +01:00
parent 49590cf959
commit 2615559b5e
4 changed files with 64 additions and 1 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ set -euo pipefail
OPTION="$*"
BRANCH="${BRANCH:-}"
PULL_REQUEST="${PULL_REQUEST:-}"
VERSION_FILE=release.json
ARTIFACT=coolify
UPSTREAM_FILE=upstream.json
@@ -40,7 +41,7 @@ read_version() {
version="$(artifact_version "$channel")"
[ -n "$version" ] || die "$VERSION_FILE has no $channel version of $ARTIFACT"
if [ "$OPTION" = --build ]; then
echo "$version"
echo "$version${PULL_REQUEST:+-pr.$PULL_REQUEST}"
exit 0
fi
}