feat: add Dockerfile and build pipeline
This commit is contained in:
parent
fa8cda57b8
commit
852636d2e1
9
.gitea/workflows/docker.yaml
Normal file
9
.gitea/workflows/docker.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
name: Build Docker Container
|
||||||
|
run-name: ${{ gitea.actor }} is building container
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Build-Container-Image:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: docker build -t alexohneander/alexohneander-zola:latest .
|
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
FROM ghcr.io/getzola/zola:v0.20.0 as zola
|
||||||
|
|
||||||
|
COPY . /project
|
||||||
|
WORKDIR /project
|
||||||
|
RUN ["zola", "build"]
|
||||||
|
|
||||||
|
FROM ghcr.io/static-web-server/static-web-server:2
|
||||||
|
WORKDIR /
|
||||||
|
COPY --from=zola /project/public /public
|
Loading…
x
Reference in New Issue
Block a user