File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 194
194
195
195
chmod +x /etc/systemd/system/shutdown.sh
196
196
197
+ mv /usr/bin/tail /usr/bin/tail.real && \
198
+ echo '#!/bin/bash' > /usr/bin/tail && \
199
+ echo 'if [ "$GITHUB_ACTIONS " = "true" ]; then' >> /usr/bin/tail && \
200
+ echo ' exec dumb-init /bin/tail.real "$@ "' >> /usr/bin/tail && \
201
+ echo 'else' >> /usr/bin/tail && \
202
+ echo ' exec /usr/bin/tail.real "$@ "' >> /usr/bin/tail && \
203
+ echo 'fi' >> /usr/bin/tail && \
204
+ chmod +x /usr/bin/tail
205
+
197
206
echo "Registering runners ${RUNNER_ID} -1 and ${RUNNER_ID} -2..."
198
207
su -s /bin/bash -c "cd /actions-runner-1/;/actions-runner-1/config.sh --url https://github.com/${GITHUB_REPOSITORY} --token ${RUNNER_TOKEN} --name ${RUNNER_ID} -1 --labels ${VM_ID} --unattended --disableupdate" runner
199
208
su -s /bin/bash -c "cd /actions-runner-2/;/actions-runner-2/config.sh --url https://github.com/${GITHUB_REPOSITORY} --token ${RUNNER_TOKEN} --name ${RUNNER_ID} -2 --labels ${VM_ID} --unattended --disableupdate" runner
You can’t perform that action at this time.
0 commit comments