Skip to content

cron-job-added

cron-job-added #94

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Install sshpass
run: sudo apt-get install -y sshpass
- name: Deploy to Server
env:
SERVER_PASSWORD: ${{ secrets.SERVER_PASSWORD }}
SERVER_IP: ${{ secrets.SERVER_IP }}
run: |
sshpass -p "$SERVER_PASSWORD" ssh -o StrictHostKeyChecking=no abdulaziz@$SERVER_IP "
cd examify &&
git pull &&
docker-compose build &&
docker-compose up -d
"