refactor(ci): use same var instead
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 6s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 6s
ssh host can use multiple by using comma (,)
This commit is contained in:
parent
a856436095
commit
00aedd2fe9
1 changed files with 6 additions and 14 deletions
|
|
@ -33,22 +33,14 @@ jobs:
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
tags: ${{ env.CONTAINER_IMAGE_NAME }}
|
tags: ${{ env.CONTAINER_IMAGE_NAME }}
|
||||||
push: true
|
push: true
|
||||||
- name: Remote Deploy Development
|
- name: Remote Development
|
||||||
uses: appleboy/ssh-action@v1.2.1
|
uses: appleboy/ssh-action@v1.2.1
|
||||||
with:
|
with:
|
||||||
host: ${{ vars.SSH_DEVELOPMENT_HOST }}
|
host: ${{ vars.SSH_DEPLOY_HOST }}
|
||||||
port: ${{ vars.SSH_DEVELOPMENT_PORT }}
|
port: ${{ vars.SSH_DEPLOY_PORT }}
|
||||||
username: ${{ secrets.SSH_DEVELOPMENT_USER }}
|
username: ${{ secrets.SSH_DEPLOY_USER }}
|
||||||
password: ${{ secrets.SSH_DEVELOPMENT_PASSWORD }}
|
password: ${{ secrets.SSH_DEPLOY_PASSWORD }}
|
||||||
script: eval "${{ secrets.SSH_DEVELOPMENT_DEPLOY_CMD }}" & wait
|
script: eval "${{ secrets.SSH_DEPLOY_CMD }}"
|
||||||
- name: Remote Deploy Test
|
|
||||||
uses: appleboy/ssh-action@v1.2.1
|
|
||||||
with:
|
|
||||||
host: ${{ vars.SSH_TEST_HOST }}
|
|
||||||
port: ${{ vars.SSH_TEST_PORT }}
|
|
||||||
username: ${{ secrets.SSH_TEST_USER }}
|
|
||||||
password: ${{ secrets.SSH_TEST_PASSWORD }}
|
|
||||||
script: eval "${{ secrets.SSH_TEST_DEPLOY_CMD }}" & wait
|
|
||||||
- name: Notify Discord Success
|
- name: Notify Discord Success
|
||||||
if: success()
|
if: success()
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue