Skip to content

[Feature Request] Build args support in Docker container actions #25241

Discussion options

You must be logged in to vote

A work around until the feature is implemented is that we use the docker image that creates the action as handrails to create the image that we really want with all the arguments we need.
Basically what we have to do is create a docker image in the entrypoint.sh and run it.

entrypoint.sh example:

#!/bin/sh -l

ALPINE_VERSION=$1

cd docker-action
echo "creating docker image with alpine version: $ALPINE_VERSION"

here we can make the construction of the image as customizable as we need

and if we need parameterizable values ​​it is a matter of sending them as inputs

docker build -t docker-action --build-arg alpine_version="$ALPINE_VERSION" . && docker run docker-action

For the entrypoint.sh to…

Replies: 20 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@collinkleest
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@nemith
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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