File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ VERSION_MAJOR_MINOR := $(shell echo $(VERSION_MAJOR_MINOR_PATCH) | cut -f 1,2 -d
9
9
VERSION_MAJOR := $(shell echo $(VERSION_MAJOR_MINOR ) | cut -f 1 -d '.')
10
10
COMMIT := $(shell git rev-parse --short HEAD)
11
11
MAKEFILE := $(ROOTDIR ) /Makefile
12
+ UBI := registry.access.redhat.com/ubi8/ubi-minimal:8.0
12
13
13
14
ifndef NODOCKER
14
15
DOCKERCLI := $(shell which docker)
@@ -92,7 +93,7 @@ docker: check-vars build
92
93
docker push $(DOCKERIMAGE ) -$$ arch ; \
93
94
done
94
95
for arch in amd64; do \
95
- sed -e ' s|FROM scratch|FROM registry.access.redhat.com/ubi8/ubi-minimal:8.0 |' Dockerfile.scratch > Dockerfile.ubi ; \
96
+ sed -e ' s|FROM scratch|FROM $(UBI) |' Dockerfile.scratch > Dockerfile.ubi ; \
96
97
docker build --build-arg=GOARCH=$$ arch -t $(DOCKERIMAGE ) -ubi -f Dockerfile.ubi . ; \
97
98
rm -f Dockerfile.ubi ; \
98
99
docker push $(DOCKERIMAGE ) -ubi ; \
You can’t perform that action at this time.
0 commit comments