Skip to content

Commit e9abee7

Browse files
committed
moved to UBI
1 parent 751f76d commit e9abee7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ VERSION_MAJOR_MINOR := $(shell echo $(VERSION_MAJOR_MINOR_PATCH) | cut -f 1,2 -d
99
VERSION_MAJOR := $(shell echo $(VERSION_MAJOR_MINOR) | cut -f 1 -d '.')
1010
COMMIT := $(shell git rev-parse --short HEAD)
1111
MAKEFILE := $(ROOTDIR)/Makefile
12+
UBI := registry.access.redhat.com/ubi8/ubi-minimal:8.0
1213

1314
ifndef NODOCKER
1415
DOCKERCLI := $(shell which docker)
@@ -92,7 +93,7 @@ docker: check-vars build
9293
docker push $(DOCKERIMAGE)-$$arch ; \
9394
done
9495
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 ; \
9697
docker build --build-arg=GOARCH=$$arch -t $(DOCKERIMAGE)-ubi -f Dockerfile.ubi . ; \
9798
rm -f Dockerfile.ubi ; \
9899
docker push $(DOCKERIMAGE)-ubi ; \

0 commit comments

Comments
 (0)