adding a step to ensure new code is pulled
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
FROM alpine:latest as build_stage
|
FROM alpine:latest as build_stage
|
||||||
WORKDIR /opt
|
WORKDIR /opt
|
||||||
RUN apk add git hugo
|
RUN apk add git hugo
|
||||||
|
# Adding this so the repo isn't cached
|
||||||
|
ADD https://api.github.com/repos/scottyah/scottyah-blog/git/refs/heads/main version.json
|
||||||
RUN git clone https://github.com/scottyah/scottyah-blog.git
|
RUN git clone https://github.com/scottyah/scottyah-blog.git
|
||||||
WORKDIR /opt/scottyah-blog/hugo-content
|
WORKDIR /opt/scottyah-blog/hugo-content
|
||||||
RUN hugo
|
RUN hugo
|
||||||
|
|||||||
Reference in New Issue
Block a user