Add 'CI/CD'
This commit is contained in:
parent
8bf98e683c
commit
fc10789c9c
8
Dockerfile
Normal file
8
Dockerfile
Normal file
|
@ -0,0 +1,8 @@
|
|||
FROM klakegg/hugo as build
|
||||
|
||||
WORKDIR /src
|
||||
COPY . /src/
|
||||
RUN hugo
|
||||
|
||||
FROM nginx
|
||||
COPY --from=build /src/public /usr/share/nginx/html
|
16
Makefile
Normal file
16
Makefile
Normal file
|
@ -0,0 +1,16 @@
|
|||
DOCKER_IMAGE := cr.annabunches.net/freyjaskiss-static
|
||||
DOCKER_TAG := latest
|
||||
|
||||
.PHONY: all build push
|
||||
|
||||
all: serve
|
||||
|
||||
serve:
|
||||
hugo serve -D --bind 0.0.0.0 -b http://${DEV_IP}:1313/
|
||||
|
||||
build:
|
||||
# TODO: figure out why this always uses the cache on the last step...
|
||||
docker build --no-cache -t ${DOCKER_IMAGE}:${DOCKER_TAG} .
|
||||
|
||||
push:
|
||||
docker push ${DOCKER_IMAGE}:${DOCKER_TAG}
|
Loading…
Reference in New Issue
Block a user