Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cool change #9

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
33 changes: 33 additions & 0 deletions .github/workflows/gh-pages-deploy-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Github Pages

on:
pull_request:
branches:
- master
paths:
- '**.md'
- 'docs/**'

jobs:
publish:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Copy new docs to gh-pages
run: |
git checkout gh-pages
git checkout ${GITHUB_REF##*/} README.md
git checkout ${GITHUB_REF##*/} CONTRIBUTING.md
git checkout ${GITHUB_REF##*/} CHANGELOG.md
git checkout ${GITHUB_REF##*/} docs
- name: Push to gh-pages
uses: EndBug/add-and-commit@v5
with:
author_name: ${{ github.actor }}
author_email: ${{ github.actor }}@users.noreply.github.com
message: "Documentation sync from master"
branch: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
[![FOSSA Status](https://app.fossa.com/api/projects/custom%2B162%2Fgithub.com%2FAbsaOSS%2Fk8gb.svg?type=shield)](https://app.fossa.com/projects/custom%2B162%2Fgithub.com%2FAbsaOSS%2Fk8gb?ref=badge_shield)
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/4866/badge)](https://bestpractices.coreinfrastructure.org/projects/4866)



Some change in README.md

<img src="https://i.pinimg.com/originals/2d/8e/e8/2d8ee815146390d567706f2c7b5c2916.gif" />



A Global Service Load Balancing solution with a focus on having cloud native qualities and work natively in a Kubernetes context.

Just a single Gslb CRD to enable the Global Load Balancing:
Expand Down
2 changes: 1 addition & 1 deletion controllers/ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (r *GslbReconciler) saveIngress(instance *k8gbv1beta1.Gslb, i *v1beta1.Ingr
err = r.Create(context.TODO(), i)

if err != nil {
// Creation failed
// Creation failed, yada
log.Err(err).
Str("namespace", i.Namespace).
Str("name", i.Name).
Expand Down
10 changes: 10 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[build]
command = "git config remote.origin.url || git remote add -f -t gh-pages origin https://github.com/jkremser/k8gb && git fetch origin gh-pages:gh-pages && git checkout gh-pages && make build"
publish = "_site/"
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF -- {README,CONTRIBUTING,CHANGELOG}.md docs/"

[context.deploy-preview.environment]
ACCESS_TOKEN = "not so secret"

[context.deploy-preview]
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF -- {README,CONTRIBUTING,CHANGELOG}.md docs/"