-
Notifications
You must be signed in to change notification settings - Fork 8
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
first shot at testing build matrices #6
Conversation
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
I anticipated this bug (and it happened) so I need to fix that : vsoch/uptodate#19 |
likely we will need something more detailed in the future, e.g., to check that a buildarg has a default or not (and allow those that have defaults) but for now since lets just skip all Dockerfile with build args for docker list Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
okay that worked! Next I'll need to actually parse those build args :P |
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
That worked!
So next I think the action should also output a suggested container name, e.g. ubuntu-clang (some tag)? @davidbeckingsale what do you think should be our naming convention? I was thinking it would be easy enough to derive the container name from the path, e.g.,
And then in the GitHub action the user can combine that with a registry, e.g., here would be:
But what we need to figure out is how to specify what the tag is. In the case of the build matrix, since we have one or more build args and there isn't a primary one, we would need a strategy to ensure unique names. if we include every build arg, the container names are going to get really long. I'm going outside now for a bit but if you read this before I get back let me know your thoughts! Either we come up with an automated strategy, or ask the person in the config file to specify one of the build args to be the version of interest (and perhaps this would reduce the size of the matrix if we build fewer combinations that would be redundant). Or we nix the build matrix and require explicit pairs of things (e.g., instead of all combinations of List A and B, we just pair up A and B. You can take a look at the current builds above (e.g., the files too) to see a simple matrix (which is going to get much more complicated!) |
okay some ideas after thinking on my walk/run:
I'll chew on these ideas a bit - I guess based on the current repos it seems like the middle one (having pairs of variables) is what matches best now, but having a conversation about what are the needs of the teams that use these bases would be useful here. |
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
c842ad5
to
9c58481
Compare
okay updated the titles in the steps above to show the start of the directory and build args (so it's easier to see what is being done!) |
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
I'm going to merge this for now since we at least have working containers - it would be nice to have a working build cache but we can address that later. |
this is a first try to test a real use case of docker build matrices, as discussed:
https://vsoch.github.io/uptodate/docs/#/user-guide/user-guide?id=docker-build
Likely I'll need a bit of iteration before this is ready to merge, as it's the first time I'm really using my own action in this context :p
Signed-off-by: vsoch vsoch@users.noreply.github.com