This commit is contained in:
parent
8c641ce662
commit
8bb1b9caac
2 changed files with 37 additions and 0 deletions
23
.forgejo/workflows/image.yaml
Normal file
23
.forgejo/workflows/image.yaml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# SPDX-FileCopyrightText: 2025 Ncam Gnrvngu <info@ncamgnrvngu.eu>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: docker/setup-buildx-action@v3
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
username: ncamgnrvngu
|
||||
password: ${{ secrets.DOCKER_TOKEN }}
|
||||
registry: git.ncamgnrvngu.eu
|
||||
- uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: git.ncamgnrvngu.eu/ncamgnrvngu/website:latest
|
||||
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# SPDX-FileCopyrightText: 2025 Ncam Gnrvngu <info@ncamgnrvngu.eu>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
FROM ghcr.io/getzola/zola:v0.20.0 AS zola
|
||||
|
||||
WORKDIR /project
|
||||
COPY . /project
|
||||
RUN ["zola", "build"]
|
||||
|
||||
FROM nginx:latest
|
||||
WORKDIR /usr/share/nginx/html
|
||||
COPY --from=zola /project/public .
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue