-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·32 lines (23 loc) · 804 Bytes
/
deploy.sh
File metadata and controls
executable file
·32 lines (23 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
set -o errexit # Make your script exit when a command fails
set -o pipefail # Exit status of the last command that threw a non-zero exit code is returned
set -o nounset # Exit when your script tries to use undeclared variables
# Importing configurations.
_DEPLOY_CONFIG_FILE="inc/config.bash"
# Check if configuration file was included.
if [ ! -f "${_DEPLOY_CONFIG_FILE}" ]; then
echo "Setup the configuration file before start ${_DEPLOY_CONFIG_FILE}: cp inc/config.bash.dist inc/config.bash"
exit 1
fi
# Load defined settings.
source inc/config.bash
# Load response messages.
source inc/messages.bash
# Load Bootstrap file.
source inc/bootstrap.bash
# Instance Bootstrap function.
bootstrap_core
# Start variables validate.
validate
# Generate and push TAG.
mapping