added deployment check
Some checks failed
Build and Deploy Container / build_and_deploy (push) Failing after 28s
Some checks failed
Build and Deploy Container / build_and_deploy (push) Failing after 28s
This commit is contained in:
@@ -89,5 +89,13 @@ jobs:
|
|||||||
scp ./$QUADLET_FILE $TARGET_USER@$TARGET_HOST:~/.config/containers/systemd/
|
scp ./$QUADLET_FILE $TARGET_USER@$TARGET_HOST:~/.config/containers/systemd/
|
||||||
ssh $TARGET_USER@$TARGET_HOST '
|
ssh $TARGET_USER@$TARGET_HOST '
|
||||||
systemctl --user daemon-reload
|
systemctl --user daemon-reload
|
||||||
systemctl --user restart $CONTAINER_NAME.service
|
systemctl --user restart $CONTAINER_NAME
|
||||||
|
'
|
||||||
|
|
||||||
|
- name: Verify deployment
|
||||||
|
run: |
|
||||||
|
ssh $TARGET_USER@$TARGET_HOST '
|
||||||
|
podman ps --filter "name=$CONTAINER_NAME" --format "table {{.Names}}\t{{.Image}}\t{{.Status}}"
|
||||||
|
echo "Container logs:"
|
||||||
|
podman logs $CONTAINER_NAME --tail 20
|
||||||
'
|
'
|
||||||
Reference in New Issue
Block a user