Commit 9c0ab81 1 parent 103623c commit 9c0ab81 Copy full SHA for 9c0ab81
File tree 2 files changed +17
-13
lines changed
images/centos/scripts/build
2 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ patch_runner() {
18
18
git clone -q ${RUNNERREPO}
19
19
cd runner
20
20
git checkout main -b build
21
- git apply /imagegeneration/runner-sdk-8.patch
21
+ git apply --allow-empty /imagegeneration/runner-sdk-8.patch
22
22
sed -i' ' -e /version/s/8......\" $/8.0.100\" / src/global.json
23
23
return $?
24
24
}
@@ -29,17 +29,17 @@ build_runner() {
29
29
cd src
30
30
31
31
msg " dev layout"
32
- ./dev.sh layout Release linux- ${ARCH}
32
+ ./dev.sh layout Release
33
33
34
34
if [ $? -eq 0 ]; then
35
35
msg " dev package"
36
- ./dev.sh package Release linux- ${ARCH}
36
+ ./dev.sh package Release
37
37
38
38
if [ $? -eq 0 ]; then
39
39
msg " Finished building runner binary"
40
40
41
41
msg " Running tests"
42
- ./dev.sh test Release linux- ${ARCH}
42
+ ./dev.sh test Release
43
43
fi
44
44
fi
45
45
Original file line number Diff line number Diff line change @@ -9,15 +9,19 @@ source "$HELPER_SCRIPTS/install.sh"
9
9
SRC=$( readlink -f " ${BASH_SOURCE[0]} " )
10
10
DIR=$( dirname " ${SRC} " )
11
11
12
- if [[ " $ARCH " == " ppc64le" || " $ARCH " == " s390x" ]]; then
12
+ if [[ " $ARCH " == " ppc64le" || " $ARCH " == " s390x" || " $ARCH " == " x86_64 " ]]; then
13
13
sudo sh -c " ${DIR} /configure-runner.sh"
14
- else
15
- # Download the runner package
16
- download_url=$( resolve_github_release_asset_url " actions/runner" ' test("actions-runner-linux-x64-[0-9]+\\.[0-9]+\\.[0-9]+\\.tar\\.gz$")' " latest" )
17
- archive_name=" ${download_url##*/ } "
18
- archive_path=$( download_with_retry " $download_url " )
14
+ # else
15
+ # # Download the runner package
16
+ # download_url=$(resolve_github_release_asset_url "actions/runner" 'test("actions-runner-linux-x64-[0-9]+\\.[0-9]+\\.[0-9]+\\.tar\\.gz$")' "latest")
17
+ # archive_name="${download_url##*/}"
18
+ # archive_path=$(download_with_retry "$download_url")
19
19
20
- # Create directory and move the downloaded file
21
- mkdir -p /opt/runner-cache
22
- mv " $archive_path " " /opt/runner-cache/$archive_name "
20
+ # echo "Installing runner"
21
+ # sudo mkdir -p /opt/runner
22
+ # sudo tar -xf "$archive_path" -C /opt/runner
23
+ # if [ $? -eq 0 ]; then
24
+ # sudo chown runner:runner -R /opt/runner
25
+ # sudo -u runner /opt/runner/config.sh --version
26
+ # fi
23
27
fi
You can’t perform that action at this time.
0 commit comments