Skip to content
Snippets Groups Projects
Commit d6f77976 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

stop if download fails; export IMLCI variables (needed on Debian10)

parent 7e1174cb
No related branches found
No related tags found
No related merge requests found
......@@ -163,6 +163,7 @@ ${apiTS}
fi
else
echo ERROR: Download failed.
exit 1
fi
else
curl\
......@@ -287,4 +288,4 @@ if [ "$IMLCI_FILE" = "ALL" ]; then
done
else
makeRequest GET "/packages/$IMLCI_PHASE/$IMLCI_PROJECT/$IMLCI_FILE" "$IMLCI_OUTFILE" "$IMLCI_PKG_SECRET"
fi
\ No newline at end of file
fi
......@@ -20,6 +20,10 @@ tmpdir=/var/tmp/imldeployment_packages
wait=0
# wait=1
# export variables that will be set in getfile config or project
export IMLCI_PROJECT=TODO
export IMLCI_PHASE=TODO
# ----------------------------------------------------------------------
# FUNCTIONS
......
......@@ -80,13 +80,13 @@ cleanup_force=0
Config variables:
name | type | description
name | type | description
--- | --- | ---
installdir | string | target directory of your application
appowner | string | if not empty a chown -R will be applied in target directory by `chwon -R ${appowner} ${installdir}`; appowner is the parameter behind -R. It is something like "myuser." or "myuser:mygroup". For a web application it should be the user of your webservice (www-data/ apache/ nginx). The command chown requires to run the deploy script as root.
IMLCI_PROJECT | string | Project id in IML CI server
IMLCI_PHASE | string | optional: override the global IMLCI_PHASE in ./bin/getfile.sh.cfg; it is one of preview\|stage\|live
cleanup_preview | 0 or 1 | Cleanup preview - shows diff between downloaded TGZ and ${installdir}.
cleanup_preview | 0 or 1 | Cleanup preview - shows diff between downloaded TGZ and ${installdir}.
cleanup_force | 0 or 1 | Run cleanup: it deletes all files in target directory that aren't in the last downloaded tgz. To keep runtime data like logs or uploads you can add a file `.keep` in the directory.
Make a testrun: `./deploy_app.sh` in application root.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment