Skip to content

Commit 9098c01

Browse files
committed
switch back to micro deploy w/ caddy
1 parent 1f74c3b commit 9098c01

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/cicd.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@ jobs:
33
cicd:
44
# https://github.com/internetarchive/cicd
55
uses: internetarchive/cicd/.github/workflows/cicd.yml@main
6+
with:
7+
NOMAD_VAR_PORTS: '{ 80 = "http" }'
8+
NOMAD_VAR_HOSTNAMES: '["nomad.archive.org"]'
9+
NOMAD_VAR_MEMORY: 100
10+
NOMAD_VAR_CHECK_PROTOCOL: 'tcp'
11+
BASE_DOMAIN: ux-b.archive.org
12+
secrets:
13+
NOMAD_TOKEN: xxx

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@ RUN mkdir -m777 /usr/local/sbin && \
88
rm nomad.zip && \
99
chmod 777 nomad && \
1010
# podman for build.sh
11-
apk add bash zsh jq podman && \
11+
apk add bash zsh jq podman caddy && \
1212
# using podman not docker
1313
ln -s /usr/bin/podman /usr/bin/docker
1414

15+
WORKDIR /app
16+
COPY ci.yml .
17+
1518
WORKDIR /
1619
COPY build.sh test.sh deploy.sh /
20+
21+
CMD ["/usr/sbin/caddy", "file-server", "-r=/app"]

0 commit comments

Comments
 (0)