mirror of
https://github.com/simon987/recipes.simon987.net.git
synced 2025-04-10 14:16:47 +00:00
Compare commits
9 Commits
f8ae33faf9
...
54ab64171c
Author | SHA1 | Date | |
---|---|---|---|
|
54ab64171c | ||
|
58f27cc21d | ||
|
0b222dae32 | ||
|
9dbe4db001 | ||
|
5ba15cd9a6 | ||
|
b619d5532d | ||
|
681de12c63 | ||
|
ee59c694f9 | ||
|
bdaaa79e56 |
@ -1,3 +0,0 @@
|
|||||||
.git
|
|
||||||
Dockerfile
|
|
||||||
.dockerignore
|
|
22
.drone.yml
22
.drone.yml
@ -1,22 +0,0 @@
|
|||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
|
|
||||||
platform:
|
|
||||||
os: linux
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: submodules
|
|
||||||
image: alpine/git
|
|
||||||
commands:
|
|
||||||
- git submodule update --init --recursive
|
|
||||||
- name: build image
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
username:
|
|
||||||
from_secret: DOCKER_USERNAME
|
|
||||||
password:
|
|
||||||
from_secret: DOCKER_PASSWORD
|
|
||||||
repo: simon987/recipes.simon987.net
|
|
||||||
context: ./
|
|
||||||
dockerfile: ./Dockerfile
|
|
||||||
tags: latest
|
|
61
.github/workflows/hugo.yml
vendored
Normal file
61
.github/workflows/hugo.yml
vendored
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
name: Deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: "pages"
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Install Hugo CLI
|
||||||
|
run: |
|
||||||
|
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.92.0/hugo_extended_0.92.0_Linux-64bit.deb \
|
||||||
|
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Setup Pages
|
||||||
|
id: pages
|
||||||
|
uses: actions/configure-pages@v4
|
||||||
|
- name: Build with Hugo
|
||||||
|
env:
|
||||||
|
HUGO_ENVIRONMENT: production
|
||||||
|
HUGO_ENV: production
|
||||||
|
run: |
|
||||||
|
hugo \
|
||||||
|
--gc \
|
||||||
|
--minify \
|
||||||
|
--baseURL "${{ steps.pages.outputs.base_url }}/"
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-pages-artifact@v2
|
||||||
|
with:
|
||||||
|
path: ./public
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v3
|
11
Dockerfile
11
Dockerfile
@ -1,11 +0,0 @@
|
|||||||
FROM jojomi/hugo:0.85.0 as build
|
|
||||||
|
|
||||||
WORKDIR /site
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
RUN hugo --minify -b https://recipes.simon987.net
|
|
||||||
|
|
||||||
FROM nginx:1.20.1-alpine
|
|
||||||
|
|
||||||
COPY nginx.conf /etc/nginx/nginx.conf
|
|
||||||
COPY --from=build /site/public/ /www/
|
|
@ -25,4 +25,4 @@ params:
|
|||||||
Content: Mobile-friendly aggregation of recipes I regularly make and enjoy.
|
Content: Mobile-friendly aggregation of recipes I regularly make and enjoy.
|
||||||
socialIcons:
|
socialIcons:
|
||||||
- name: github
|
- name: github
|
||||||
url: "https://github.com/simon987/recipes.simon987.net"
|
url: "https://github.com/simon987/recipes"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
title: "Crispy Tofu Bits"
|
title: "Crispy Tofu Bits"
|
||||||
date: 2024-02-03T12:46:21-05:00
|
date: 2024-02-03T12:46:21-05:00
|
||||||
draft: false
|
draft: false
|
||||||
tags: ["dinner"]
|
tags: ["dinner", "tofu", "rice"]
|
||||||
cover:
|
cover:
|
||||||
image: "images/image.webp"
|
image: "images/image.webp"
|
||||||
---
|
---
|
||||||
|
30
nginx.conf
30
nginx.conf
@ -1,30 +0,0 @@
|
|||||||
user nginx;
|
|
||||||
worker_processes auto;
|
|
||||||
|
|
||||||
error_log /dev/stderr warn;
|
|
||||||
|
|
||||||
events {
|
|
||||||
worker_connections 1024;
|
|
||||||
}
|
|
||||||
|
|
||||||
http {
|
|
||||||
include /etc/nginx/mime.types;
|
|
||||||
default_type application/octet-stream;
|
|
||||||
|
|
||||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
||||||
'$status $body_bytes_sent "$http_referer" '
|
|
||||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
||||||
|
|
||||||
access_log /dev/stdout main;
|
|
||||||
|
|
||||||
sendfile on;
|
|
||||||
keepalive_timeout 5;
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 80 default_server;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
root /www/;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user