Skip to content

Commit

Permalink
add setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
MialLewis committed Dec 15, 2023
1 parent 9fc5b2f commit 2de7e9b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
12 changes: 11 additions & 1 deletion runner/ansible/roles/runner/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
- name: Copy setup script to host
copy:
src: setup/setup.sh
dest: /tmp/setup/setup.sh
mode: '0755'


- name: Deploy dockerized github runner
community.docker.docker_container:
name: "{{ runner_name }}"
Expand All @@ -7,4 +14,7 @@
network_mode: host
recreate: yes
pull: yes
shm_size: 512M
shm_size: 512M
volumes:
- /tmp/setup/setup.sh:/home/setup.sh
command: /home/setup.sh
7 changes: 7 additions & 0 deletions runner/ansible/setup/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#! /bin/bash
set -ex
mkdir actions-runner && cd actions-runner
curl -o actions-runner-linux-x64-2.311.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.311.0/actions-runner-linux-x64-2.311.0.tar.gz
tar xzf ./actions-runner-linux-x64-2.311.0.tar.gz
./config.sh --url https://github.com/mantidproject/vesuvio --token AWZQ65UVPZUA3LFSZDMHE4DFPSK5O
./run.sh

0 comments on commit 2de7e9b

Please sign in to comment.