Retrieve environment variable within building action #26984
-
Hello, I’m building a custom action based on Dockerfile and i would like to pass all the environment variables received to my container build-in action
The build-in action looks like :
How can i get the Env Var SLACK_WEBHOOK_URL, DYNAMIC_VAR and others into my running action container without using defined inputs. Thank you for your support. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @olivierodo , The step env will be added to the action docker container environment variable , you could just use $SLACK_WEBHOOK_URL and $DYNAMIC_VAR to get the value in entrypoint.sh My example entrypoint.sh:
|
Beta Was this translation helpful? Give feedback.
Hi @olivierodo ,
The step env will be added to the action docker container environment variable , you could just use
$SLACK_WEBHOOK_URL and $DYNAMIC_VAR to get the value in entrypoint.sh
My example entrypoint.sh: