Refactor deployment workflow to separate commands for improved readability
Some checks failed
/ print-content (push) Has been cancelled
Some checks failed
/ print-content (push) Has been cancelled
This commit is contained in:
parent
c7f7fdecbf
commit
0458fb655d
1 changed files with 5 additions and 4 deletions
|
|
@ -16,14 +16,15 @@ jobs:
|
|||
- name: Build
|
||||
run: |
|
||||
source /etc/bashrc
|
||||
nix shell nixpkgs#bun --run "bun i && bun run build"
|
||||
nix shell nixpkgs#bun
|
||||
bun i && bun run build
|
||||
|
||||
- name: Deploy
|
||||
run: |
|
||||
source /etc/bashrc
|
||||
# rsync의 ssh 옵션에 -i ssh_key를 직접 지정
|
||||
nix shell nixpkgs#rsync nixpkgs#openssh --run \
|
||||
"rsync -avz --delete -e 'ssh -i ssh_key -o StrictHostKeyChecking=no' dist/* imnyang@10.11.8.101:/var/static/imnya.ng/."
|
||||
nix shell nixpkgs#rsync nixpkgs#openssh
|
||||
|
||||
rsync -avz --delete -e 'ssh -i ssh_key -o StrictHostKeyChecking=no' dist/* imnyang@10.11.8.101:/var/static/imnya.ng/.
|
||||
|
||||
- name: Cleanup
|
||||
if: always()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue