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

fix dns in docker mode #127

fix dns in docker mode

fix dns in docker mode #127

Workflow file for this run

---
name: docs
jobs:
build:
container:
image: ruby:2.7
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-docgems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: ${{ runner.os }}-docgems-
- name: setup
run: |
cd docs
bundle install
- name: setkeys
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.DEPLOY_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: build
shell: bash
run: |
if [[ ${GITHUB_REF##*/} == 'master' ]]; then
ROOT_DIR=/
else
ROOT_DIR=/branches/${GITHUB_REF##*/}
fi
cd docs
git config --global user.email "[email protected]"
git config --global user.name "dsiaw+kaiserdocs"
ROOT_DIR=$ROOT_DIR bash deploy-docs.sh
'on':
push:
branches:
- '*'