changes
This commit is contained in:
parent
8607b1be24
commit
225ccb6164
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -25,7 +25,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
script: |
|
||||
cd /home/geezo/docker_containers && \
|
||||
if ./restart_container.sh ${{ env.app_folder }}; then
|
||||
curl -H "Title: Docker Container Update" -H "Priority: high" -H "Tags: docker,success" -d "Successfully updated ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container"
|
||||
else
|
||||
curl -H "Title: Docker Container Update" -H "Priority: urgent" -H "Tags: docker,error" -d "Failed to update ${{ env.app_folder }} container" https://ntfy.geezo.site/docker
|
||||
./send_notification.sh -m "Failed to update ${{ env.app_folder }} container"
|
||||
fi
|
||||
57
send_notification.sh
Executable file
57
send_notification.sh
Executable file
@ -0,0 +1,57 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Default values
|
||||
TOKEN="a1gkitc5obmf5ak4xxgw1ewnuthn36"
|
||||
USER="u2a62kgzz844gxzw1cvkczhyvei62j"
|
||||
MESSAGE=""
|
||||
|
||||
# Help message
|
||||
show_help() {
|
||||
echo "Usage: $0 [options]"
|
||||
echo "Options:"
|
||||
echo " -t, --token Pushover API token (default: $TOKEN)"
|
||||
echo " -u, --user Pushover user key (default: $USER)"
|
||||
echo " -m, --message Message to send (required)"
|
||||
echo " -h, --help Show this help message"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Parse command line arguments
|
||||
while [[ $# -gt 0 ]]; do
|
||||
case $1 in
|
||||
-t|--token)
|
||||
TOKEN="$2"
|
||||
shift 2
|
||||
;;
|
||||
-u|--user)
|
||||
USER="$2"
|
||||
shift 2
|
||||
;;
|
||||
-m|--message)
|
||||
MESSAGE="$2"
|
||||
shift 2
|
||||
;;
|
||||
-h|--help)
|
||||
show_help
|
||||
;;
|
||||
*)
|
||||
echo "Unknown option: $1"
|
||||
show_help
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# Check if message is provided
|
||||
if [ -z "$MESSAGE" ]; then
|
||||
echo "Error: Message is required"
|
||||
show_help
|
||||
fi
|
||||
|
||||
# Send the notification
|
||||
curl -s \
|
||||
--form-string "token=$TOKEN" \
|
||||
--form-string "user=$USER" \
|
||||
--form-string "message=$MESSAGE" \
|
||||
https://api.pushover.net/1/messages.json
|
||||
|
||||
echo
|
||||
Loading…
Reference in New Issue
Block a user