Go to file
David Holdeman 53ba3f0644
Switch to Ubuntu 22.04 and latest Runner release
Github is now using 22.04 for `ubuntu-latest`
I don't understand how Ubuntu does releases, but apparently 21.04 doesn't have a release anymore, so apt commands were failing. Do they just remove the release from the package server if it's not LTS? 22.04 is LTS so it should stick around I guess?
2023-01-21 11:39:38 -06:00
Dockerfile Switch to Ubuntu 22.04 and latest Runner release 2023-01-21 11:39:38 -06:00
README.md added label support using LABELS env variable 2021-11-17 16:38:26 -07:00
start.sh added label support using LABELS env variable 2021-11-17 16:38:26 -07:00

README.md

rusefi-ci

This dockerfile will automatically download and configure the github actions self-hosted runner

To run, first build the image with:

docker build -t rusefi-ci .

Then run the newly built image passing OWNER, REPO, and REG_TOKEN (time-limited github actions registration token)

docker run --detach \
 --ENV OWNER=ZHoob2004 \
 --ENV REPO=rusefi \
 --ENV REG_TOKEN=<PUT YO TOKEN HERE> \
 --ENV LABELS="linux,self-hosted" \
 rusefi-ci

Note: the LABELS environment variable is optional, and if omitted will use the default labels as determined by the github runner.

Add --restart=unless-stopped in order to have the container survive reboots

The container uses a persistent volume mounted at /opt/actions-runner. After initial startup, the container will skip registration unless the peristent volume is erased.