Skip to content

Commit

Permalink
update user data
Browse files Browse the repository at this point in the history
  • Loading branch information
arielly-parussulo committed Apr 27, 2023
1 parent 4fca327 commit 755f5fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62819,8 +62819,10 @@ function buildUserDataScript(githubRegistrationToken, label) {
'#!/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}',
'curl -O -L https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-linux-${RUNNER_ARCH}-2.299.1.tar.gz',
'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-2.299.1.tar.gz',
'case $(uname -r) 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/v2.303.0/actions-runner-${RUNNER_OS}-${RUNNER_ARCH}-${VERSION}.tar.gz',
'tar xzf ./actions-runner-linux-${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
6 changes: 4 additions & 2 deletions src/aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ function buildUserDataScript(githubRegistrationToken, label) {
'#!/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}',
'curl -O -L https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-linux-${RUNNER_ARCH}-2.299.1.tar.gz',
'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-2.299.1.tar.gz',
'case $(uname -r) 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/v2.303.0/actions-runner-${RUNNER_OS}-${RUNNER_ARCH}-${VERSION}.tar.gz',
'tar xzf ./actions-runner-linux-${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 755f5fc

Please sign in to comment.