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
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
source /etc/bashrc
|
source /etc/bashrc
|
||||||
nix shell nixpkgs#bun --run "bun i && bun run build"
|
nix shell nixpkgs#bun
|
||||||
|
bun i && bun run build
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
run: |
|
run: |
|
||||||
source /etc/bashrc
|
source /etc/bashrc
|
||||||
# rsync의 ssh 옵션에 -i ssh_key를 직접 지정
|
nix shell nixpkgs#rsync nixpkgs#openssh
|
||||||
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/."
|
rsync -avz --delete -e 'ssh -i ssh_key -o StrictHostKeyChecking=no' dist/* imnyang@10.11.8.101:/var/static/imnya.ng/.
|
||||||
|
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue