Skip to content

Add build parachain-based cross chain solution wiki #180

Add build parachain-based cross chain solution wiki

Add build parachain-based cross chain solution wiki #180

Workflow file for this run

name: mainnet-cd
on:
push:
branches: [ mainnet ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build and push docker
run: |
docker build -t crustio/crust-wiki:latest .
docker login -u ${{ secrets.DOCKER_HUB_USER_NAME }} -p ${{ secrets.DOCKER_HUB_PASSWORD }}
docker push crustio/crust-wiki:latest
- name: Upgrade wiki
uses: fifsky/ssh-action@master
with:
command: |
sudo docker pull crustio/crust-wiki:latest
cd /usr/local/docker/crust-mainnet-wiki
sudo docker-compose up -d
host: ${{ secrets.SSH_PRD_HOST }}
user: ${{ secrets.SSH_PRD_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}