mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-03-11 17:15:37 +00:00
update deploy workflow
This commit is contained in:
parent
ae955e6634
commit
85d9f3d406
1 changed files with 8 additions and 8 deletions
16
.github/workflows/deploy_addon.yml
vendored
16
.github/workflows/deploy_addon.yml
vendored
|
|
@ -12,10 +12,10 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- ssh-host: ${{ secrets.SSH_HOST }}
|
||||
ssh-key: ${{ secrets.SSH_KEY }}
|
||||
- ssh-host: ${{ secrets.SSH_HOST_2 }}
|
||||
ssh-key: ${{ secrets.SSH_KEY_2 }}
|
||||
- ssh-host: SSH_HOST
|
||||
ssh-key: SSH_KEY
|
||||
- ssh-host: SSH_HOST_2
|
||||
ssh-key: SSH_KEY_2
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
|
@ -28,10 +28,10 @@ jobs:
|
|||
- name: Upload Docker image
|
||||
uses: appleboy/scp-action@master
|
||||
with:
|
||||
host: ${{ matrix.ssh-host }}
|
||||
host: ${{ secrets[matrix.matrix.ssh-host] }}
|
||||
username: ${{ secrets.SSH_USERNAME }}
|
||||
port: ${{ secrets.SSH_PORT }}
|
||||
key: ${{ matrix.ssh-key }}
|
||||
key: ${{ secrets[matrix.matrix.ssh-key] }}
|
||||
source: torrentio_addon_latest.tar
|
||||
target: /tmp/docker
|
||||
overwrite: true
|
||||
|
|
@ -39,10 +39,10 @@ jobs:
|
|||
- name: Deploy Docker image
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
host: ${{ matrix.ssh-host }}
|
||||
host: ${{ secrets[matrix.matrix.ssh-host] }}
|
||||
username: ${{ secrets.SSH_USERNAME }}
|
||||
port: ${{ secrets.SSH_PORT }}
|
||||
key: ${{ matrix.ssh-key }}
|
||||
key: ${{ secrets[matrix.matrix.ssh-key] }}
|
||||
script: |
|
||||
docker load -i /tmp/docker/torrentio_addon_latest.tar
|
||||
docker stop torrentio-addon
|
||||
|
|
|
|||
Loading…
Reference in a new issue