Merge pull request #509 from IntersectMBO/feat/change-position-of-add… #269
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: CI-develop-branch | |
on: | |
push: | |
branches: [develop] | |
workflow_dispatch: | |
jobs: | |
deploy_to_do: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v4 | |
with: | |
ref: develop | |
- name: Deploy to Digital Ocean droplet via SSH action | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.DEVELOP_HOST }} | |
username: ${{ secrets.USERNAME }} | |
key: ${{ secrets.SSH_KEY }} | |
script: | | |
eval `ssh-agent -s` | |
ssh-add cc | |
cd cc-portal \ | |
&& git pull origin develop \ | |
&& docker compose up -d --build \ | |
&& docker container exec backend npm run typeorm:run-migrations \ | |
&& docker image prune -f |