Skip to content

Are environment variables established in the Dockerfile available in actions workflow? #25127

Answered by a772bNsz
a772bNsz asked this question in Actions
Discussion options

You must be logged in to vote

Solved–environment variables set in the Dockerfile are available in actions workflow.

I created a new Dockerfile that referenced the one I linked to and added included an entrypoint script:

FROM mottosso/maya:2018
WORKDIR /root
COPY entrypoint.sh /root/entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]

In entrypoint.sh:

#!/bin/bash
set -e

echo ">>>> ENVIRONMENT VARIABLES"
env

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant