Skip to content

Commit

Permalink
update deploy config
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhaoxx committed Feb 15, 2024
1 parent 46249d0 commit 85086a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ compile:
# - sed -i 's/deb\.debian\.org/mirrors\.ustc\.edu\.cn/g' /etc/apt/sources.list && sed -i 's/security\.debian\.org/mirrors\.ustc\.edu\.cn/g' /etc/apt/sources.list
# - apt update && apt install build-essential bc autoconf libtool sudo -y

- ./build.sh -o NetGate
- ./build.sh -o NetGATE

artifacts:
paths:
Expand All @@ -39,8 +39,8 @@ deploy_production:
- ssh-add <(echo "$NWS_SSH_KEY")
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- ssh ubuntu@10.1.1.16 "sudo systemctl stop netgate.service && cp ~/NetGate/NetGate ~/NetGate/NetGate.old"
- scp $CI_PROJECT_DIR/NetGate [email protected]:~/NetGate/
- ssh ubuntu@10.1.1.16 "sudo systemctl start netgate.service && sleep 1 && sudo systemctl status netgate.service"
- ssh star@10.1.1.16 "sudo systemctl stop netgate.service && cp ~/NetGATE/NetGATE ~/NetGATE/NetGATE.old"
- scp $CI_PROJECT_DIR/NetGATE [email protected]:~/NetGATE/
- ssh star@10.1.1.16 "sudo systemctl start netgate.service && sleep 1 && sudo systemctl status netgate.service"
only:
- tags

0 comments on commit 85086a6

Please sign in to comment.