fix deploy: use sh shell (alpine has no bash)
This commit is contained in:
parent
109b580d1b
commit
2e769bfece
@ -6,8 +6,10 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: sh
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Install SSH client
|
- name: Install SSH client
|
||||||
run: apk add --no-cache openssh-client
|
run: apk add --no-cache openssh-client
|
||||||
- name: Setup SSH key
|
- name: Setup SSH key
|
||||||
@ -17,6 +19,6 @@ jobs:
|
|||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "$SSH_KEY" > ~/.ssh/id_ed25519
|
echo "$SSH_KEY" > ~/.ssh/id_ed25519
|
||||||
chmod 600 ~/.ssh/id_ed25519
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
ssh-keyscan -p 2234 -H 87.248.133.138 >> ~/.ssh/known_hosts
|
ssh-keyscan -p 2234 -H 172.17.0.1 >> ~/.ssh/known_hosts
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
run: ssh -p 2234 devops@87.248.133.138 'bash /opt/services/parsa/backend/deploy.sh'
|
run: ssh -p 2234 devops@172.17.0.1 'bash /opt/services/parsa/backend/deploy.sh'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user