This commit is contained in:
parent
8c641ce662
commit
cac7c0df2d
2 changed files with 30 additions and 0 deletions
16
.forgejo/workflows/image.yaml
Normal file
16
.forgejo/workflows/image.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
# SPDX-FileCopyrightText: 2025 Ncam Gnrvngu <info@ncamgnrvngu.eu>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: gcr.io/kaniko-project/executor:debug
|
||||||
|
steps:
|
||||||
|
- run: 'echo { \"auths\": { \"git.ncamgnrvngu.eu\": { \"auth\": \"$(echo -n ncamgnrvngu:${{ secrets.DOCKER_TOKEN }} | base64)\" } } } > /kaniko/.docker/config.json'
|
||||||
|
- run: '/kaniko/executor --context "git://${{ github.token }}@git.ncamgnrvngu.eu/NcamGnrvngu/website.git#refs/heads/master" --dockerfile "Dockerfile" --destination "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