Compare commits

..

3 Commits

Author SHA1 Message Date
06a9accdac Merge pull request 'features/cicd' (#2) from features/cicd into main
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #2
2023-11-28 16:42:22 -08:00
99563d2078 pushing to my personal server 2023-11-28 16:40:46 -08:00
d4ab9ff053 adding files to generate docker image 2023-11-28 16:33:17 -08:00
3 changed files with 43 additions and 0 deletions

3
.dockerignore Normal file
View File

@ -0,0 +1,3 @@
.vscode
.github
.git

24
.drone.yml Normal file
View File

@ -0,0 +1,24 @@
---
kind: pipeline
type: docker
name: buildLatestImage
steps:
- name: buildLatestImage
image: plugins/docker
settings:
registry: git.jamestombleson.com
repo: jtom38/Personal-Site
username: jtom38
password:
from_secret: GiteaContainerRegistry
trigger:
branch:
include:
- main
event:
exclude:
- pull_request

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM alpine:3.18 as build
RUN apk add hugo
RUN apk add go
RUN apk add git
COPY . /app
WORKDIR /app
RUN hugo
FROM alpine:3.18
RUN apk add caddy
COPY --from=build /app/public /site
WORKDIR /site
EXPOSE 1313
ENTRYPOINT [ "caddy", "file-server", "--listen", ":1313" ]