🚀 feat(build-push.sh): add script to build and push Docker images

🚀 feat(build.sh): add script to build Docker images
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-08-21 13:47:02 -03:00
commit f4760a38a3
2 changed files with 21 additions and 0 deletions

11
deploy/scripts/build-push.sh Executable file
View file

@ -0,0 +1,11 @@
#! /usr/bin/env sh
# Exit in case of error
set -e
TAG=${TAG?Variable not set} \
FRONTEND_ENV=${FRONTEND_ENV-production} \
sh ./scripts/build.sh
docker-compose -f docker-compose.yml push

10
deploy/scripts/build.sh Executable file
View file

@ -0,0 +1,10 @@
#! /usr/bin/env sh
# Exit in case of error
set -e
TAG=${TAG?Variable not set} \
FRONTEND_ENV=${FRONTEND_ENV-production} \
docker-compose \
-f docker-compose.yml \
build