-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d5a4a6
commit f93a4fc
Showing
3 changed files
with
37 additions
and
39 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,37 @@ | ||
#!/usr/bin/env bash | ||
|
||
arg1="$1" | ||
arg2="$2" | ||
|
||
if [ "$arg1" == "-p" ] || [ "$arg2" == "-p" ]; then | ||
docker system prune -a -f | ||
fi | ||
|
||
echo "Building base image..." | ||
./assets/docker/scripts/build_base.sh | ||
|
||
echo "Successfully built new base image. Currently installed docker images:" | ||
docker images | ||
|
||
echo "Building microservices..." | ||
docker compose build --no-cache | ||
|
||
echo "Successfully built new microservice images. Currently installed docker images:" | ||
docker images | ||
|
||
set -e | ||
|
||
if [ "$arg1" == "-d" ] || [ "$arg2" == "-d" ]; then | ||
echo "Deploying base..." | ||
./assets/docker/scripts/push_base.sh | ||
echo "Successfully deployed base image." | ||
|
||
echo "Deploying API microservice..." | ||
./assets/docker/scripts/push_image.sh api | ||
|
||
echo "Deploying Worker microservice..." | ||
./assets/docker/scripts/push_image.sh worker | ||
|
||
echo "Images successfully deployed." | ||
fi | ||
|
File renamed without changes.