File tree Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ stages:
11
11
build-dev :
12
12
stage : build
13
13
script :
14
- - TAG=dev sh ./scripts/build-push.sh
14
+ - cat $ENV_FILE_DEV >> ./docker/.env
15
+ - TAG=dev sh ./docker/scripts/build-push.sh
15
16
only :
16
17
- develop
17
18
tags :
@@ -20,7 +21,8 @@ build-dev:
20
21
build-stag :
21
22
stage : build
22
23
script :
23
- - TAG=stag sh ./scripts/build-push.sh
24
+ - cat $ENV_FILE_STAG >> ./docker/.env
25
+ - TAG=stag sh ./docker/scripts/build-push.sh
24
26
only :
25
27
- master
26
28
tags :
@@ -29,7 +31,8 @@ build-stag:
29
31
build-prod :
30
32
stage : build
31
33
script :
32
- - TAG=prod FRONTEND_ENV=production sh ./scripts/build-push.sh
34
+ - cat $ENV_FILE_PROD >> ./docker/.env
35
+ - TAG=prod sh ./docker/scripts/build-push.sh
33
36
only :
34
37
- production
35
38
tags :
@@ -38,9 +41,10 @@ build-prod:
38
41
deploy-dev :
39
42
stage : deploy
40
43
script :
44
+ - cat $ENV_FILE_DEV >> ./docker/.env
41
45
- >
42
46
TAG=dev
43
- sh ./scripts/deploy.sh
47
+ sh ./docker/ scripts/deploy.sh
44
48
environment :
45
49
name : development
46
50
only :
@@ -54,7 +58,7 @@ deploy-stag:
54
58
script :
55
59
- >
56
60
TAG=stag
57
- sh ./scripts/deploy.sh
61
+ sh ./docker/ scripts/deploy.sh
58
62
environment :
59
63
name : staging
60
64
only :
Original file line number Diff line number Diff line change 4
4
set -e
5
5
6
6
TAG=${TAG?Variable not set} \
7
- sh ./scripts/build.sh
7
+ sh ./docker/ scripts/build.sh
8
8
9
- docker-compose -f docker-compose.yml push
9
+ docker-compose -f ./docker/ docker-compose.yml push
Original file line number Diff line number Diff line change 5
5
6
6
TAG=${TAG?Variable not set} \
7
7
docker-compose \
8
- -f docker-compose.yml \
8
+ -f ./docker/ docker-compose.yml \
9
9
build
Original file line number Diff line number Diff line change 5
5
6
6
TAG=${TAG?Variable not set} \
7
7
docker-compose \
8
- -f docker-compose.yml \
8
+ -f ./docker/ docker-compose.yml \
9
9
config > docker-stack.yml
10
10
11
11
docker-auto-labels docker-stack.yml
You can’t perform that action at this time.
0 commit comments