Skip to content

Commit c803cfc

Browse files
committed
Add build-push and package-push targets
Targets are used to push the built images to a container registry. Signed-off-by: James Slagle <[email protected]>
1 parent db17840 commit c803cfc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bootc/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ build: output/yum.repos.d
4141
sudo buildah inspect ${EDPM_BOOTC_IMAGE} > /dev/null && exit 0 || true
4242
sudo buildah bud -f ${EDPM_CONTAINERFILE} -t ${EDPM_BOOTC_IMAGE} .
4343

44+
.PHONY: build-push
45+
build-push: build
46+
sudo podman push ${EDPM_BOOTC_IMAGE}
47+
4448
.PHONY: edpm-bootc.qcow2
4549
edpm-bootc.qcow2: build
4650
ls output/edpm-bootc.qcow2 && exit 0 || true
@@ -64,6 +68,10 @@ package: edpm-bootc.qcow2
6468
cd output
6569
sudo buildah bud --build-arg IMAGE_NAME=edpm-bootc -f ./Containerfile.image -t ${EDPM_QCOW2_IMAGE}
6670

71+
.PHONY: package-push
72+
package-push: package
73+
sudo podman push ${EDPM_QCOW2_IMAGE}
74+
6775
.PHONY: all
6876
all: build edpm-bootc.qcow2 package
6977

0 commit comments

Comments
 (0)