'Parametrizing base image version in Dockerfile of Docker container Github action
I am following "Creating a Docker container action" and everything works great for me except that I would like to parametrize FROM field in my Dockerfile (I need to run CI tests against different versions of dependency, packaged as Docker image).
Ideally, in my Dockerfile, I'd like to use ARG or something something similar to:
ARG version=latest
FROM alpine:${version}
...
... but it is unclear how to pass build args.
Is there a way to something like this?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
