ci/scripts/deploy.sh
#!/bin/sh
# control-fpga-via-raspi-and-webserver deploy.sh
echo " "
if [ "$1" = "-debug" ]
then
echo "deploy.sh -debug (START)"
# set -e causes the shell to exit if any subcommand or pipeline returns a non-zero status. Needed for concourse.
# set -x enables a mode of the shell where all executed commands are printed to the terminal.
set -e -x
echo " "
else
echo "deploy.sh (START)"
# set -e causes the shell to exit if any subcommand or pipeline returns a non-zero status. Needed for concourse.
set -e
echo " "
fi
echo "GOAL ----------------------------------------------------------------------------------"
echo " "
echo "The goal is to deploy docker image to docker"
echo " "
echo "CHECK THINGS --------------------------------------------------------------------------"
echo " "
echo "At start, you should be in a /tmp/build/xxxxx directory with two folders:"
echo " /control-fpga-via-raspi-and-webserver"
echo " "
echo "pwd is: $PWD"
echo " "
echo "List whats in the current directory"
ls -la
echo " "
echo "deploy.sh (END)"
echo " "