docker-compose #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-and-deploy | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to digital Ocean | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.SSH_HOST }} ## Ip address of the server | |
key: ${{ secrets.SSH_KEY }} ## public or private key of the server | |
username: ${{ secrets.SSH_USERNAME }} ## username of the server | |
script: | | |
mkdir test | |
cd test | |
git clone [email protected]:Munch-Ynov/munch-backend.git | |