File tree Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Expand file tree Collapse file tree 4 files changed +15
-6
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 @@ -2,6 +2,8 @@ FROM node:10-alpine
2
2
ADD . ./app
3
3
WORKDIR /app
4
4
5
+ RUN export PR_NUMBER=$(echo ${REF} | cut -d'/' -f3)
6
+
5
7
RUN apk add --no-cache curl
6
8
RUN apk add --no-cache wget
7
9
RUN apk add --no-cache bash
@@ -12,7 +14,6 @@ RUN chmod +x .scripts/deploy.sh
12
14
13
15
RUN .scripts/install.sh
14
16
15
- RUN export PR_NUMBER=$(echo ${REF} | cut -d'/' -f3)
17
+ ENTRYPOINT .scripts/deploy.sh; /bin/bash
18
+
16
19
17
- CMD sh .scripts/build.sh
18
- CMD sh .scripts/deploy.sh
You can’t perform that action at this time.
0 commit comments