feat: split actions to validate and publish

This commit is contained in:
Stefan Martinov 2022-01-11 14:41:56 +01:00
parent 8d9d348532
commit 31bde2b547
4 changed files with 36 additions and 26 deletions

View File

@ -1,34 +1,12 @@
# https://docusaurus.io/docs/deployment#deploying-to-github-pages
name: documentation
name: publish
on:
pull_request:
branches: [main]
push:
branches: [main]
branches: [ main ]
jobs:
checks:
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'
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

26
.github/workflows/validate.yml vendored Normal file
View 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

View File

@ -9,6 +9,13 @@ Setting up spot instance node pools is a great way to save money on stateless ap
## Setting Up Pod Toleration
### Pod Toleration
### DaemonSet Toleration
Don't forget to set the daemonset tolerations
## Setting Up Pod Disruption Budgets
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 K8s Cron Shutdown Cleanup