Added Dockerfile and Woodpecker CI definition
This commit is contained in:
22
.woodpecker/build.yaml
Normal file
22
.woodpecker/build.yaml
Normal 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
9
Dockerfile
Normal 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
|
||||
Reference in New Issue
Block a user