forked from cyber-dojo/saver
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
executable file
·25 lines (22 loc) · 861 Bytes
/
build.sh
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
#!/bin/bash -Eeu
export ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
readonly SCRIPTS_DIR="${ROOT_DIR}/scripts"
source "${SCRIPTS_DIR}/augmented_docker_compose.sh"
source "${SCRIPTS_DIR}/config.sh"
source "${SCRIPTS_DIR}/create_docker_compose_yml.sh"
source "${SCRIPTS_DIR}/echo_env_vars.sh"
source "${SCRIPTS_DIR}/echo_versioner_env_vars.sh"
source "${SCRIPTS_DIR}/exit_non_zero_unless_installed.sh"
source "${SCRIPTS_DIR}/images_build.sh"
source "${SCRIPTS_DIR}/images_check_sha_env_var.sh"
source "${SCRIPTS_DIR}/images_remove_old.sh"
source "${SCRIPTS_DIR}/images_tag_latest.sh"
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
export $(echo_versioner_env_vars)
exit_non_zero_unless_installed docker docker-compose
create_docker_compose_yml
images_build
images_check_sha_env_var
images_tag_latest
images_remove_old
echo_env_vars