Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Dog Food
on:
push:
branches:
- dogfood
jobs:
build:
name: Deploy Dog Food
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install SSH key
uses: JimCronqvist/action-ssh@master
with:
hosts: supercoder@dev-forum-2.nexf.org
privateKey: ${{ secrets.SSH_KEY_OF_NEXFORUM }}
command: |
sudo su
cd /var/discourse
git reset --hard
git clean -f
git remote add upstream https://github.com/nexfoundation/discourse_docker.git
git fetch upstream nexforum
branch=$(git branch | grep "nexforum")
if [ "$branch" = "* nexforum" ]
then
git pull
elif [ "$branch" = " nexforum" ]
then
git checkout nexforum
else
git checkout -b nexforum upstream/nexforum
fi
./launcher rebuild app