Skip to content

Commit 077f4fd

Browse files
committed
build: prevent build cache creating outdated docs-server images
1 parent 7905e88 commit 077f4fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ COPY --from=builder /usr/bin/caddy /usr/bin/caddy
1414

1515
COPY Caddyfile /etc/caddy/Caddyfile
1616
#COPY hyperbook/.hyperbook/out /srv
17-
RUN git clone https://github.com/software-challenge/docs.git -b live --depth 1 /srv
17+
RUN git clone https://github.com/software-challenge/docs.git -b live --depth 1 /srv && echo $(date) > /srv/timestamp
1818

1919
COPY bin/update-content.sh /
2020

bin/push-production.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ trap onkill SIGTERM
1818
ssh -S /tmp/ssh-ctrl-socket -O check $server || exit 1
1919
docker login localhost:5000 || exit 1
2020

21-
docker build -t docs-server --build-arg GITHUB_SECRET="$GITHUB_SECRET" .
21+
docker build --no-cache -t docs-server --build-arg GITHUB_SECRET="$GITHUB_SECRET" .
2222
docker tag docs-server localhost:5000/docs-server
2323
docker push localhost:5000/docs-server
2424
ssh -S /tmp/ssh-ctrl-socket -O exit $server

0 commit comments

Comments
 (0)