File tree 4 files changed +53
-11
lines changed
4 files changed +53
-11
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,13 @@ workflows:
35
35
ignore : main
36
36
tags :
37
37
only : /.*/
38
+ - deploy-test :
39
+ requires :
40
+ - build
41
+ filters :
42
+ branches :
43
+ only :
44
+ - test
38
45
- deploy-staging :
39
46
requires :
40
47
- build
@@ -185,6 +192,18 @@ jobs:
185
192
- store_artifacts :
186
193
path : /home/circleci/mapmarker.io/tests/Browser/screenshots
187
194
195
+ deploy-test :
196
+ << : *defaults
197
+ steps :
198
+ - setup_remote_docker :
199
+ version : 20.10.14
200
+ - attach_workspace :
201
+ at : /home/circleci
202
+ - checkout
203
+ - run :
204
+ name : Deploy Test
205
+ command : yarn vapor deploy test --commit $CIRCLE_SHA1 --message "$(git log --format=%B -n 1 $CIRCLE_SHA1 | head -n 3)"
206
+
188
207
deploy-staging :
189
208
<< : *defaults
190
209
steps :
Original file line number Diff line number Diff line change @@ -19,3 +19,4 @@ yarn-error.log
19
19
public /css /app.css
20
20
public /js /app.js
21
21
public /mix-manifest.json
22
+ .env.test
Original file line number Diff line number Diff line change
1
+ FROM laravelphp/vapor:php81
2
+
3
+ # install gd
4
+ RUN apk add --no-cache freetype libpng libjpeg-turbo freetype-dev libpng-dev libjpeg-turbo-dev && \
5
+ docker-php-ext-configure gd \
6
+ --enable-gd \
7
+ --with-freetype \
8
+ --with-jpeg && \
9
+ docker-php-ext-install gd
10
+
11
+ # cleanup
12
+ RUN apk del --no-cache freetype-dev libpng-dev libjpeg-turbo-dev
13
+
14
+ COPY . /var/task
Original file line number Diff line number Diff line change @@ -3,21 +3,29 @@ name: mapmarker
3
3
environments :
4
4
production :
5
5
domain :
6
- - " mapmarker.io"
7
- - " cdn.mapmarker.io"
6
+ - mapmarker.io
7
+ - cdn.mapmarker.io
8
8
memory : 1024
9
9
cli-memory : 512
10
- runtime : " docker"
10
+ runtime : docker
11
11
build :
12
- - " COMPOSER_MIRROR_PATH_REPOS=1 composer install --no-dev"
13
- - " php artisan event:cache"
14
- - " yarn prod && rm -rf node_modules"
12
+ - ' COMPOSER_MIRROR_PATH_REPOS=1 composer install --no-dev'
13
+ - ' php artisan event:cache'
14
+ - ' yarn prod && rm -rf node_modules'
15
15
staging :
16
- domain : " staging.mapmarker.io"
16
+ domain : staging.mapmarker.io
17
17
memory : 1024
18
18
cli-memory : 512
19
- runtime : " docker"
19
+ runtime : docker
20
20
build :
21
- - " COMPOSER_MIRROR_PATH_REPOS=1 composer install"
22
- - " php artisan event:cache"
23
- - " yarn prod && rm -rf node_modules"
21
+ - ' COMPOSER_MIRROR_PATH_REPOS=1 composer install'
22
+ - ' php artisan event:cache'
23
+ - ' yarn prod && rm -rf node_modules'
24
+ test :
25
+ memory : 1024
26
+ cli-memory : 512
27
+ runtime : docker
28
+ build :
29
+ - ' COMPOSER_MIRROR_PATH_REPOS=1 composer install'
30
+ - ' php artisan event:cache'
31
+ - ' yarn prod && rm -rf node_modules'
You can’t perform that action at this time.
0 commit comments