forked from EVerest/everest-demo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request EVerest#10 from US-JOET/simplify-cicd
Simplify the current CI/CD workflow
- Loading branch information
Showing
15 changed files
with
218 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
TAG=0.0.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
DEMO_COMPOSE_FILE_NAME='docker-compose.yml' | ||
DEMO_DIR="$(mktemp -d)" | ||
|
||
delete_temporary_directory() { rm -rf "${DEMO_DIR}"; } | ||
trap delete_temporary_directory EXIT | ||
|
||
if [[ ! "${DEMO_DIR}" || ! -d "${DEMO_DIR}" ]]; then | ||
echo 'Error: Failed to create a temporary directory for the demo.' | ||
exit 1 | ||
fi | ||
|
||
download_demo_file() { | ||
local -r repo_file_path="$1" | ||
local -r repo_raw_url='https://raw.githubusercontent.com/everest/everest-demo/main' | ||
local -r destination_path="${DEMO_DIR}/${repo_file_path}" | ||
|
||
mkdir -p "$(dirname ${destination_path})" | ||
curl -s -o "${destination_path}" "${repo_raw_url}/${repo_file_path}" | ||
if [[ "$?" != 0 ]]; then | ||
echo "Error: Failed to retrieve \"${repo_file_path}\" from the demo" | ||
echo 'repository. If this issue persists, please report this as an' | ||
echo 'issue in the EVerest project:' | ||
echo ' https://github.com/EVerest/EVerest/issues' | ||
exit 1 | ||
fi | ||
} | ||
|
||
download_demo_file "${DEMO_COMPOSE_FILE_NAME}" | ||
download_demo_file .env | ||
|
||
docker compose --project-name everest-ac-demo \ | ||
--file "${DEMO_DIR}/${DEMO_COMPOSE_FILE_NAME}" up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
DEMO_COMPOSE_FILE_NAME='docker-compose.admin-panel.yml' | ||
DEMO_DIR="$(mktemp -d)" | ||
|
||
delete_temporary_directory() { rm -rf "${DEMO_DIR}"; } | ||
trap delete_temporary_directory EXIT | ||
|
||
if [[ ! "${DEMO_DIR}" || ! -d "${DEMO_DIR}" ]]; then | ||
echo 'Error: Failed to create a temporary directory for the demo.' | ||
exit 1 | ||
fi | ||
|
||
download_demo_file() { | ||
local -r repo_file_path="$1" | ||
local -r repo_raw_url='https://raw.githubusercontent.com/everest/everest-demo/main' | ||
local -r destination_path="${DEMO_DIR}/${repo_file_path}" | ||
|
||
mkdir -p "$(dirname ${destination_path})" | ||
curl -s -o "${destination_path}" "${repo_raw_url}/${repo_file_path}" | ||
if [[ "$?" != 0 ]]; then | ||
echo "Error: Failed to retrieve \"${repo_file_path}\" from the demo" | ||
echo 'repository. If this issue persists, please report this as an' | ||
echo 'issue in the EVerest project:' | ||
echo ' https://github.com/EVerest/EVerest/issues' | ||
exit 1 | ||
fi | ||
} | ||
|
||
download_demo_file "${DEMO_COMPOSE_FILE_NAME}" | ||
download_demo_file .env | ||
|
||
docker compose --project-name everest-ac-demo \ | ||
--file "${DEMO_DIR}/${DEMO_COMPOSE_FILE_NAME}" up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
DEMO_COMPOSE_FILE_NAME='docker-compose.iso15118-dc.yml' | ||
DEMO_DIR="$(mktemp -d)" | ||
|
||
delete_temporary_directory() { rm -rf "${DEMO_DIR}"; } | ||
trap delete_temporary_directory EXIT | ||
|
||
if [[ ! "${DEMO_DIR}" || ! -d "${DEMO_DIR}" ]]; then | ||
echo 'Error: Failed to create a temporary directory for the demo.' | ||
exit 1 | ||
fi | ||
|
||
download_demo_file() { | ||
local -r repo_file_path="$1" | ||
local -r repo_raw_url='https://raw.githubusercontent.com/everest/everest-demo/main' | ||
local -r destination_path="${DEMO_DIR}/${repo_file_path}" | ||
|
||
mkdir -p "$(dirname ${destination_path})" | ||
curl -s -o "${destination_path}" "${repo_raw_url}/${repo_file_path}" | ||
if [[ "$?" != 0 ]]; then | ||
echo "Error: Failed to retrieve \"${repo_file_path}\" from the demo" | ||
echo 'repository. If this issue persists, please report this as an' | ||
echo 'issue in the EVerest project:' | ||
echo ' https://github.com/EVerest/EVerest/issues' | ||
exit 1 | ||
fi | ||
} | ||
|
||
download_demo_file "${DEMO_COMPOSE_FILE_NAME}" | ||
download_demo_file .env | ||
|
||
docker compose --project-name everest-ac-demo \ | ||
--file "${DEMO_DIR}/${DEMO_COMPOSE_FILE_NAME}" up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
DEMO_COMPOSE_FILE_NAME='docker-compose.two-evse.yml' | ||
DEMO_DIR="$(mktemp -d)" | ||
|
||
delete_temporary_directory() { rm -rf "${DEMO_DIR}"; } | ||
trap delete_temporary_directory EXIT | ||
|
||
if [[ ! "${DEMO_DIR}" || ! -d "${DEMO_DIR}" ]]; then | ||
echo 'Error: Failed to create a temporary directory for the demo.' | ||
exit 1 | ||
fi | ||
|
||
download_demo_file() { | ||
local -r repo_file_path="$1" | ||
local -r repo_raw_url='https://raw.githubusercontent.com/everest/everest-demo/main' | ||
local -r destination_path="${DEMO_DIR}/${repo_file_path}" | ||
|
||
mkdir -p "$(dirname ${destination_path})" | ||
curl -s -o "${destination_path}" "${repo_raw_url}/${repo_file_path}" | ||
if [[ "$?" != 0 ]]; then | ||
echo "Error: Failed to retrieve \"${repo_file_path}\" from the demo" | ||
echo 'repository. If this issue persists, please report this as an' | ||
echo 'issue in the EVerest project:' | ||
echo ' https://github.com/EVerest/EVerest/issues' | ||
exit 1 | ||
fi | ||
} | ||
|
||
download_demo_file "${DEMO_COMPOSE_FILE_NAME}" | ||
download_demo_file .env | ||
|
||
docker compose --project-name everest-ac-demo \ | ||
--file "${DEMO_DIR}/${DEMO_COMPOSE_FILE_NAME}" up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters