Copy config files (Server.xml, init.sql) during deploy
All checks were successful
Build and Push / build-all (push) Successful in 12s
All checks were successful
Build and Push / build-all (push) Successful in 12s
This commit is contained in:
parent
e5734920d7
commit
56a2146b71
1 changed files with 14 additions and 1 deletions
|
|
@ -42,13 +42,26 @@ jobs:
|
||||||
# Add host key (skip strict checking for first connection)
|
# Add host key (skip strict checking for first connection)
|
||||||
ssh-keyscan -p ${{ secrets.DEPLOY_PORT }} ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts 2>/dev/null || true
|
ssh-keyscan -p ${{ secrets.DEPLOY_PORT }} ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts 2>/dev/null || true
|
||||||
|
|
||||||
- name: Copy docker-compose to server
|
- name: Copy config files to server
|
||||||
run: |
|
run: |
|
||||||
|
# Copy docker-compose
|
||||||
scp -i ~/.ssh/deploy_key -P ${{ secrets.DEPLOY_PORT }} \
|
scp -i ~/.ssh/deploy_key -P ${{ secrets.DEPLOY_PORT }} \
|
||||||
-o StrictHostKeyChecking=no \
|
-o StrictHostKeyChecking=no \
|
||||||
docker-compose.prod.yml \
|
docker-compose.prod.yml \
|
||||||
root@${{ secrets.DEPLOY_HOST }}:/opt/realms/docker-compose.yml
|
root@${{ secrets.DEPLOY_HOST }}:/opt/realms/docker-compose.yml
|
||||||
|
|
||||||
|
# Copy OvenMediaEngine config
|
||||||
|
scp -i ~/.ssh/deploy_key -P ${{ secrets.DEPLOY_PORT }} \
|
||||||
|
-o StrictHostKeyChecking=no \
|
||||||
|
ovenmediaengine/Server.xml \
|
||||||
|
root@${{ secrets.DEPLOY_HOST }}:/opt/realms/Server.xml
|
||||||
|
|
||||||
|
# Copy database init script
|
||||||
|
scp -i ~/.ssh/deploy_key -P ${{ secrets.DEPLOY_PORT }} \
|
||||||
|
-o StrictHostKeyChecking=no \
|
||||||
|
database/init.sql \
|
||||||
|
root@${{ secrets.DEPLOY_HOST }}:/opt/realms/init.sql
|
||||||
|
|
||||||
- name: Deploy to Production
|
- name: Deploy to Production
|
||||||
run: |
|
run: |
|
||||||
ssh -i ~/.ssh/deploy_key -p ${{ secrets.DEPLOY_PORT }} \
|
ssh -i ~/.ssh/deploy_key -p ${{ secrets.DEPLOY_PORT }} \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue