Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Update README.md

Update README.md #275

Workflow file for this run

name: Enviar para a vps
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Enviar os ficheiros via ssh para a vps
uses: appleboy/[email protected]
env:
HOST: ${{ secrets.HOST }}
USERNAME: david
PORT: 22
KEY: ${{ secrets.KEY }}
with:
source: "."
target: "/home/david/danittobot"
updateDani:
name: Build and re-run danitto
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Iniciando o danitto
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: david
key: ${{ secrets.KEY }}
port: 22
script: |
echo "Entrando no dirétorio"
cd danittobot
echo "Desligando o processo anterior"
docker stop danitto
docker rm danitto
sleep 3
echo "Buildando o bot"
docker build -t danitto .
sleep 2
echo "Ligando o Danitto"
docker run -d --name=danitto --memory=300m --memory-reservation=100m danitto