first commit
Some checks failed
Build,test and deploy reaktionsfaehig.net / deploy-prod (push) Failing after 6s
Some checks failed
Build,test and deploy reaktionsfaehig.net / deploy-prod (push) Failing after 6s
This commit is contained in:
commit
961f623c2d
8 changed files with 126 additions and 0 deletions
39
.forgejo/workflows/deploy.yml
Normal file
39
.forgejo/workflows/deploy.yml
Normal file
|
@ -0,0 +1,39 @@
|
|||
name: Build,test and deploy reaktionsfaehig.net
|
||||
run-name: ${{ gitea.actor }} is building, testing and deploying the static page
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy-prod:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||
- run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: 'true'
|
||||
- name: Install apt packages
|
||||
run: apt update && apt install -y jq rsync
|
||||
- name: Get latest Hugo version
|
||||
run: |
|
||||
url=$(curl --silent "https://api.github.com/repos/gohugoio/hugo/releases/latest" | jq -r '.assets[] | select(.name | contains("linux-amd64.tar.gz")) | .browser_download_url' | grep -E 'hugo_[0-9]+\.[0-9]+\.[0-9]+_linux-amd64.tar.gz')
|
||||
wget -P /tmp/hugo/ "$url"
|
||||
version=$(echo "$url" | grep -oP 'hugo_\K[0-9]+\.[0-9]+\.[0-9]+')
|
||||
echo "Downloaded Hugo version: $version"
|
||||
- name: Unpack Hugo
|
||||
run: tar -xf /tmp/hugo/* -C ${{ gitea.workspace }}/bin
|
||||
- name: Build the static webpage
|
||||
run: ${{ gitea.workspace }}/bin/hugo --minify
|
||||
- name: Test static page
|
||||
run: bash ${{ gitea.workspace }}/bin/test_static_page.sh
|
||||
- name: Create private key
|
||||
run: |
|
||||
echo "${{ secrets.ACT_RUNNER_KEY }}" > /tmp/act_runner_key
|
||||
chmod 600 /tmp/act_runner_key
|
||||
- name: rsync public directory
|
||||
run: |
|
||||
/usr/bin/rsync -avz --delete -e "ssh -i /tmp/act_runner_key -o StrictHostKeyChecking=no" ${{ gitea.workspace }}/public/* root@vps03.hadan-it.com:/data/webspace/reaktionsfaehig.net/
|
||||
- run: echo "This job's status is ${{ job.status }}."
|
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
.DS_Store
|
||||
public/
|
||||
.hugo_build.lock
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[submodule "themes/internet-weblog"]
|
||||
path = themes/internet-weblog
|
||||
url = ssh://git@git.hadan-it.com:222/stiebke/hugo-internet-weblog.git
|
5
archetypes/default.md
Normal file
5
archetypes/default.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
+++
|
||||
date = '{{ .Date }}'
|
||||
draft = true
|
||||
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
||||
+++
|
40
hugo.toml
Normal file
40
hugo.toml
Normal file
|
@ -0,0 +1,40 @@
|
|||
baseURL = 'https://reaktionsfaehig.net/'
|
||||
languageCode = 'de-DE'
|
||||
title = 'reaktionsfaehig'
|
||||
theme = 'internet-weblog'
|
||||
|
||||
[markup.goldmark.renderer]
|
||||
unsafe=true
|
||||
|
||||
[author]
|
||||
Handle = "jnjosh"
|
||||
FirstName = "Josh"
|
||||
LastName = "Johnson"
|
||||
AboutPage = "/about"
|
||||
Location = "Durham, NC"
|
||||
FlickrID = "87151163@N00"
|
||||
|
||||
[params]
|
||||
Description = "Internet weblog of Software (Mac, iOS, Web) Developer, Josh Johnson."
|
||||
ShowCopyright = true
|
||||
RSSEnabled = true
|
||||
EnablePreferredDarkAppearance = true
|
||||
RSSMicropostTitles = false
|
||||
mainSections = [ "posts", "microposts", "photos" ]
|
||||
|
||||
[taxonomies]
|
||||
tag = "tags"
|
||||
category = "categories"
|
||||
series = "series"
|
||||
|
||||
[[menu.main]]
|
||||
name = "Post Archive"
|
||||
weight = 1
|
||||
identifier = "posts"
|
||||
url = "/posts/"
|
||||
|
||||
[[menu.main]]
|
||||
name = "Photography"
|
||||
weight = 2
|
||||
identifier = "photoography"
|
||||
url = "https://jnjosh.photography"
|
22
static/admin/config.yml
Normal file
22
static/admin/config.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
# when using the default proxy server port
|
||||
local_backend: true
|
||||
|
||||
backend:
|
||||
name: git-gateway
|
||||
branch: main
|
||||
media_folder: static/img
|
||||
public_folder: /img
|
||||
collections:
|
||||
- name: 'posts'
|
||||
label: 'Posts'
|
||||
folder: 'content/posts'
|
||||
create: true
|
||||
slug: '{{year}}-{{month}}-{{day}}-{{slug}}'
|
||||
editor:
|
||||
preview: false
|
||||
fields:
|
||||
- { label: 'Title', name: 'title', widget: 'string' }
|
||||
- { label: 'Publish Date', name: 'date', widget: 'datetime' }
|
||||
- { label: 'Description', name: 'description', widget: 'string' }
|
||||
- { label: 'Body', name: 'body', widget: 'markdown' }
|
||||
|
13
static/admin/index.html
Normal file
13
static/admin/index.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="robots" content="noindex" />
|
||||
<title>Content Manager</title>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Include the script that builds the page and powers Decap CMS -->
|
||||
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
|
||||
</body>
|
||||
</html>
|
1
themes/internet-weblog
Submodule
1
themes/internet-weblog
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit d654868451991e917e21821ce4ca261a35a9f197
|
Loading…
Add table
Reference in a new issue