mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
fix: Improve base64 encoding of compose and template files
This commit is contained in:
parent
f4450ca57d
commit
b9c73f462e
4
.github/workflows/base64-templates.yml
vendored
4
.github/workflows/base64-templates.yml
vendored
@ -35,8 +35,8 @@ jobs:
|
||||
TEMPLATE_FILE="$dir/template.yml"
|
||||
|
||||
if [ -f "$COMPOSE_FILE" ] && [ -f "$TEMPLATE_FILE" ]; then
|
||||
COMPOSE_CONTENT=$(cat "$COMPOSE_FILE")
|
||||
TEMPLATE_CONTENT=$(cat "$TEMPLATE_FILE")
|
||||
COMPOSE_CONTENT=$(jq -Rs . < "$COMPOSE_FILE")
|
||||
TEMPLATE_CONTENT=$(jq -Rs . < "$TEMPLATE_FILE")
|
||||
|
||||
JSON="{\"compose\":\"$COMPOSE_CONTENT\",\"config\":\"$TEMPLATE_CONTENT\"}"
|
||||
BASE64_JSON=$(echo -n "$JSON" | base64 -w 0)
|
||||
|
Loading…
Reference in New Issue
Block a user