Skip to content

Commit

Permalink
fix init script
Browse files Browse the repository at this point in the history
  • Loading branch information
arielly-parussulo committed Apr 28, 2023
1 parent a22cb30 commit 74e9d02
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62818,11 +62818,13 @@ function buildUserDataScript(githubRegistrationToken, label) {
return [
'#!/bin/bash',
'mkdir actions-runner && cd actions-runner',
'case $(uname -m) in aarch64) ARCH="arm64" ;; amd64|x86_64) ARCH="x64" ;; esac && export RUNNER_ARCH=${ARCH}',
'case $(uname -m) in aarch64|arm64) ARCH="arm64" ;; amd64|x86_64) ARCH="x64" ;; esac && export RUNNER_ARCH=${ARCH}',
'case $(uname -a) in Darwin*) OS="osx" ;; Linux*) OS="linux" ;; esac && export RUNNER_OS=${OS}',
'export VERSION="2.303.0"',
'curl -O -L https://github.com/actions/runner/releases/download/${VERSION}/actions-runner-${RUNNER_OS}-${RUNNER_ARCH}-${VERSION}.tar.gz',
'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-${VERSION}.tar.gz',
'curl -O -L https://github.com/actions/runner/releases/download/v${VERSION}/actions-runner-${RUNNER_OS}-${RUNNER_ARCH}-${VERSION}.tar.gz',
'export LC_ALL=en_US.UTF-8',
'export LANG=en_EN.UTF-8',
'tar xzf ./actions-runner-${RUNNER_OS}-${RUNNER_ARCH}-${VERSION}.tar.gz',
'export RUNNER_ALLOW_RUNASROOT=1',
`./config.sh --url ${config.github.url} --token ${githubRegistrationToken} --labels ${label} --name ${label} --runnergroup default --work $(pwd)`,
'./run.sh',
Expand Down
8 changes: 5 additions & 3 deletions src/aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ function buildUserDataScript(githubRegistrationToken, label) {
return [
'#!/bin/bash',
'mkdir actions-runner && cd actions-runner',
'case $(uname -m) in aarch64) ARCH="arm64" ;; amd64|x86_64) ARCH="x64" ;; esac && export RUNNER_ARCH=${ARCH}',
'case $(uname -m) in aarch64|arm64) ARCH="arm64" ;; amd64|x86_64) ARCH="x64" ;; esac && export RUNNER_ARCH=${ARCH}',
'case $(uname -a) in Darwin*) OS="osx" ;; Linux*) OS="linux" ;; esac && export RUNNER_OS=${OS}',
'export VERSION="2.303.0"',
'curl -O -L https://github.com/actions/runner/releases/download/${VERSION}/actions-runner-${RUNNER_OS}-${RUNNER_ARCH}-${VERSION}.tar.gz',
'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-${VERSION}.tar.gz',
'curl -O -L https://github.com/actions/runner/releases/download/v${VERSION}/actions-runner-${RUNNER_OS}-${RUNNER_ARCH}-${VERSION}.tar.gz',
'export LC_ALL=en_US.UTF-8',
'export LANG=en_EN.UTF-8',
'tar xzf ./actions-runner-${RUNNER_OS}-${RUNNER_ARCH}-${VERSION}.tar.gz',
'export RUNNER_ALLOW_RUNASROOT=1',
`./config.sh --url ${config.github.url} --token ${githubRegistrationToken} --labels ${label} --name ${label} --runnergroup default --work $(pwd)`,
'./run.sh',
Expand Down

0 comments on commit 74e9d02

Please sign in to comment.