self hosted runner pipeline
parent
0727a97fdd
commit
8e356f212d
|
|
@ -21,8 +21,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
lfs: false
|
lfs: false
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Configure AWS Credentials
|
- name: Configure AWS Credentials
|
||||||
uses: aws-actions/configure-aws-credentials@v1
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
with:
|
with:
|
||||||
|
|
@ -45,10 +45,9 @@ jobs:
|
||||||
export RUNNER_ALLOW_RUNASROOT="1"
|
export RUNNER_ALLOW_RUNASROOT="1"
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -qy unzip curl libdigest-sha-perl apt-transport-https libicu-dev jq git git-lfs
|
apt-get install -qy unzip curl libdigest-sha-perl apt-transport-https libicu-dev jq git git-lfs
|
||||||
mkdir -p $BUILD_GUID/actions-runner && cd $BUILD_GUID/actions-runner
|
mkdir -p $BUILD_GUID/actions-runner
|
||||||
curl -o actions-runner-linux-x64-2.289.2.tar.gz -L https://github.com/actions/runner/releases/download/v2.289.2/actions-runner-linux-x64-2.289.2.tar.gz
|
[ ! -f actions-runner-linux-x64-2.289.2.tar.gz ] && curl -o actions-runner-linux-x64-2.289.2.tar.gz -L https://github.com/actions/runner/releases/download/v2.289.2/actions-runner-linux-x64-2.289.2.tar.gz && echo "7ba89bb75397896a76e98197633c087a9499d4c1db7603f21910e135b0d0a238 actions-runner-linux-x64-2.289.2.tar.gz" | shasum -a 256 -c && tar xzf ./actions-runner-linux-x64-2.289.2.tar.gz -C ./$BUILD_GUID/actions-runner
|
||||||
echo "7ba89bb75397896a76e98197633c087a9499d4c1db7603f21910e135b0d0a238 actions-runner-linux-x64-2.289.2.tar.gz" | shasum -a 256 -c
|
cd $BUILD_GUID/actions-runner
|
||||||
tar xzf ./actions-runner-linux-x64-2.289.2.tar.gz
|
|
||||||
repo="game-ci/unity-builder"
|
repo="game-ci/unity-builder"
|
||||||
TOKEN=$(curl -X POST -H "Authorization: Bearer $GIT_PRIVATE_TOKEN" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/$repo/actions/runners/registration-token | jq -r .token)
|
TOKEN=$(curl -X POST -H "Authorization: Bearer $GIT_PRIVATE_TOKEN" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/$repo/actions/runners/registration-token | jq -r .token)
|
||||||
./config.sh --url https://github.com/$repo --token $TOKEN --ephemeral
|
./config.sh --url https://github.com/$repo --token $TOKEN --ephemeral
|
||||||
|
|
@ -60,8 +59,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
lfs: false
|
lfs: false
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Configure AWS Credentials
|
- name: Configure AWS Credentials
|
||||||
uses: aws-actions/configure-aws-credentials@v1
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue