ENV interpolation within actions #26590
-
I’m trying to make a generic action to build a docker image and publish to GitHub Packages. I don’t want people futzing with the file, so I want to make use of ENV. Crazy, right?
I also tried defining the ENV at the top level as well, and that actually seemed to give me the same result.
This works locally. As it stands, github is telling me that my image needs an image name.
I very much am… Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Please add repository input in your
Based on my test, the value of |
Beta Was this translation helpful? Give feedback.
-
According to the action code https://github.com/docker/github-actions/blob/0f18e2abad9a4ac2963d2516246787375b5ec917/internal/options/tag.go#L31
When
|
Beta Was this translation helpful? Give feedback.
-
Thanks! |
Beta Was this translation helpful? Give feedback.
-
yanjingzhu:
Please see the explanation in my previous reply. |
Beta Was this translation helpful? Give feedback.
-
This solution no longer works due to changes in how GitHub handles environment variables |
Beta Was this translation helpful? Give feedback.
Please add repository input in your
docker/build-push-action@v1
step, like:Based on my te…