File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3+ set -euo pipefail
4+
35# CloudControl build script
46# Usage:
57#
@@ -27,8 +29,8 @@ for FLAVOUR in ${FLAVOURS}
2729do
2830 cat build/Dockerfile.prefix > Dockerfile
2931 cat " flavour/${FLAVOUR} /Dockerfile.flavour" >> Dockerfile
30- cat build/Dockerfile.suffix.mo | docker run --rm -i -e FLAVOUR=${FLAVOUR} -e BUILD_DATE=$( date -Iseconds) metal3d/mo >> Dockerfile
31- docker build --pull . -t " ghcr.io/dodevops/cloudcontrol-${FLAVOUR} :${TAG} "
32+ cat build/Dockerfile.suffix.mo | docker run --rm -i -e FLAVOUR=${FLAVOUR} -e BUILD_DATE=$( date -Iseconds) ghcr.io/tests-always-included/mo:3.0.5 >> Dockerfile
33+ docker build --pull . --no-cache - t " ghcr.io/dodevops/cloudcontrol-${FLAVOUR} :${TAG} "
3234done
3335
3436if [ -e Dockerfile.sav ] ; then
Original file line number Diff line number Diff line change 1+ icon : " 📨"
2+ title : " cmctl"
3+ description : " Installs the cert-manager Command Line Tool"
4+ configuration :
5+ - |
6+ Environment CMCTL_VERSION: Version of cmctl to install (optional)
7+ Defaults to `latest`
Original file line number Diff line number Diff line change 1+ command :
2+ cmctl :
3+ exec : " /home/cloudcontrol/bin/cmctl version --client"
4+ stdout :
5+ - " Client Version"
6+ exit-status : 0
Original file line number Diff line number Diff line change 1+ . /feature-installer-utils.sh
2+
3+ # Prepare a workspace for installing the feature
4+ prepare
5+
6+ download " https://github.com/cert-manager/cmctl/releases/${CMCTL_VERSION:- latest} /download/cmctl_linux_$( getPlatform) " cmctl
7+ execHandle " Making cmctl executable" chmod +x cmctl
8+ execHandle " Copying tool to ${BINPATH} " cp cmctl " ${BINPATH} "
9+ cleanup
You can’t perform that action at this time.
0 commit comments