Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support --ephemeral option #161

Merged
merged 2 commits into from
Nov 24, 2021

Conversation

Kesin11
Copy link
Contributor

@Kesin11 Kesin11 commented Nov 24, 2021

fix: #148

Add EPHEMERAL environment variable to support --ephemeral option.

@joeyparrish refers also need to fix ephemeral_runner.sh, but it seems no problem with using default ENTRYPOINT and CMD.
I checked using this docker run command.

docker run --rm --name github-runner \
  -e RUNNER_NAME_PREFIX="ephemeral-docker" \
  -e ACCESS_TOKEN="${RUNNER_PAT}" \
  -e RUNNER_SCOPE="org" \
  -e ORG_NAME="${ORG}" \
  -e LABELS="container" \
  -e EPHEMERAL=1 \
  -v /var/run/docker.sock:/var/run/docker.sock \
  kesin11/docker-github-actions-runner:latest

@myoung34 myoung34 merged commit 569fdce into myoung34:master Nov 24, 2021
@myoung34
Copy link
Owner

Closes #148

@myoung34
Copy link
Owner

Thanks!

@Kesin11
Copy link
Contributor Author

Kesin11 commented Nov 25, 2021

Thanks all for the fast response and merge!

@Kesin11 Kesin11 deleted the support_ephemeral_option branch November 25, 2021 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support new --ephemeral flag in runner v2.282.0
2 participants