Skip to content

Commit c334471

Browse files
authored
Merge pull request #41 from slagle/push-targets
Add build-push and package-push targets
2 parents 1b89f50 + c803cfc commit c334471

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
@@ -42,6 +42,10 @@ build: output/yum.repos.d
4242
sudo buildah inspect ${EDPM_BOOTC_IMAGE} > /dev/null && exit 0 || true
4343
sudo buildah bud -f ${EDPM_CONTAINERFILE} -t ${EDPM_BOOTC_IMAGE} .
4444

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

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

0 commit comments

Comments
 (0)