File tree Expand file tree Collapse file tree 4 files changed +15
-8
lines changed Expand file tree Collapse file tree 4 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- hugo
4
- ls
3
+ sudo hugo
4
+ ls
5
+
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
+ # Should be moved to build.sh
4
+ # NOTE: Running build.sh and then deploy.sh is not finding the public
5
+ # folder which is generated after the build command (hugo).
6
+ hugo
7
+
3
8
npm install -g surge
4
9
5
10
echo " REF value is ${REF} "
@@ -11,5 +16,7 @@ echo "PR_NUMBER: $PR_NUMBER"
11
16
echo " SURGE_LOGIN: $SURGE_LOGIN "
12
17
echo " SURGE_TOKEN: $SURGE_TOKEN "
13
18
ls
19
+ ls " ./public"
14
20
15
21
surge --project $PROJECT_BUILD --domain $DOMAIN ;
22
+
Original file line number Diff line number Diff line change @@ -18,4 +18,4 @@ location="$(which hugo)"
18
18
echo " Hugo binary location: $location "
19
19
20
20
version=" $( hugo version) "
21
- echo " Hugo binary version: $version "
21
+ echo " Hugo binary version: $version "
Original file line number Diff line number Diff line change @@ -8,13 +8,12 @@ RUN apk add --no-cache curl
8
8
RUN apk add --no-cache wget
9
9
RUN apk add --no-cache bash
10
10
11
- RUN [ " chmod" , "+x" , " .scripts/install.sh" ]
12
- RUN [ " chmod" , "+x" , " .scripts/build.sh" ]
13
- RUN [ " chmod" , "+x" , " .scripts/deploy.sh" ]
11
+ RUN chmod +x .scripts/install.sh
12
+ RUN chmod +x .scripts/build.sh
13
+ RUN chmod +x .scripts/deploy.sh
14
14
15
15
RUN .scripts/install.sh
16
- RUN .scripts/build.sh
17
16
18
- CMD [ "sh" , "-c" , " .scripts/deploy.sh" ]
17
+ ENTRYPOINT .scripts/deploy.sh; /bin/bash
19
18
20
19
You can’t perform that action at this time.
0 commit comments