Skip to content

Merge pull request #18 from LL08-MathematicalModelling-dowell/DOCKERI… #19

Merge pull request #18 from LL08-MathematicalModelling-dowell/DOCKERI…

Merge pull request #18 from LL08-MathematicalModelling-dowell/DOCKERI… #19

Workflow file for this run

name: DataCube CI/CD deployment workflow
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install sshpass
run: sudo apt-get install -y sshpass
- name: Deploy to Server
env:
SSH_PASSWORD: ${{ secrets.SSH_PASSWORD }}
run: |
sshpass -p $SSH_PASSWORD ssh -o StrictHostKeyChecking=no ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} << 'EOF'
cd ${{ secrets.WORKING_DIR }}
git pull origin main
# docker-compose up -d --build
echo "Deployment successful"
EOF