Skip to content
This repository was archived by the owner on May 13, 2021. It is now read-only.

Commit 2beb5ce

Browse files
author
cbutler
committed
remove submodules
1 parent e00d39c commit 2beb5ce

7 files changed

Lines changed: 23 additions & 27 deletions

File tree

.circleci/config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ jobs:
1111
key: dependency-cache-{{ checksum "yarn.lock" }}
1212
- run:
1313
name: Install Dep
14-
command: yarn
14+
command: |
15+
set -eo pipefail
16+
git clone https://github.com/redbrick/hexo-theme-icarus.git /usr/src/app/themes/redbrick-theme
17+
yarn
1518
- save_cache:
1619
key: dependency-cache-{{ checksum "yarn.lock" }}
1720
paths:

.gitmodules

Lines changed: 0 additions & 4 deletions
This file was deleted.

Caddyfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,4 @@ prometheus
33
log stdout
44
errors stdout
55
minify
6-
git github.com/redbrick/static-site {
7-
then yarn
8-
path git
9-
}
10-
root git public
11-
on startup yarn build
6+
root /public

Dockerfile

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,27 @@ ARG plugins="git,minify,prometheus"
66
RUN go get -v github.com/abiosoft/parent
77
RUN VERSION=${version} PLUGINS=${plugins} /bin/sh /usr/bin/builder.sh
88

9-
FROM node:carbon-alpine
9+
FROM node:carbon-alpine as static
10+
11+
WORKDIR /usr/src/app
12+
VOLUME /usr/src/app/public
13+
14+
RUN apk add --no-cache openssh-client git build-base bash libpng-dev
15+
ADD package.json yarn.lock _config.yml source /usr/src/app/
16+
RUN git clone https://github.com/redbrick/hexo-theme-icarus.git /usr/src/app/themes/redbrick-theme
17+
RUN yarn && yarn build
18+
19+
FROM scratch
1020

1121
ARG version="0.10.12"
1222
LABEL caddy_version="$version"
1323
ENV ACME_AGREE="false"
1424

25+
COPY Caddyfile /etc/Caddyfile
1526
COPY --from=builder /install/caddy /usr/bin/caddy
1627
COPY --from=builder /go/bin/parent /bin/parent
28+
COPY --from=static /usr/src/app/public /public
1729

1830
EXPOSE 2015 9180
19-
WORKDIR /usr/src/app
20-
VOLUME /usr/src/app/public
21-
22-
RUN apk add --no-cache openssh-client git build-base bash libpng-dev
23-
COPY Caddyfile /etc/Caddyfile
24-
ADD package.json yarn.lock _config.yml /usr/src/app/
25-
RUN yarn && \
26-
git clone https://github.com/redbrick/hexo-theme-icarus.git themes/redbrick-theme && \
27-
yarn install-theme
28-
ADD source /usr/src/app/source
29-
3031
ENTRYPOINT ["/bin/parent", "caddy"]
3132
CMD ["--conf", "/etc/Caddyfile", "--log", "stdout", "--agree=$ACME_AGREE"]

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@
1212
},
1313
"license": "GPL-3.0",
1414
"scripts": {
15-
"postinstall":
16-
"git submodule init && git submodule update --remote && cd themes/redbrick-theme && yarn",
15+
"postinstall": "cd themes/redbrick-theme && yarn",
1716
"build": "hexo g",
1817
"precommit": "lint-staged"
1918
},
2019
"lint-staged": {
21-
"*.{js,json,css,md}": ["prettier --write", "git add"]
20+
"*.{js,json,css,md}": [
21+
"prettier --write",
22+
"git add"
23+
]
2224
},
2325
"hexo": {
2426
"version": "3.7.1"

themes/.gitkeep

Whitespace-only changes.

themes/redbrick-theme

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)