Skip to content

Commit b2ba54e

Browse files
committed
Use cat
1 parent 3bab7f5 commit b2ba54e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

wercker.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ integration-test179:
5656
code: |
5757
# Copy Docker file to OCI host and load into local Docker registry
5858
yum install -y openssh-clients
59-
echo $OCI_K8S_179_SSHKEY > /tmp/ssh_key
59+
cat <<EOF > /tmp/ssh_key
60+
$OCI_K8S_179_SSHKEY
61+
EOF
6062
scp -i /tmp/ssh_key $WERCKER_OUTPUT_DIR/build.tar opc@$OCI_K8S_179_WORKER0_IP:/scratch/build.tar
6163
ssh -i /tmp/ssh_key opc@$OCI_K8S_179_WORKER0_IP "tar -xvf /scratch/operator.tar”
6264
ssh -i /tmp/ssh_key opc@$OCI_K8S_179_WORKER0_IP "sudo docker build -t weblogic-kubernetes-operator:$WERCKER_GIT_BRANCH --no-cache=true /scratch/”
@@ -134,7 +136,9 @@ integration-test185:
134136
code: |
135137
# Copy Docker file to OCI host and load into local Docker registry
136138
yum install -y openssh-clients
137-
echo $OCI_K8S_185_SSHKEY > /tmp/ssh_key
139+
cat <<EOF > /tmp/ssh_key
140+
$OCI_K8S_185_SSHKEY
141+
EOF
138142
scp -i /tmp/ssh_key $WERCKER_OUTPUT_DIR/build.tar opc@$OCI_K8S_185_WORKER0_IP:/scratch/build.tar
139143
ssh -i /tmp/ssh_key opc@$OCI_K8S_185_WORKER0_IP "tar -xvf /scratch/operator.tar”
140144
ssh -i /tmp/ssh_key opc@$OCI_K8S_185_WORKER0_IP "sudo docker build -t weblogic-kubernetes-operator:$WERCKER_GIT_BRANCH --no-cache=true /scratch/”

0 commit comments

Comments
 (0)