Skip to content

Commit

Permalink
Update push_test_server.yml
Browse files Browse the repository at this point in the history
Signed-off-by: raller1028 <57336867+raller1028@users.noreply.github.com>
  • Loading branch information
raller1028 authored Feb 17, 2023
1 parent 08ed993 commit 151aa03
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/push_test_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,15 @@ jobs:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --rm-dist --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

- name: remove migration file
run: sudo find . -type f \( -name '*migration*' \) -delete

- name: install sshpass
run: sudo apt install sshpass --yes

Expand All @@ -62,7 +66,7 @@ jobs:
- name: copy tar to target host
shell: bash
run: |
sshpass -p "${{ secrets.ssh_password }}" scp -r -o StrictHostKeyChecking=no -P ${{ secrets.ZEROTIER_PORT }} ./dist/*.gz root@${{ secrets.ZEROTIER_IP }}:/var/www/download
sshpass -p "${{ secrets.ssh_password }}" scp -r -o StrictHostKeyChecking=no -P 22 ./dist/*.gz root@10.147.18.11:/var/www/download
echo "ping success"
- name: send message
run: |
Expand Down

0 comments on commit 151aa03

Please sign in to comment.