🚀 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:
parent
15f6200477
commit
f4760a38a3
2 changed files with 21 additions and 0 deletions
11
deploy/scripts/build-push.sh
Executable file
11
deploy/scripts/build-push.sh
Executable 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
10
deploy/scripts/build.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue