Compare commits
7 Commits
c919d375a8
...
1.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
| a3333adcb0 | |||
| 4801fe754e | |||
| 1b151fd27f | |||
| e33face849 | |||
| e4818e76e6 | |||
| bfe0f324fc | |||
| 4ab2c05be5 |
33
.gitea/workflows/hugobuild.yaml
Normal file
33
.gitea/workflows/hugobuild.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
name: GitHub Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true # Fetch Hugo themes (true OR recursive)
|
||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
||||
|
||||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v3
|
||||
with:
|
||||
hugo-version: '0.156.0'
|
||||
# extended: true
|
||||
|
||||
- name: Build
|
||||
run: hugo --minify --destination ./public
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile
|
||||
push: true
|
||||
tags: "docker.paulmontag.info/blog:${{ github.ref }}"
|
||||
|
||||
3
Dockerfile
Normal file
3
Dockerfile
Normal file
@@ -0,0 +1,3 @@
|
||||
FROM nginx
|
||||
|
||||
COPY ./public /usr/share/nginx/html
|
||||
Reference in New Issue
Block a user