mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-22 06:52:18 +00:00
separate ssh-keyscan and rsync tasks
This commit is contained in:
parent
fe82db5f9b
commit
6fda9fb38f
1 changed files with 5 additions and 2 deletions
7
.github/workflows/deploy-to-prod.yml
vendored
7
.github/workflows/deploy-to-prod.yml
vendored
|
@ -52,9 +52,12 @@ jobs:
|
|||
oauth-client-id: ${{ secrets.TS_API_CLIENT_ID }}
|
||||
oauth-secret: ${{ secrets.TS_API_CLIENT_SECRET }}
|
||||
tags: ${{ secrets.TS_TAG }}
|
||||
- name: Deploy GMI to Agate
|
||||
- name: Cache SSH known hosts
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
ssh-keyscan -H ${{ secrets.GMI_HOST }} >> ~/.ssh/known_hosts
|
||||
rsync -avz --delete --exclude='*.html' --exclude='*.css' --exclude='*.js' -e ssh public/ ${{ secrets.GMI_USER}}@${{ secrets.GMI_HOST }}:${{ secrets.GMI_CONTENT_PATH }}
|
||||
- name: Deploy GMI to Agate
|
||||
run: |
|
||||
which rsync
|
||||
rsync -avz --delete --exclude='*.html' --exclude='*.css' --exclude='*.js' -e ssh public/ ${{ secrets.GMI_USER }}@${{ secrets.GMI_HOST }}:${{ secrets.GMI_CONTENT_PATH }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue