mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 15:25:57 +00:00
* feat(other): major improvement of deployment Motivation ---------- Kubernetes: * backend becomes a statefulset (exclusive volume mount) See: https://spacelift.io/blog/statefulset-vs-deployment * implement neo4j backup with job Docker: * consistent targets across all dockerfiles * remove redundant labels * remove unnecessary build args * remove obsolete networks * remove development dependencies for production Rebranding: * add image tags for local tagging and pulling * use Github's docker build workflows * use Github container registry * ONBUILD to simplify caller Dockerfiles * docker compose for branding Tooling: * same node --version as in dockerfile Docs: * missing step in README.md * refactor: remove submodules It's better to keep them all in a separate repository * improve kubernetes chart * better image tag defaults * split neo4j into its own chart (for re-use) * use application defaults where possible * optional resources for all pods * remove obsolete key/value pair from secrets * remove obsolete build argsand and add labels for neo4j enterprise * env vars for webapp * allow to define redirect domains Define a list of Domains that redirect to the domain of the project. The idea is to provide the ability to redirect eg. www.domain.tld to domain.tld * remove maintenance part regarding database * move backup job outside template folder * name the ingress * updated ingress * handle empty case of middlewares * try to default the ingress * use quote * restore todo-next-update * fix docu check * fix naming * try using prod:migrate * try using override config * copy src folder * try using base as image instead of build * fix test build * force build * comment for the problem * fix webapp tests (potentially) --------- Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
66 lines
2.1 KiB
YAML
66 lines
2.1 KiB
YAML
name: ocelot.social check documentation
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
files-changed:
|
|
name: Detect File Changes - Markdown files
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
markdown: ${{ steps.changes.outputs.markdown }}
|
|
documentation: ${{ steps.changes.outputs.documentation }}
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.1.7
|
|
|
|
- name: Check for markdown file changes
|
|
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
|
|
id: changes
|
|
with:
|
|
token: ${{ github.token }}
|
|
filters: .github/file-filters.yml
|
|
list-files: shell
|
|
|
|
check-markdown-links:
|
|
name: Check Markdown links
|
|
needs: files-changed
|
|
runs-on: ubuntu-latest
|
|
if: needs.files-changed.outputs.markdown == 'true'
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.1.7
|
|
|
|
- name: Remove uncheckable documentation files
|
|
run: rm -rf ./CHANGELOG.md # workaround until https://github.com/gaurav-nelson/github-action-markdown-link-check/pull/183 has been done
|
|
|
|
- name: Check Markdown Links
|
|
uses: gaurav-nelson/github-action-markdown-link-check@1b916f2cf6c36510a6059943104e3c42ce6c16bc # 1.0.15
|
|
with:
|
|
use-quiet-mode: 'yes'
|
|
use-verbose-mode: 'no'
|
|
# at any .md file change take the chance to check the links in all .md files
|
|
check-modified-files-only: 'no'
|
|
config-file: '.github/workflows/mlc_config.json'
|
|
base-branch: 'master'
|
|
folder-path: '.'
|
|
|
|
test-vuepress-build:
|
|
name: Test Vuepress build
|
|
needs: files-changed
|
|
runs-on: ubuntu-latest
|
|
if: needs.files-changed.outputs.documentation == 'true'
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.1.7
|
|
|
|
- name: Setup Node 20
|
|
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.0.3
|
|
with:
|
|
node-version: '20'
|
|
|
|
- name: npm-install
|
|
run: npm install
|
|
|
|
- name: npm-docs:build
|
|
run: npm run docs:build
|