Skip to content

Commit

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


- name: Deploy dockerized github runner
community.docker.docker_container:
name: "{{ runner_name }}"
Expand All @@ -17,4 +16,9 @@
shm_size: 512M
volumes:
- /tmp/setup/setup.sh:/home/setup.sh
command: /home/setup.sh
command: /home/setup.sh

- name: Remove setup script
ansible.builtin.file:
path: setup/setup.sh
state: absent

0 comments on commit 4fddc86

Please sign in to comment.