-
Notifications
You must be signed in to change notification settings - Fork 102
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
Pass default env variables set by github to the docker #19
Comments
Environment variables are passed down to the action container, which you can verify from the job logs:
This docker container action creates your container using: https://github.com/addnab/docker-run-action/blob/main/entrypoint.sh#L11 - uses: addnab/docker-run-action@v3
with:
image: alpine:latest
options: -v ${{ github.workspace }}:/home -e FOO -e GITHUB_REF
run: |
echo foo $FOO
echo REF $GITHUB_REF
env:
FOO: BAR |
Got it, thanks |
@pangteypiyush hi, have u tried your method with gh actions variables? I mean to pass |
@orihomie this?
|
Yes, I offer to move to #21 |
I would like to use the default env vars set by the Github Actions as defined here - https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables - in the docker. Right now, these are not being set. It can be verified by executing
printenv
in the shell.The text was updated successfully, but these errors were encountered: