@@ -61,10 +61,10 @@ jobs:
6161
6262 - name : Install CloudCaptain CLI
6363 run : |
64- curl https://files.cloudcaptain.sh/com/boxfuse/client/boxfuse-commandline/1.33.0.1460/boxfuse-commandline-1.33.0.1460-linux-x64.tar.gz -o boxfuse-commandline-1.33.0.1460-linux-x64 .tar.gz
65- tar -xzf boxfuse-commandline-1.33.0.1460-linux-x64.tar.gz
66- echo "${PWD}/ boxfuse" >> $GITHUB_PATH
67- boxfuse -v
64+ curl https://files.cloudcaptain.sh/com/boxfuse/client/boxfuse-commandline/1.33.0.1460/boxfuse-commandline-1.33.0.1460-linux-x64.tar.gz -o boxfuse-commandline.tar.gz
65+ mkdir boxfuse
66+ tar -xzf boxfuse-commandline.tar.gz -C boxfuse --strip-components=1
67+ ${PWD}/boxfuse/ boxfuse -v
6868
6969 - name : Write to config file
7070 run : |
8888 - name : Fuses a Payload together with the Components it requires into an Image
8989 run : |
9090 DATE=$(date +'%d%m%Y')
91- RESULT=$(boxfuse fuse ${PWD}/target/despensa-rest-api.war -image=despensa-rest-api:0.0.1.$DATE | awk '/ERROR/{print $1}' | sed 's/://')
91+ RESULT=$(${PWD}/boxfuse/ boxfuse fuse ${PWD}/target/despensa-rest-api.war -image=despensa-rest-api:0.0.1.$DATE | awk '/ERROR/{print $1}' | sed 's/://')
9292
9393 if [ "$RESULT" == "ERROR" ]; then
9494 echo "Error fusing Image."
@@ -97,13 +97,13 @@ jobs:
9797
9898 - name : Removes the last Image from the CloudCaptain Vault
9999 run : |
100- TOTAL=$(boxfuse ls -vault=true | awk '/Total:/ {print $2}')
100+ TOTAL=$(${PWD}/boxfuse/ boxfuse ls -vault=true | awk '/Total:/ {print $2}')
101101
102102 echo "Total: $TOTAL"
103103
104104 if [ "$TOTAL" -eq 3 ]; then
105- IMAGE=$(boxfuse ls -vault=true | grep -o '| [^/]*/despensa-rest-api:0.0.1.[^|]*' | sed 's/^| //' | head -n 1)
106- RESULT=$(boxfuse rm $IMAGE -vault=true | awk '/ERROR/{print $1}' | sed 's/://')
105+ IMAGE=$(${PWD}/boxfuse/ boxfuse ls -vault=true | grep -o '| [^/]*/despensa-rest-api:0.0.1.[^|]*' | sed 's/^| //' | head -n 1)
106+ RESULT=$(${PWD}/boxfuse/ boxfuse rm $IMAGE -vault=true | awk '/ERROR/{print $1}' | sed 's/://')
107107
108108 if [ "$RESULT" == "ERROR" ]; then
109109 echo "Error removing Image."
@@ -118,7 +118,7 @@ jobs:
118118 - name : Pushes this Image to the CloudCaptain Vault
119119 run : |
120120 DATE=$(date +'%d%m%Y')
121- RESULT=$(boxfuse push despensa-rest-api:0.0.1.$DATE | awk '/ERROR/{print $1}' | sed 's/://')
121+ RESULT=$(${PWD}/boxfuse/ boxfuse push despensa-rest-api:0.0.1.$DATE | awk '/ERROR/{print $1}' | sed 's/://')
122122
123123 if [ "$RESULT" == "ERROR" ]; then
124124 echo "Error pushing Image."
@@ -128,7 +128,7 @@ jobs:
128128 - name : Run the Image Instance in the AWS environment
129129 run : |
130130 DATE=$(date +'%d%m%Y')
131- RESULT=$(boxfuse run despensa-rest-api:0.0.1.$DATE | awk '/ERROR/{print $1}' | sed 's/://')
131+ RESULT=$(${PWD}/boxfuse/ boxfuse run despensa-rest-api:0.0.1.$DATE | awk '/ERROR/{print $1}' | sed 's/://')
132132
133133 if [ "$RESULT" == "ERROR" ]; then
134134 echo "Error running Image."
0 commit comments