Skip to content

Commit b46318d

Browse files
committed
♻️ Re-structure scripts to allow only build
1 parent d744b93 commit b46318d

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

{{cookiecutter.project_slug}}/script-build-push.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ set -e
55

66
TAG=${TAG} \
77
FRONTEND_ENV=${FRONTEND_ENV-production} \
8-
docker-compose \
9-
-f docker-compose.deploy.build.yml \
10-
-f docker-compose.deploy.images.yml \
11-
config > docker-stack.yml
12-
13-
docker-compose -f docker-stack.yml build
8+
source ./script-build.sh
149

1510
docker-compose -f docker-stack.yml push
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#! /usr/bin/env sh
2+
3+
# Exit in case of error
4+
set -e
5+
6+
TAG=${TAG} \
7+
FRONTEND_ENV=${FRONTEND_ENV-production} \
8+
docker-compose \
9+
-f docker-compose.deploy.build.yml \
10+
-f docker-compose.deploy.images.yml \
11+
config > docker-stack.yml
12+
13+
docker-compose -f docker-stack.yml build

0 commit comments

Comments
 (0)