add proxy support
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Starting Proxy Support"
|
||||
socat TCP-LISTEN:8118,reuseaddr,fork UNIX-CLIENT:/tmp/forward-proxy/proxy.sock &
|
||||
sudo iptables -A INPUT -p tcp -s localhost --dport 8118 -j ACCEPT
|
||||
sudo iptables -A INPUT -p tcp --dport 8118 -j DROP
|
||||
|
||||
echo "Starting supervisor (Docker)"
|
||||
sudo service docker start
|
||||
|
||||
#bash
|
||||
|
||||
if [ -n "${GITHUB_REPOSITORY}" ]
|
||||
then
|
||||
auth_url="https://api.github.com/repos/${GITHUB_OWNER}/${GITHUB_REPOSITORY}/actions/runners/registration-token"
|
||||
|
||||
Reference in New Issue
Block a user