Skip to content

Commit b17ab58

Browse files
authored
Fixes #2162: Added a new Makefile target called podman-push. Developers using podman can push their images to their repo by using this convenient target (#2163)
Signed-off-by: Ganesh Murthy <gmurthy@apache.org>
1 parent 6a81e6f commit b17ab58

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ podman-build: $(patsubst Dockerfile.%,podman-build-%,$(CONTAINERFILES))
7070
podman-build-%: Dockerfile.%
7171
${PODMAN} build $(SHARED_IMAGE_LABELS) -t "${REGISTRY}/$*:${IMAGE_TAG}" -f $< .
7272

73+
# Push all container images built by podman-build
74+
podman-push: $(patsubst Dockerfile.%,podman-push-%,$(CONTAINERFILES))
75+
76+
# Pattern rule to push individual images
77+
podman-push-%: podman-build-%
78+
${PODMAN} push "${REGISTRY}/$*:${IMAGE_TAG}"
79+
7380

7481
## multi-platform container images built in docker buildkit builder and
7582
# exported to oci archive format.

0 commit comments

Comments
 (0)