Skip to content

Commit

Permalink
"Remove check_build.yml workflow and add deployment to development se…
Browse files Browse the repository at this point in the history
…rver in deploy.yml"
  • Loading branch information
p-shubh committed Nov 21, 2024
1 parent 04ed094 commit 8a0590c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,20 @@ jobs:
echo ${{ secrets.GHCR_TOKEN }} | sudo docker login ghcr.io -u ${{ secrets.GHCR_USERNAME }} --password-stdin
sudo docker pull ghcr.io/myriadflow/studio:prod
sudo docker run --name="studio" -p 9080:3000 -d ghcr.io/myriadflow/studio:prod
- name: Deploy on Developent server
if: github.ref == 'refs/heads/main'
uses: appleboy/[email protected]
with:
host: ${{ secrets.DEV_REMOTE_SERVER_ADDRESS }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.DEV_REMOTE_SERVER_KEY }}
port: ${{ secrets.SSH_PORT }}
script: |
pwd
cd ~
sudo docker stop studio && sudo docker rm studio && sudo docker rmi ghcr.io/myriadflow/studio:main
echo ${{ secrets.GHCR_TOKEN }} | sudo docker login ghcr.io -u ${{ secrets.GHCR_USERNAME }} --password-stdin
sudo docker pull ghcr.io/myriadflow/studio:main
sudo docker run --name="studio" -p 9080:3000 -d ghcr.io/myriadflow/studio:main
File renamed without changes.

0 comments on commit 8a0590c

Please sign in to comment.