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

Add update certificates to ./run.sh if RUNNER_UPDATE_CA_CERTS env is set #2471

Merged
merged 10 commits into from
Mar 8, 2023
6 changes: 5 additions & 1 deletion images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,8 @@ COPY --chown=runner:docker --from=build /actions-runner .

RUN install -o root -g root -m 755 docker/* /usr/bin/ && rm -rf docker

USER runner
USER runner

COPY entrypoint.sh .

ENTRYPOINT [ "./entrypoint.sh" ]
nikola-jokic marked this conversation as resolved.
Show resolved Hide resolved
6 changes: 6 additions & 0 deletions images/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# update ca certificates if they are injected with a volume mount
sudo update-ca-certificates
nikola-jokic marked this conversation as resolved.
Show resolved Hide resolved

exec ./run.sh $*