-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed startup script to use proper user and permissions and installed…
… Git and Curl
- Loading branch information
Showing
4 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
FROM ghcr.io/actions/actions-runner:latest | ||
|
||
COPY ./setup.sh . | ||
USER root | ||
RUN chmod +x ./setup.sh | ||
USER runner | ||
CMD ["./setup.sh"] | ||
RUN sudo apt update -y && sudo apt install git curl -y | ||
|
||
COPY ./runner.sh . | ||
CMD ["./runner.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
./config.sh --url https://github.com/${REPOSITORY_PATH} --token ${RUNNER_ACCESS_TOKEN} --name ${RUNNER_NAME} --unattended | ||
|
||
sudo ./bin/runsvc.sh |