|
|
@ -26,12 +26,6 @@ on:
|
|
|
|
- 'docker-compose.yml'
|
|
|
|
- 'docker-compose.yml'
|
|
|
|
- 'bin/*'
|
|
|
|
- 'bin/*'
|
|
|
|
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
|
|
|
SERVER_PRIVATE_KEY: ${{ secrets.SERVER_PRIVATE_KEY }} # server private key
|
|
|
|
|
|
|
|
SERVER_HOST: ${{ secrets.SERVER_HOST }} # server ip address
|
|
|
|
|
|
|
|
USER_NAME: ${{ secrets.USER_NAME }} # server username
|
|
|
|
|
|
|
|
cache-name: note
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
deploy-dev:
|
|
|
|
deploy-dev:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
@ -44,6 +38,14 @@ jobs:
|
|
|
|
echo "${{secrets.WFP_ID_RSA}}" > ~/.ssh/id_rsa
|
|
|
|
echo "${{secrets.WFP_ID_RSA}}" > ~/.ssh/id_rsa
|
|
|
|
chmod 600 ~/.ssh/id_rsa
|
|
|
|
chmod 600 ~/.ssh/id_rsa
|
|
|
|
ssh-keyscan "182.92.xxx.xxx" >> ~/.ssh/known_hosts
|
|
|
|
ssh-keyscan "182.92.xxx.xxx" >> ~/.ssh/known_hosts
|
|
|
|
|
|
|
|
- name: executing remote ssh commands using password
|
|
|
|
|
|
|
|
uses: appleboy/ssh-action@v1.0.0
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
host: ${{ secrets.HOST }}
|
|
|
|
|
|
|
|
username: ${{ secrets.USERNAME }}
|
|
|
|
|
|
|
|
password: ${{ secrets.PASSWORD }}
|
|
|
|
|
|
|
|
port: ${{ secrets.PORT }}
|
|
|
|
|
|
|
|
script: whoami
|
|
|
|
- name: deploy # Deployment
|
|
|
|
- name: deploy # Deployment
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
ssh work@182.92.xxx.xxx "
|
|
|
|
ssh work@182.92.xxx.xxx "
|
|
|
|