Skip to content

Commit

Permalink
ci: github action
Browse files Browse the repository at this point in the history
  • Loading branch information
BrooksYang committed May 18, 2024
1 parent 3b56222 commit 45857fc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/docker/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,14 @@ package() {
}

scp_to_remote() {
scp _output/*.tar.gz "$remote_user"@"$remote_host":/tmp/
echo "start scp to remote..."

scp -o StrictHostKeyChecking=no _output/*.tar.gz "$remote_user"@"$remote_host":/tmp/
# rm _output/*.tar.gz
}

deploy_to_remote() {
ssh "$remote_user"@"$remote_host" 'bash -s' "$app_name" "$tag" <./scripts/docker/run.sh
ssh -o StrictHostKeyChecking=no "$remote_user"@"$remote_host" 'bash -s' "$app_name" "$tag" <./scripts/docker/run.sh
}

# Run
Expand Down

0 comments on commit 45857fc

Please sign in to comment.