We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2143e9 commit 8b73e2bCopy full SHA for 8b73e2b
magefile.go
@@ -999,12 +999,17 @@ func (Docker) Image() error {
999
1000
// Push pushs an image created by docker:image to the registry.
1001
// FIPS may be used to push a FIPS capable image.
1002
+// DOCKER_IMAGE may be used to specify the image name.
1003
// DOCKER_IMAGE_TAG may be used to specify the image tag.
1004
func (Docker) Push() error {
1005
image := dockerImage
1006
if isFIPS() {
1007
image += "-fips"
1008
}
1009
+ if v, ok := os.LookupEnv(envDockerImage); ok && v != "" {
1010
+ image = v
1011
+ }
1012
+
1013
version := getVersion()
1014
if v, ok := os.LookupEnv(envDockerTag); ok && v != "" {
1015
version = v
0 commit comments