Skip to content

Commit ad928b0

Browse files
Merge pull request #313 from mjlshen/OSD-24357
Fix MCVW builds on RHEL8
2 parents 24539be + f1f40e6 commit ad928b0

File tree

3 files changed

+13
-22
lines changed

3 files changed

+13
-22
lines changed

Makefile

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -146,36 +146,27 @@ container-test:
146146
make test
147147

148148
### Imported
149-
.PHONY: skopeo-push
150-
skopeo-push:
149+
.PHONY: container-image-push
150+
container-image-push:
151151
@if [[ -z $$QUAY_USER || -z $$QUAY_TOKEN ]]; then \
152152
echo "You must set QUAY_USER and QUAY_TOKEN environment variables" ;\
153153
echo "ex: make QUAY_USER=value QUAY_TOKEN=value $@" ;\
154154
exit 1 ;\
155155
fi
156-
# QUAY_USER and QUAY_TOKEN are supplied as env vars
157-
skopeo copy --dest-creds "${QUAY_USER}:${QUAY_TOKEN}" \
158-
"docker-daemon:${IMG}:${IMAGETAG}" \
159-
"docker://${IMG}:latest"
160-
skopeo copy --dest-creds "${QUAY_USER}:${QUAY_TOKEN}" \
161-
"docker-daemon:${IMG}:${IMAGETAG}" \
162-
"docker://${IMG}:${IMAGETAG}"
163-
164-
.PHONY: skopeo-push-package
165-
skopeo-push-package:
156+
$(CONTAINER_ENGINE) login -u="${QUAY_USER}" -p="${QUAY_TOKEN}" quay.io
157+
$(CONTAINER_ENGINE) push "${IMG}:${IMAGETAG}"
158+
$(CONTAINER_ENGINE) push "${IMG}:latest"
159+
160+
.PHONY: package-push
161+
package-push:
166162
@if [[ -z $$QUAY_USER || -z $$QUAY_TOKEN ]]; then \
167163
echo "You must set QUAY_USER and QUAY_TOKEN environment variables" ;\
168164
echo "ex: make QUAY_USER=value QUAY_TOKEN=value $@" ;\
169165
exit 1 ;\
170166
fi
171-
# QUAY_USER and QUAY_TOKEN are supplied as env vars
172-
skopeo copy --dest-creds "${QUAY_USER}:${QUAY_TOKEN}" \
173-
"docker-daemon:${PKG_IMG}:${IMAGETAG}" \
174-
"docker://${PKG_IMG}:latest"
175-
skopeo copy --dest-creds "${QUAY_USER}:${QUAY_TOKEN}" \
176-
"docker-daemon:${PKG_IMG}:${IMAGETAG}" \
177-
"docker://${PKG_IMG}:${IMAGETAG}"
178-
167+
$(CONTAINER_ENGINE) login -u="${QUAY_USER}" -p="${QUAY_TOKEN}" quay.io
168+
$(CONTAINER_ENGINE) push "${PKG_IMG}:${IMAGETAG}"
169+
$(CONTAINER_ENGINE) push "${PKG_IMG}:latest"
179170

180171
.PHONY: push-base
181172
push-base: build/Dockerfile

build/build_push.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, the selectorsyncset, and push the image
93-
make -C $(dirname $0)/../ syncset build-base skopeo-push
93+
make -C $(dirname $0)/../ syncset build-base container-image-push

build/build_push_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, the selectorsyncset, and push the image
93-
make -C $(dirname $0)/../ package build-base skopeo-push-package
93+
make -C $(dirname $0)/../ package build-base package-push

0 commit comments

Comments
 (0)