update algorand qa doc (#318) #163
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |