42 Commits
Author SHA1 Message Date
Marcus Young a21f89e912 Fix de-registration 2022-04-18 09:49:38 -05:00
Marcus Young 9130b86b39 Fix disable auto update 2022-04-01 21:54:08 -05:00
Marcus Young b379dd3f69 Add DISABLE_AUTO_UPDATE flag to disable automatic updates 2022-02-03 09:30:51 -06:00
Kenta KaseandGitHub c6a72fbc37 Fix configure command when EPHEMERAL is disabled 2021-11-27 18:09:11 +09:00
Kenta KaseandGitHub a70242726e Support --ephemeral runner option 2021-11-24 09:18:49 +09:00
Gustav TonérandGitHub bd0658f528 Fix typo in entrypoint.sh log output 2021-09-22 13:24:20 +02:00
Marcus Young 282be6864b Fix deregistration hijacking 2021-09-15 10:23:46 -05:00
Joey Parrish 527cf6352b Fix runner deregistration with ACCESS_TOKEN
This fixes runner deregistration, which needs to have ACCESS_TOKEN still
defined to fetch a fresh RUNNER_TOKEN for deregistration.

The original purpose of unsetting the variables would seem to be for
security, to make sure they unavailable to the jobs running in the
container. Unexporting the variables achieves the same goal, but leaves
them available to the entrypoint later when it runs the deregistration
process.
2021-09-10 08:56:00 -07:00
Marcus Young 18f1c7deb6 Simplify runner reusage, add some output to show logic. Fix readme 2021-07-22 21:15:31 -05:00
NickVeld 14a7d53bab entrypoint: "return" -> "if-else" logic 2021-07-15 19:38:43 +03:00
NickVeld bd0d0df358 entrypoint: SC2068 fixed, func name fixed 2021-07-07 17:16:58 +03:00
NickVeld cd01122fd7 entrypoint: fi remove 2021-07-01 08:21:07 +03:00
NickVeld ca2a6d0828 entrypoint: explicit set with default, command exec into another func 2021-07-01 08:15:18 +03:00
NickVeld 09bfbcbd2a shellcheck passing 2021-06-27 06:31:01 +03:00
NickVeld 915a79ca56 Dockerfile, entrypoint: runner-reusage base 2021-06-25 05:36:26 +03:00
Marcus Young 8b5d4dc296 Deprecate ORG_RUNNER 2021-06-03 09:33:03 -05:00
Lucas Santisteban b8a72e6046 Select scope in a single variable
The backwards compatibility with ORG_RUNNER is ensured. If
RUNNER_SCOPE is present, it overrides what is imposed by ORG_RUNNER.
2021-06-01 11:32:11 +02:00
Lucas Santisteban 468f70079f Add compatibility with enterprise-scoped runner
https://docs.github.com/en/[email protected]/rest/reference/enterprise-admin#create-a-registration-token-for-an-enterprise
2021-05-14 20:19:02 +02:00
myoung34andGitHub 8569383c86 Merge pull request #100 from myoung34/docker_compose_arm
Dont install broken docker-compose on ARM
2021-03-23 07:42:23 -05:00
Marcus Young ce1b5c8a1d Add ability to override command in entrypoint 2021-03-23 07:31:27 -05:00
Marcus Young b4c496bc46 Add support for optional deregistration via DISABLE_AUTOMATIC_DEREGISTRATION flag 2021-03-23 06:01:37 -05:00
Kostas Dichalas eb996ec2b1 add support for Github Enterprise 2021-02-01 18:08:23 +00:00
Dan Webb f603773441 Add the option to configure the RUNNER_GROUP on startup
This adds the RUNNER_GROUP variable to configure which group the runner
is added to. Defaults to the "Default" runner group.
2020-10-23 09:43:24 +01:00
Benjamin Wood 2967d4144e Fix deregistration with dumb-init
This resolves the issue reported in #34 where deregistration fails
because docker is not passing SIGTERM to the entrypoint.
2020-09-17 15:27:41 -07:00
Marcus Young b5925ff5b0 add org runner for runner token 2020-08-19 12:05:44 -05:00
Marcus Young 79657c0cfb Add basic support for SIGTERM handling 2020-05-27 06:46:57 -05:00
Marcus Young a6273efaa7 Fix _PROTO when repo_url not given 2020-05-27 06:13:53 -05:00
Marcus Young 00385f520a Unset ACCESS_TOKEN|RUNNER_TOKEN after configure 2020-05-23 06:58:05 -05:00
Marcus Young c5cc7b13e9 Add random default name with prefix 2020-05-21 16:26:51 -05:00
Marcus Young 7cbfc6e980 Remove unneeded curl echo in entrypoint 2020-05-11 14:48:22 -05:00
Marcus Young 91f7cf870c Test runsvc vs run.sh 2020-05-11 14:40:44 -05:00
EduMelo 0257286b35 Remove redundant line 2020-04-27 01:47:58 +00:00
EduMelo e1ec889750 Fixed REPO_URL setting without ACCESS_TOKEN 2020-04-26 23:02:35 +00:00
Andrey AstashovandGitHub 9e7a193d7e Update entrypoint.sh
- Better formatting
- Added `--unattended` flag
2020-04-25 22:44:19 +03:00
Nick SweetingandGitHub 841ec18181 Fix inifinite loop on startup if runner was stopped and restarted 2020-04-25 03:15:07 -04:00
Marcus Young 5db78de6ca Add support for org runners with ORG_RUNNER=true,ORG_NAME=wut,LABELS=a,b env vars 2020-04-24 18:39:31 -05:00
Steven Pall 26e6724f11 Get RUNNER_TOKEN Automatically
- Add the ability to specify a personal access token to use for calling the new Actions API for a runner token
- Add `jq` and `docker-compose` to the `Dockerfile`
- Update `README.md`
2020-02-26 16:39:31 -08:00
Proton 4341b940d1 Bump to 2.164.0 2020-01-17 16:10:03 +08:00
Marcus Young 6e3d775606 Fix '--agent' -> '--name', add ability for arm64 builds 2019-12-23 11:10:05 -06:00
Marcus Young 84452405f4 Add linting, add version support 2019-11-21 17:57:56 -08:00
Marcus Young df3bcc5ea8 Add docker and sudo 2019-11-15 11:12:35 -06:00
Marcus Young c58535b273 Here be dragons 2019-11-15 07:38:24 -06:00