mirror of
https://github.com/Xe138/AI-Trader.git
synced 2026-04-15 22:37:24 -04:00
fix: correct YAML syntax error in docker-release workflow
Fixed line 70-71 where a literal newline in the bash script was
breaking YAML parsing. Changed from:
TAGS="$TAGS
ghcr.io/..."
To:
TAGS="${TAGS}"$'\n'"ghcr.io/..."
This uses bash's ANSI-C quoting syntax to properly insert a newline
within a single YAML line, avoiding the syntax error.
This commit is contained in:
3
.github/workflows/docker-release.yml
vendored
3
.github/workflows/docker-release.yml
vendored
@@ -67,8 +67,7 @@ jobs:
|
|||||||
|
|
||||||
# Only add 'latest' tag for stable releases
|
# Only add 'latest' tag for stable releases
|
||||||
if [[ "$IS_PRERELEASE" == "false" ]]; then
|
if [[ "$IS_PRERELEASE" == "false" ]]; then
|
||||||
TAGS="$TAGS
|
TAGS="${TAGS}"$'\n'"ghcr.io/$REPO_OWNER_LOWER/ai-trader:latest"
|
||||||
ghcr.io/$REPO_OWNER_LOWER/ai-trader:latest"
|
|
||||||
echo "Tagging as both $VERSION and latest"
|
echo "Tagging as both $VERSION and latest"
|
||||||
else
|
else
|
||||||
echo "Pre-release detected - tagging as $VERSION only (NOT latest)"
|
echo "Pre-release detected - tagging as $VERSION only (NOT latest)"
|
||||||
|
|||||||
Reference in New Issue
Block a user