separate ssh-keyscan and rsync tasks

This commit is contained in:
John Bowdre 2024-02-27 19:21:46 -06:00
parent cff3bee472
commit e1aa40dd88

View file

@ -52,9 +52,12 @@ jobs:
oauth-client-id: ${{ secrets.TS_API_CLIENT_ID }} oauth-client-id: ${{ secrets.TS_API_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_API_CLIENT_SECRET }} oauth-secret: ${{ secrets.TS_API_CLIENT_SECRET }}
tags: ${{ secrets.TS_TAG }} tags: ${{ secrets.TS_TAG }}
- name: Deploy GMI to Agate - name: Cache SSH known hosts
run: | run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
ssh-keyscan -H ${{ secrets.GMI_HOST }} >> ~/.ssh/known_hosts ssh-keyscan -H ${{ secrets.GMI_HOST }} >> ~/.ssh/known_hosts
- 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 }} rsync -avz --delete --exclude='*.html' --exclude='*.css' --exclude='*.js' -e ssh public/ ${{ secrets.GMI_USER }}@${{ secrets.GMI_HOST }}:${{ secrets.GMI_CONTENT_PATH }}