Closed Pospelove closed 3 weeks ago
[!IMPORTANT] Add GitHub workflow and Bash script to retrieve server logs based on branch and grep arguments. GitHub Workflow: Adds get-logs.yml for retrieving server logs with repository_dispatch and workflow_dispatch triggers. Supports inputs for branch and grep-arg. Uses actions/checkout@v4 to checkout the repository. Bash Script: Adds get_logs_from_server.sh to connect to a remote server and fetch logs. Validates environment variables and sets up SSH connection. Executes docker logs command, filtering with grep. Environment Setup: Uses secrets for SSH connection details. Handles errors with report_fail() function in the script. This description was created by for 57c72e10982c877c72f0bc6825b8bb16cbc69375. It will automatically update as commits are pushed.
[!IMPORTANT] Add GitHub workflow and Bash script to retrieve server logs based on branch and grep arguments.
get-logs.yml
repository_dispatch
workflow_dispatch
branch
grep-arg
actions/checkout@v4
get_logs_from_server.sh
docker logs
grep
report_fail()
This description was created by for 57c72e10982c877c72f0bc6825b8bb16cbc69375. It will automatically update as commits are pushed.