File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -e
3
+
3
4
export SC=$( readlink -f " $0 " )
4
5
export DSC=$( dirname " $SC " )
5
6
. " $DSC /common" || exit 1
@@ -78,7 +79,7 @@ main() {
78
79
shift
79
80
( call_gulp serve $@ ; )
80
81
;;
81
- " hugo " * )
82
+ " hugo" * )
82
83
( vactivate && $@ ; )
83
84
;;
84
85
* )
Original file line number Diff line number Diff line change @@ -12,13 +12,8 @@ export TAG=${TAG:-makinacorpus/sysdoc}
12
12
cd " ${W} "
13
13
vv () { echo " $@ " >&2 ; " ${@ } " ; }
14
14
if [[ -z $NO_BUILD ]]; then
15
- # handle pb with node_modules that is too heavy
16
- # and still uploaded to context despite being ignored
17
- # by dockerignore
18
- # docker build -t makinacorpus/sysdoc .
19
- tar -cf - .\
20
- --exclude={.git,var,public,themes/* /* /node_modules} \
21
- | docker build -f " themes/$( basename $THEME ) /Dockerfile" -t ${TAG} -
15
+ export DOCKERFILE=" themes/$( basename $THEME ) /Dockerfile"
16
+ docker build -f $DOCKERFILE --cache-from=$TAG --build-arg BUILDKIT_INLINE_CACHE=1 -t ${TAG} .
22
17
fi
23
18
main () {
24
19
local cmd=/s/bin/control.sh
@@ -35,7 +30,11 @@ main() {
35
30
dargs=" "
36
31
;;
37
32
esac
38
- vv exec docker run --rm -ti \
33
+ local dargs=" "
34
+ if [[ -z " ${CI_JOB_ID-}${CI-} " ]]; then
35
+ dargs=" $dargs -ti"
36
+ fi
37
+ vv exec docker run $dargs --rm \
39
38
$( echo $dargs ) \
40
39
-v " $W /content:/s/content" \
41
40
-v " $W /data:/s/data" \
You can’t perform that action at this time.
0 commit comments