Compare commits
10 commits
ssg-migrat
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 8498bfca49 | |||
| 577974677a | |||
| 75595bba0e | |||
| 9b0623261b | |||
| b4bc5c016f | |||
| 893b80d262 | |||
| f3d7ff5d71 | |||
| 2059de21da | |||
| e9d50af0ae | |||
| 1aef4a5794 |
8 changed files with 297 additions and 3 deletions
42
.forgejo/issue_template/01-content-update.yml
Normal file
42
.forgejo/issue_template/01-content-update.yml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
name: Content update
|
||||
about: Content creation or edition
|
||||
title: '[Content]: '
|
||||
ref: 'content-update'
|
||||
assignees:
|
||||
- aleidk
|
||||
labels:
|
||||
- Priority/Low
|
||||
- Severity/Low
|
||||
- Status/Pending
|
||||
- Type/Content
|
||||
body:
|
||||
- type: dropdown
|
||||
id: topic
|
||||
attributes:
|
||||
label: "Topic:"
|
||||
multiple: true
|
||||
default: 0
|
||||
options:
|
||||
- Garden
|
||||
- Blog
|
||||
- Devlog
|
||||
- Other
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: content
|
||||
attributes:
|
||||
label: "Content description:"
|
||||
description: Brief ideas of what this content is about.
|
||||
placeholder: Lorem Ipsum...
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: extra
|
||||
attributes:
|
||||
label: "Extra data and references:"
|
||||
placeholder: Lorem Ipsum...
|
||||
validations:
|
||||
required: false
|
||||
60
.forgejo/issue_template/02-feature.yml
Normal file
60
.forgejo/issue_template/02-feature.yml
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
name: Feature request
|
||||
about: Request a new feature to be added
|
||||
title: '[Feature]: '
|
||||
ref: 'development'
|
||||
assignees:
|
||||
- aleidk
|
||||
labels:
|
||||
- Priority/Low
|
||||
- Severity/Low
|
||||
- Status/Pending
|
||||
- Type/Feature
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
We appreciate your feedback on how to improve this project. Please be sure to include as much details and any resources if possible!
|
||||
|
||||
- type: dropdown
|
||||
attributes:
|
||||
multiple: false
|
||||
label: Type of Feature
|
||||
default: 0
|
||||
options:
|
||||
- "✨ New Feature"
|
||||
- "📝 Documentation"
|
||||
- "🎨 Style and UI"
|
||||
- "🔨 Code Refactor"
|
||||
- "⚡ Performance Improvements"
|
||||
- "✅ New Test"
|
||||
- "🪢 Architecture"
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: Description
|
||||
description: Give us a brief description of the feature or enhancement you would like.
|
||||
placeholder: As <who> <when> <where>, I want <what> because <why>
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: completion-criteria
|
||||
attributes:
|
||||
label: Completion criteria
|
||||
description: Tell us what this feature needs to do to be considered completed using verificable items.
|
||||
placeholder: |
|
||||
- [ ] Read the configuration file using the yaml format
|
||||
- [ ] Fetch data from an the json-placehoder API
|
||||
- [ ] Save the data in the database
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: additional-information
|
||||
attributes:
|
||||
label: Additional Information
|
||||
description: |
|
||||
Please leave any additional information on the feature request that could be helpful! like proposed solutions, examples, links, screenshots, etc.
|
||||
93
.forgejo/issue_template/03-bug-report.yml
Normal file
93
.forgejo/issue_template/03-bug-report.yml
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
name: Bug report
|
||||
about: Something isn't working as expected
|
||||
title: '[Bug]: '
|
||||
ref: 'development'
|
||||
assignees:
|
||||
- aleidk
|
||||
labels:
|
||||
- Priority/Low
|
||||
- Severity/Low
|
||||
- Status/Pending
|
||||
- Type/Bug
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
We appreciate your feedback on how to improve this project. Please be sure to include as much details and any resources if possible!
|
||||
|
||||
- type: checkboxes
|
||||
id: terms
|
||||
attributes:
|
||||
label: Before submitting, I checked...
|
||||
options:
|
||||
- label: The [issue tracker](../) in case this has been reported before
|
||||
required: true
|
||||
- label: The severity of the bug
|
||||
required: true
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: expected
|
||||
attributes:
|
||||
label: "Expected behavior:"
|
||||
description: A clear and concise description of what you expected to happen. Include screenshots and/or logs if relevant.
|
||||
placeholder: As <who> <when> <where>, I want <what> because <why>
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: current
|
||||
attributes:
|
||||
label: "Current behavior:"
|
||||
description: A clear and concise description of what actually happened. Include screenshots and/or logs if relevant.
|
||||
placeholder: As <who> <when> <where>, I want <what> because <why>
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: reproduce
|
||||
attributes:
|
||||
label: "Steps to reproduce:"
|
||||
description: Anambiguous set of steps to reproduce this bug. Include code snippets if relevant.
|
||||
placeholder: |
|
||||
1. Use x argument / navigate to
|
||||
2. Fill this information
|
||||
3. Go to...
|
||||
4. See error
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: dropdown
|
||||
attributes:
|
||||
multiple: false
|
||||
label: Is this a regresion?
|
||||
description: Did this behaviour used to work in the previous version?
|
||||
default: 0
|
||||
options:
|
||||
- "I don't know"
|
||||
- "This is a new feature"
|
||||
- "Yes"
|
||||
- "No"
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: environment
|
||||
attributes:
|
||||
label: "Your environment:"
|
||||
description: Tell us details about the environment you experienced the bug in. A minimal/isolated enviroment to reproduce would be apreciated.
|
||||
placeholder: |
|
||||
- Version used:
|
||||
- Browser Name and version:
|
||||
- Operating System and version (desktop or mobile):
|
||||
- Link to your project:
|
||||
validations:
|
||||
required: false
|
||||
|
||||
- type: textarea
|
||||
id: additional-information
|
||||
attributes:
|
||||
label: "Additional Information:"
|
||||
description: |
|
||||
Please leave any additional information on the bug that could be helpful! like proposed solutions, examples, links, screenshots, etc.
|
||||
65
.forgejo/workflows/build-docker-image.yaml
Normal file
65
.forgejo/workflows/build-docker-image.yaml
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
name: Publish image
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
create-docker-images:
|
||||
runs-on: host
|
||||
steps:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.alecodes.page
|
||||
username: ${{ vars.CONTAINER_REGISTRY_USER }}
|
||||
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
push: true
|
||||
tags: |
|
||||
git.alecodes.page/alecodes/page:latest
|
||||
git.alecodes.page/alecodes/page:${{ github.sha }}
|
||||
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- create-docker-images
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: 'Docker Stack Deploy'
|
||||
uses: https://github.com/cssnr/stack-deploy-action@v1
|
||||
with:
|
||||
host: ${{ vars.DOCKER_SWARM_HOST }}
|
||||
port: ${{ vars.DOCKER_SWARM_PORT }}
|
||||
user: ${{ secrets.DOCKER_SWARM_USER }}
|
||||
ssh_key: '${{ secrets.DOCKER_SWARM_SSH_KEY }}'
|
||||
file: 'docker-stack.yaml'
|
||||
name: 'personal_page'
|
||||
|
||||
rebase:
|
||||
runs-on: ubuntu-latest
|
||||
needs: deploy
|
||||
if: success()
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: '0'
|
||||
ref: content-update
|
||||
|
||||
- name: Update branch
|
||||
run: |
|
||||
set -x
|
||||
git config --global user.name "robo"
|
||||
git config --global user.email "robo@alecodes.page"
|
||||
git rebase origin/main
|
||||
git push origin content-update --force-with-lease
|
||||
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
FROM --platform=linux/amd64 ghcr.io/getzola/zola:v0.19.2 AS builder
|
||||
|
||||
COPY . /project
|
||||
WORKDIR /project
|
||||
RUN ["zola", "build"]
|
||||
|
||||
FROM ghcr.io/static-web-server/static-web-server:2
|
||||
WORKDIR /
|
||||
COPY --from=builder /project/dist /public
|
||||
5
cog.toml
5
cog.toml
|
|
@ -1,9 +1,9 @@
|
|||
from_latest_tag = true
|
||||
ignore_merge_commits = false
|
||||
ignore_merge_commits = true
|
||||
disable_changelog = false
|
||||
disable_bump_commit = false
|
||||
generate_mono_repository_global_tag = true
|
||||
branch_whitelist = []
|
||||
branch_whitelist = ["main", "release/**"]
|
||||
skip_ci = "[skip ci]"
|
||||
skip_untracked = false
|
||||
pre_bump_hooks = []
|
||||
|
|
@ -14,6 +14,7 @@ post_package_bump_hooks = []
|
|||
[git_hooks]
|
||||
|
||||
[commit_types]
|
||||
content = { changelog_title = "Content"}
|
||||
|
||||
[changelog]
|
||||
path = "CHANGELOG.md"
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
+++
|
||||
|
||||
# This is a awesome page :D
|
||||
# This is a **really** awesome page :3
|
||||
|
|
|
|||
24
docker-stack.yaml
Normal file
24
docker-stack.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
networks:
|
||||
reverse_proxy:
|
||||
external: true
|
||||
|
||||
services:
|
||||
page:
|
||||
image: git.alecodes.page/alecodes/page:${GITHUB_SHA:-latest}
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- reverse_proxy
|
||||
deploy:
|
||||
rollback_config:
|
||||
failure_action: continue
|
||||
update_config:
|
||||
delay: 2s
|
||||
failure_action: rollback
|
||||
order: start-first
|
||||
placement:
|
||||
constraints:
|
||||
- node.labels.services_kind==projects
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.personal_page.rule=Host(`alecodes.page`)
|
||||
- traefik.http.services.personal_page.loadbalancer.server.port=80
|
||||
Loading…
Add table
Add a link
Reference in a new issue