Skip to content

Commit

Permalink
Update deb_package.yml
Browse files Browse the repository at this point in the history
Work with the newly deployed server.
  • Loading branch information
cc0h authored Oct 7, 2023
1 parent 9063a49 commit 18e937e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deb_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,17 @@ jobs:
host: ${{ secrets.SOURCE_SSH_HOST }}
username: ${{ secrets.SOURCE_SSH_NAME }}
key: ${{ secrets.SOURCE_SSH_KEYGEN }}
port: ${{ secrets.SOURCE_SSH_PORT }}
source: "*.deb"
target: "/usr/local/web/rm-source/ubuntu/incoming/"
target: "/home/dynamicx/package_hub/wwwroot/ppa/incoming"
- name: Deploy deb package to source
if: ${{ github.repository == 'rm-controls/rm_controllers' }}
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SOURCE_SSH_HOST }}
username: ${{ secrets.SOURCE_SSH_NAME }}
key: ${{ secrets.SOURCE_SSH_KEYGEN }}
port: ${{ secrets.SOURCE_SSH_PORT }}
script: |
cd /usr/local/web/rm-source/ubuntu/incoming/
reprepro -s -b /usr/local/web/rm-source/ubuntu/ --waitforlock 1000 includedeb focal /usr/local/web/rm-source/ubuntu/incoming/*.deb && \
rm -f *.deb
cd /home/dynamicx/package_hub/wwwroot/ppa/
bash deploy.sh

0 comments on commit 18e937e

Please sign in to comment.