added deployment check
Some checks failed
Build and Deploy Container / build_and_deploy (push) Failing after 40s

This commit is contained in:
Clemens Hering
2025-11-10 19:06:44 +01:00
parent 14dadbbbae
commit 10d0fd0c98

View File

@@ -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: |