Skip to content

Merge branch 'main' of https://github.com/Aut-Labs/nova-showcase #51

Merge branch 'main' of https://github.com/Aut-Labs/nova-showcase

Merge branch 'main' of https://github.com/Aut-Labs/nova-showcase #51

Workflow file for this run

name: Deployment Dev
on:
push:
branches:
- main
jobs:
build-and-deploy:
name: Build and Deployment
runs-on: ubuntu-20.04
permissions:
packages: write
contents: read
attestations: write
steps:
# Deploy to Server
- name: SSH & Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.TESTNET_FRONTEND_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.FRONTEND_SSH_KEY }}
script: |
#!/usr/bin/env bash
cd Hub
sudo git checkout main;
sudo git pull origin main;
sudo docker-compose stop hub_main
sudo docker rmi $(sudo docker images -f "dangling=true" -q) || true
sudo docker-compose up --build hub_main -d
exit 0;