mirror of
https://github.com/foomo/foomo-docs.git
synced 2025-10-16 12:35:40 +00:00
feat: split actions to validate and publish
This commit is contained in:
parent
8d9d348532
commit
5be24eda6c
@ -1,34 +1,12 @@
|
|||||||
# https://docusaurus.io/docs/deployment#deploying-to-github-pages
|
# https://docusaurus.io/docs/deployment#deploying-to-github-pages
|
||||||
name: documentation
|
name: publish
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
checks:
|
publish:
|
||||||
if: github.event_name != 'push'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v1
|
|
||||||
- uses: actions/setup-node@v1
|
|
||||||
with:
|
|
||||||
node-version: '14.x'
|
|
||||||
- name: Test Build
|
|
||||||
working-directory: foomo
|
|
||||||
run: |
|
|
||||||
if [ -e yarn.lock ]; then
|
|
||||||
yarn install --frozen-lockfile
|
|
||||||
elif [ -e package-lock.json ]; then
|
|
||||||
npm ci
|
|
||||||
else
|
|
||||||
npm i
|
|
||||||
fi
|
|
||||||
npm run build
|
|
||||||
gh-release:
|
|
||||||
if: github.event_name != 'pull_request'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
26
.github/workflows/validate.yml
vendored
Normal file
26
.github/workflows/validate.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# https://docusaurus.io/docs/deployment#deploying-to-github-pages
|
||||||
|
name: validate
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
validate:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: '14.x'
|
||||||
|
- name: Test Build
|
||||||
|
working-directory: foomo
|
||||||
|
run: |
|
||||||
|
if [ -e yarn.lock ]; then
|
||||||
|
yarn install --frozen-lockfile
|
||||||
|
elif [ -e package-lock.json ]; then
|
||||||
|
npm ci
|
||||||
|
else
|
||||||
|
npm i
|
||||||
|
fi
|
||||||
|
npm run build
|
||||||
@ -9,6 +9,13 @@ Setting up spot instance node pools is a great way to save money on stateless ap
|
|||||||
|
|
||||||
## Setting Up Pod Toleration
|
## Setting Up Pod Toleration
|
||||||
|
|
||||||
|
### Pod Toleration
|
||||||
|
|
||||||
|
### DaemonSet Toleration
|
||||||
|
|
||||||
|
Don't forget to set the daemonset tolerations
|
||||||
|
|
||||||
|
|
||||||
## Setting Up Pod Disruption Budgets
|
## Setting Up Pod Disruption Budgets
|
||||||
|
|
||||||
Setting up a pod disruption budget is important due to erratic node shutdown possibility.
|
Setting up a pod disruption budget is important due to erratic node shutdown possibility.
|
||||||
@ -33,4 +40,3 @@ For more details check out [here](https://kubernetes.io/docs/tasks/run-applicati
|
|||||||
## Setting Up Termination Handling
|
## Setting Up Termination Handling
|
||||||
|
|
||||||
## Setting Up K8s Cron Shutdown Cleanup
|
## Setting Up K8s Cron Shutdown Cleanup
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user