Skip to content

Update the latest crust-node version to v2.0.1 #168

Update the latest crust-node version to v2.0.1

Update the latest crust-node version to v2.0.1 #168

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 }}