Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Adding GitHub Workflow instead of TravisCI
Browse files Browse the repository at this point in the history
  • Loading branch information
ruzickap committed Oct 17, 2019
1 parent 0bc1e09 commit 2d53101
Show file tree
Hide file tree
Showing 6 changed files with 9,228 additions and 89 deletions.
18 changes: 18 additions & 0 deletions .dependabot/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 1
update_configs:
- package_manager: "javascript"
directory: "/"
update_schedule: "daily"
target_branch: "master"
version_requirement_updates: "auto"
default_assignees:
- "ruzickap"
# Allow all direct dependencies to be updated, only allow indirect
# dependencies to update when there's a security release.
allowed_updates:
- match:
update_type: all
dependency_type: direct
- match:
update_type: security
dependency_type: indirect
100 changes: 100 additions & 0 deletions .github/workflows/vuepress-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: "vuepress-build"

on:
push:
branches: [master]
paths:
- '.github/**'
- 'docs/**'
- .spelling
- package.json
- package-lock.json

env:
EXCLUDE_WEB_PAGES: "(mylabs.dev)"

jobs:
markdown-lint-check:
name: "Markdown lint check"
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v1

- name: "Install Node.js 12"
uses: actions/setup-node@v1
with:
node-version: 12.x

- name: "Install markdownlint-cli"
run: npm install -g markdownlint-cli

- name: "Create markdownlint configuration file"
run: |
echo "{ MD013: { code_blocks: false } }" > /tmp/markdownlint_config.json
- name: "Run markdownlint"
run: find . -path ./node_modules -prune -o -name "*.md" -print0 | xargs -t -0 markdownlint -c /tmp/markdownlint_config.json

markdown-spell-check:
name: "Markdown spell check"
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v1

- name: "Install Node.js 12"
uses: actions/setup-node@v1
with:
node-version: 12.x

- name: "Install markdown-spellcheck"
run: npm install -g markdown-spellcheck

- name: "Run mdspell"
run: mdspell '**/*.md' '!**/node_modules/**/*.md' --ignore-numbers --ignore-acronyms --report --en-gb

vuepress-build:
name: "VuePress build"
runs-on: ubuntu-18.04
needs:
- markdown-lint-check
- markdown-spell-check

steps:
- uses: actions/checkout@v1

- name: "Install Node.js 12"
uses: actions/setup-node@v1
with:
node-version: 12.x

- name: "Install VuePress and build the document"
run: |
npm install
npm run build
cp LICENSE docs/.vuepress/dist
ln -s docs/.vuepress/dist ${GITHUB_REPOSITORY##*/}
sed -e "s@(part-@(https://github.com/${GITHUB_REPOSITORY}/tree/master/docs/part-@" -e 's@.\/.vuepress\/public\/@./@' docs/README.md > docs/.vuepress/dist/README.md
- name: "Check links"
run: |
echo "127.0.0.1 ${GITHUB_REPOSITORY%/*}.github.io" | sudo tee -a /etc/hosts
curl -s https://getcaddy.com | bash -s personal
cat > Caddyfile << EOF
https://${GITHUB_REPOSITORY%/*}.github.io
tls self_signed
EOF
sudo caddy -quiet &
go get -u github.com/raviqqe/muffet
~/go/bin/muffet --skip-tls-verification --exclude "${EXCLUDE_WEB_PAGES}" https://${GITHUB_REPOSITORY%/*}.github.io/${GITHUB_REPOSITORY##*/}
- name: Deploy
uses: peaceiris/actions-gh-pages@v2.5.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./docs/.vuepress/dist
with:
emptyCommits: false
forceOrphan: true
87 changes: 0 additions & 87 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Istio webinar

[![Build Status](https://travis-ci.com/ruzickap/k8s-istio-webinar.svg?branch=master)](https://travis-ci.com/ruzickap/k8s-istio-webinar)
![Build Status](https://github.com/ruzickap/k8s-istio-webinar/workflows/vuepress-build/badge.svg)

[Istio](https://istio.io/) is an open platform to connect, secure, control
and observe microservices, also known as a service mesh, on cloud platforms
Expand Down Expand Up @@ -65,4 +65,4 @@ and observe what exactly is going on with your services.

* [Istio Workshop by Ray Tsang](https://github.com/retroryan/istio-workshop)

* [Amazon EKS Workshop - Service Mesh with Istio](https://eksworkshop.com/servicemesh/)
* [Amazon EKS Workshop - Service Mesh with Istio](https://eksworkshop.com/servicemesh_with_istio/)
Loading

0 comments on commit 2d53101

Please sign in to comment.