Skip to content

Commit

Permalink
Bump oc client version in buildah script
Browse files Browse the repository at this point in the history
  • Loading branch information
pabrahamsson committed May 14, 2020
1 parent dd6f23d commit 528ed6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images/prune-ocp-projects/buildah.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -o errexit
container=$(buildah from registry.access.redhat.com/ubi8/ubi)
buildah config --label io.k8s.description="OCP Project Pruner" --label io.k8s.display-name="OCP Project Pruner" --env PATH='$PATH:/usr/local/bin' $container
buildah add $container include/prune-ocp-projects.sh /usr/local/bin/
buildah run $container -- curl -Lo /tmp/oc.tar.gz https://mirror.openshift.com/pub/openshift-v4/clients/oc/4.2/linux/oc.tar.gz
buildah run $container -- curl -Lo /tmp/oc.tar.gz https://mirror.openshift.com/pub/openshift-v4/clients/oc/4.4/linux/oc.tar.gz
buildah run $container -- tar -C /usr/local/bin/ -xzf /tmp/oc.tar.gz
buildah run $container -- rm /tmp/oc.tar.gz
buildah config --cmd /usr/local/bin/prune-ocp-projects.sh $container
Expand Down

0 comments on commit 528ed6a

Please sign in to comment.