Added Dockerfile and Woodpecker CI definition

This commit is contained in:
2024-08-25 01:54:58 -05:00
parent e7189f8785
commit f40f6e7ea6
3 changed files with 32 additions and 1 deletions

22
.woodpecker/build.yaml Normal file
View File

@ -0,0 +1,22 @@
when:
- event: push
branch: master
steps:
- name: Determine Image Tag
image: alpine:latest
commands:
- rm -f tags.txt
- echo $(date +"%Y%m%d-%H%M%S") >> tags.txt
- echo "latest" >> tags.txt
- name: Package and Upload Docker Image
image: woodpeckerci/plugin-docker-buildx
settings:
repo: gitea.iwanaga.moe/cjtibule/MyPlaygroundBlog
tags_file: tags.txt
platforms:
- linux/amd64
username:
from_secret: Gitea_PackageApiUsername
password:
from_secret: Gitea_PackageApiToken
registry: gitea.iwanaga.moe

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM alpine:latest
RUN rm -rf ./public/*
RUN apk add --update hugo
RUN hugo
FROM nginx:stable-alpine
COPY ./public /usr/share/nginx/html
EXPOSE 80

View File

@ -1,4 +1,4 @@
baseURL = 'https://myplayground.ctibule.ca/'
baseURL = 'http://localhost'
languageCode = 'en-us'
title = "Carl's Playground"
theme = 'PaperMod'