]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: fix transition-through-oci image workaround in grafana build
authorAashish Sharma <aashishsharma@localhost.localdomain>
Wed, 23 Mar 2022 08:29:28 +0000 (13:59 +0530)
committerAashish Sharma <aashishsharma@localhost.localdomain>
Wed, 23 Mar 2022 08:29:28 +0000 (13:59 +0530)
Fixes: https://tracker.ceph.com/issues/54311
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
monitoring/grafana/build/Makefile

index 4ff4252209f9b7e0feeae5807663c8b4e5ba76d5..92c64ac78d038c1d61e71e5d9a1cf3baf199ae76 100755 (executable)
@@ -72,15 +72,8 @@ providers: \\n\
        sudo buildah commit --format docker --squash $(CONTAINER) $(LOCALTAG)
 
 push:
-       # this transition-through-oci image is a workaround for
-       # https://github.com/containers/buildah/issues/3253 and
-       # can be removed when that is fixed and released.  The
-       # --format v2s2 on push is to convert oci back to docker format.
-       sudo podman push $(LOCALTAG) --format=oci dir://tmp/oci-image
-       sudo podman pull dir://tmp/oci-image
-       sudo rm -rf /tmp/oci-image
-       sudo podman tag localhost/tmp/oci-image docker.io/${TAG}
-       sudo podman tag localhost/tmp/oci-image quay.io/${TAG}
+       sudo podman tag ${LOCALTAG} docker.io/${TAG}
+       sudo podman tag ${LOCALTAG} quay.io/${TAG}
        # sudo podman has issues with auth.json; just override it
        sudo podman login --authfile=auth.json -u ${DOCKER_HUB_USERNAME} -p ${DOCKER_HUB_PASSWORD} docker.io
        sudo podman login --authfile=auth.json -u $(CONTAINER_REPO_USERNAME) -p $(CONTAINER_REPO_PASSWORD) quay.io
@@ -91,6 +84,5 @@ clean:
        sudo podman rmi ${LOCALTAG} || true
        sudo podman rmi docker.io/${TAG} || true
        sudo podman rmi quay.io/${TAG} || true
-       sudo podman rmi localhost/tmp/oci-image || true
        rm -f grafana-*.rpm* auth.json
        rm -f ${DASHBOARD_PROVISIONING}