-12
.gitmodules
-12
.gitmodules
···
1
-
[submodule "prs"]
2
-
path = prs
3
-
url = https://tangled.sh/@vielle.dev/site
4
-
[submodule "dong-web"]
5
-
path = dong-web
6
-
url = https://tangled.sh/@vielle.dev/dong-web
7
-
[submodule "saltire-the-gays"]
8
-
path = saltire-the-gays
9
-
url = https://tangled.sh/@vielle.dev/saltire-the-gays
10
-
[submodule "dnd"]
11
-
path = dnd
12
-
url = https://tangled.sh/@vielle.dev/dnd-astral-powers
···
+15
-13
caddy/Dockerfile
+15
-13
caddy/Dockerfile
···
1
#########
2
# BUILD #
3
#########
4
-
FROM node:24-alpine AS build-templ
5
WORKDIR /app
6
7
# install pnpm
8
ENV PNPM_HOME="/pnpm"
···
10
RUN corepack enable pnpm && corepack install -g pnpm@latest
11
12
# dong web
13
-
FROM build-templ AS build-dong-web
14
WORKDIR /app
15
-
COPY ./dong-web /app/dong-web
16
-
RUN pnpm --dir /app/dong-web install --prod
17
-
RUN pnpm --dir /app/dong-web run build --outDir /app/dong-web/dist
18
19
# saltire
20
-
FROM build-templ AS build-saltire-the-gays
21
WORKDIR /app
22
-
COPY ./saltire-the-gays /app/saltire-the-gays
23
-
RUN pnpm --dir /app/saltire-the-gays install --prod
24
-
RUN pnpm --dir /app/saltire-the-gays run build --outDir /app/saltire-the-gays/dist
25
26
# astral powers
27
-
FROM build-templ AS build-dnd
28
WORKDIR /app
29
-
COPY ./dnd /app/dnd
30
RUN pnpm --dir /app/dnd install --prod
31
RUN pnpm --dir /app/dnd run build --outDir /app/dnd/dist
32
···
36
FROM caddy:2.10.2
37
38
# copy built files to /srv
39
-
COPY --from=build-dong-web /app/dong-web/dist /srv/dong-web
40
-
COPY --from=build-saltire-the-gays /app/saltire-the-gays/dist /srv/saltire-the-gays
41
COPY --from=build-dnd /app/dnd/dist /srv/dnd
42
43
CMD caddy run --config /etc/caddy/Caddyfile --adapter caddyfile
···
1
#########
2
# BUILD #
3
#########
4
+
FROM node:24-alpine AS build
5
WORKDIR /app
6
+
7
+
RUN apk add git
8
9
# install pnpm
10
ENV PNPM_HOME="/pnpm"
···
12
RUN corepack enable pnpm && corepack install -g pnpm@latest
13
14
# dong web
15
+
FROM build AS build-dong
16
WORKDIR /app
17
+
RUN git clone https://tangled.org/vielle.dev/dong-web.git /app/dong
18
+
RUN pnpm --dir /app/dong install --prod
19
+
RUN pnpm --dir /app/dong run build --outDir /app/dong/dist
20
21
# saltire
22
+
FROM build AS build-saltire
23
WORKDIR /app
24
+
RUN git clone https://tangled.org/vielle.dev/saltire-the-gays.git /app/saltire
25
+
RUN pnpm --dir /app/saltire install --prod
26
+
RUN pnpm --dir /app/saltire run build --outDir /app/saltire/dist
27
28
# astral powers
29
+
FROM build AS build-dnd
30
WORKDIR /app
31
+
RUN git clone https://tangled.org/vielle.dev/dnd-astral-powers.git /app/dnd
32
RUN pnpm --dir /app/dnd install --prod
33
RUN pnpm --dir /app/dnd run build --outDir /app/dnd/dist
34
···
38
FROM caddy:2.10.2
39
40
# copy built files to /srv
41
+
COPY --from=build-dong /app/dong/dist /srv/dong
42
+
COPY --from=build-saltire /app/saltire/dist /srv/saltire
43
COPY --from=build-dnd /app/dnd/dist /srv/dnd
44
45
CMD caddy run --config /etc/caddy/Caddyfile --adapter caddyfile
+2
-8
commit.sh
+2
-8
commit.sh
···
1
#!/usr/bin/env bash
2
3
-
echo
4
-
echo
5
-
echo "Got new commit: $(date)"
6
-
echo "---"
7
-
echo
8
9
# pull latest version
10
git fetch --all
···
27
# restart/rebuild all containers
28
docker compose build --no-cache
29
docker compose up -d --force-recreate
30
-
# add second docker compose up because it acts up ??
31
-
docker compose up -d
32
33
# clear out dockerfiles to stop my drive exploding
34
-
docker system prune -af
35
36
cat <<- BODY | curl -d @- http://compuper:6500/notify
37
name=vps%3A%20ready%20($(git log -1 --pretty=format:%h))\
···
1
#!/usr/bin/env bash
2
3
+
echo "\n\nGot new commit: $(date)\n---\n\n"
4
5
# pull latest version
6
git fetch --all
···
23
# restart/rebuild all containers
24
docker compose build --no-cache
25
docker compose up -d --force-recreate
26
27
# clear out dockerfiles to stop my drive exploding
28
+
docker system prune -af > /dev/null
29
30
cat <<- BODY | curl -d @- http://compuper:6500/notify
31
name=vps%3A%20ready%20($(git log -1 --pretty=format:%h))\