Fix: replace heredoc with echo for YAML compatibility
All checks were successful
Build and Deploy / deploy (push) Successful in 12s
All checks were successful
Build and Deploy / deploy (push) Successful in 12s
This commit is contained in:
parent
1e49b66e5c
commit
c374133e91
1 changed files with 1 additions and 4 deletions
|
|
@ -34,10 +34,7 @@ jobs:
|
||||||
tar --exclude='.git' --exclude='.forgejo' -czf - . | ssh $SERVER "cd ${DEPLOY_PATH} && tar -xzf -"
|
tar --exclude='.git' --exclude='.forgejo' -czf - . | ssh $SERVER "cd ${DEPLOY_PATH} && tar -xzf -"
|
||||||
|
|
||||||
# .env Datei für docker-compose erstellen
|
# .env Datei für docker-compose erstellen
|
||||||
ssh $SERVER "cat > ${DEPLOY_PATH}/.env << EOF
|
ssh $SERVER "echo 'APP_NAME=${APP_NAME}' > ${DEPLOY_PATH}/.env && echo 'DOMAIN=${DOMAIN}' >> ${DEPLOY_PATH}/.env"
|
||||||
APP_NAME=${APP_NAME}
|
|
||||||
DOMAIN=${DOMAIN}
|
|
||||||
EOF"
|
|
||||||
|
|
||||||
# Anwendung deployen
|
# Anwendung deployen
|
||||||
ssh $SERVER "cd ${DEPLOY_PATH} && docker compose up -d --build --force-recreate"
|
ssh $SERVER "cd ${DEPLOY_PATH} && docker compose up -d --build --force-recreate"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue