Skip to content

Merge branch 'main' of https://github.com/Landris18/community #27

Merge branch 'main' of https://github.com/Landris18/community

Merge branch 'main' of https://github.com/Landris18/community #27

Workflow file for this run

name: Deploy on Production
on:
push:
branches: [ "main"]
jobs:
CD:
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v3
- name: SSH and deploy docker
uses: appleboy/[email protected]
with:
host: iteam-s.mg
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: 22
script: |
cd ~/community
git pull
docker build -t community .
docker stop community || true
docker rm community || true
docker run -dp 2500:80 --name=community --restart=always -t community