Final Deploy SDT #8
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: Final Deploy SDT | |
on: workflow_dispatch | |
jobs: | |
build: | |
name: Deploy direct | |
runs-on: ubuntu-latest | |
steps: | |
- name: ssh and pull and restart | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
key: ${{ secrets.KEY }} | |
script: | | |
. init.sh | |
cd /opt/software-discovery-tool-deploy | |
sudo chown -R sdtuser . | |
git checkout main | |
git pull origin main --recurse-submodules | |
sudo cp -u -r software-discovery-tool/ ../software-discovery-tool/ | |
sudo chown -R apache:apache /opt/software-discovery-tool | |
sudo -u apache /opt/software-discovery-tool/bin/config_build.py | |
sudo apachectl restart |