Skip to content

Commit 928dc38

Browse files
committed
minor change
1 parent 2e27b4b commit 928dc38

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

.scripts/build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/sh
22

3-
hugo
4-
ls
3+
sudo hugo
4+
ls
5+

.scripts/deploy.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/sh
22

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+
38
npm install -g surge
49

510
echo "REF value is ${REF}"
@@ -11,5 +16,7 @@ echo "PR_NUMBER: $PR_NUMBER"
1116
echo "SURGE_LOGIN: $SURGE_LOGIN"
1217
echo "SURGE_TOKEN: $SURGE_TOKEN"
1318
ls
19+
ls "./public"
1420

1521
surge --project $PROJECT_BUILD --domain $DOMAIN;
22+

.scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ location="$(which hugo)"
1818
echo "Hugo binary location: $location"
1919

2020
version="$(hugo version)"
21-
echo "Hugo binary version: $version"
21+
echo "Hugo binary version: $version"

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ RUN apk add --no-cache curl
88
RUN apk add --no-cache wget
99
RUN apk add --no-cache bash
1010

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
1414

1515
RUN .scripts/install.sh
16-
RUN .scripts/build.sh
1716

18-
CMD ["sh","-c",".scripts/deploy.sh"]
17+
ENTRYPOINT .scripts/deploy.sh; /bin/bash
1918

2019

0 commit comments

Comments
 (0)