diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index ae15017..3ffe754 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -75,14 +75,14 @@ jobs: - name: Build container on target host run: | # Expand $APP_DIR locally so the remote shell receives the concrete path - ssh $TARGET_USER@$TARGET_HOST "set -euo pipefail; echo -e '$APP_DIR \n\n' cd '$APP_DIR' && echo 'PWD:' \$(pwd) && ls -la . && podman build -t $CONTAINER_NAME:latest ." + ssh $TARGET_USER@$TARGET_HOST "set -euo pipefail; echo -e '$APP_DIR \n\n'; cd '$APP_DIR' && echo 'PWD:' \$(pwd) && ls -la . && podman build -t $CONTAINER_NAME:latest ." - name: Backup Quadlet file run: | - ssh $TARGET_USER@$TARGET_HOST ' + ssh $TARGET_USER@$TARGET_HOST " test -f ~/.config/containers/systemd/$CONTAINER_NAME.container && \ cp ~/.config/containers/systemd/$CONTAINER_NAME.container ~/.config/containers/systemd/$CONTAINER_NAME.container.bak || true - ' + " - name: Replace Quadlet file run: |