Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Commit d413da8

Browse files
Merge pull request #74 from feichashao/ci_build
Change skopeo-push to podman-push
2 parents 54505f4 + 22226d8 commit d413da8

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

Makefile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,14 @@ build-package:
4747
$(CONTAINER_ENGINE) build -t $(PKO_IMG):$(PKO_IMAGETAG) -f $(join $(CURDIR),/hack/hypershift/package/hypershift-logging-operator.Containerfile) . && \
4848
$(CONTAINER_ENGINE) tag $(PKO_IMG):$(PKO_IMAGETAG) $(PKO_IMG):latest
4949

50-
.PHONY: skopeo-push
51-
skopeo-push-package:
50+
.PHONY: podman-push
51+
podman-push-package:
5252
@if [[ -z $$QUAY_USER || -z $$QUAY_TOKEN ]]; then \
5353
echo "You must set QUAY_USER and QUAY_TOKEN environment variables" ;\
5454
echo "ex: make QUAY_USER=value QUAY_TOKEN=value $@" ;\
5555
exit 1 ;\
5656
fi
5757
# QUAY_USER and QUAY_TOKEN are supplied as env vars
58-
skopeo copy --dest-creds "${QUAY_USER}:${QUAY_TOKEN}" \
59-
"docker-daemon:${PKO_IMG}:${PKO_IMAGETAG}" \
60-
"docker://${PKO_IMG}:latest"
61-
skopeo copy --dest-creds "${QUAY_USER}:${QUAY_TOKEN}" \
62-
"docker-daemon:${PKO_IMG}:${PKO_IMAGETAG}" \
63-
"docker://${PKO_IMG}:${PKO_IMAGETAG}"
58+
podman login -u="${QUAY_USER}" -p="${QUAY_TOKEN}" quay.io
59+
podman push $(PKO_IMG):$(PKO_IMAGETAG)
60+
podman push $(PKO_IMG):latest

build/build_package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ if image_exists_in_repo "$IMAGE_URI"; then
9090
fi
9191

9292
# build the image and push the image
93-
make -C $(dirname $0)/../ build-package skopeo-push-package
93+
make -C $(dirname $0)/../ build-package podman-push-package

0 commit comments

Comments
 (0)