Specify ssh details in env secrets
This commit is contained in:
parent
8aa14c5bbf
commit
72b49564ca
1 changed files with 21 additions and 14 deletions
35
.github/workflows/deploy.yml
vendored
35
.github/workflows/deploy.yml
vendored
|
@ -26,8 +26,9 @@ jobs:
|
||||||
- name: 🔄 Clone Repository
|
- name: 🔄 Clone Repository
|
||||||
uses: appleboy/ssh-action@master
|
uses: appleboy/ssh-action@master
|
||||||
with:
|
with:
|
||||||
host: ${{ env.host }}
|
host: ${{ secrets.DEPLOYMENT_HOST }}
|
||||||
username: ${{ env.username }}
|
port: ${{ secrets.DEPLOYMENT_PORT }}
|
||||||
|
username: ${{ secrets.DEPLOYMENT_USER }}
|
||||||
key: ${{ secrets.DEPLOYMENT_KEY }}
|
key: ${{ secrets.DEPLOYMENT_KEY }}
|
||||||
script: |
|
script: |
|
||||||
[ -d ${{ env.releasesDir }} ] || mkdir ${{ env.releasesDir }}
|
[ -d ${{ env.releasesDir }} ] || mkdir ${{ env.releasesDir }}
|
||||||
|
@ -48,8 +49,9 @@ jobs:
|
||||||
- name: 🎵 Run Composer
|
- name: 🎵 Run Composer
|
||||||
uses: appleboy/ssh-action@master
|
uses: appleboy/ssh-action@master
|
||||||
with:
|
with:
|
||||||
host: ${{ env.host }}
|
host: ${{ secrets.DEPLOYMENT_HOST }}
|
||||||
username: ${{ env.username }}
|
port: ${{ secrets.DEPLOYMENT_PORT }}
|
||||||
|
username: ${{ secrets.DEPLOYMENT_USER }}
|
||||||
key: ${{ secrets.DEPLOYMENT_KEY }}
|
key: ${{ secrets.DEPLOYMENT_KEY }}
|
||||||
script: |
|
script: |
|
||||||
cd ${{ env.newReleaseDir }}
|
cd ${{ env.newReleaseDir }}
|
||||||
|
@ -58,8 +60,9 @@ jobs:
|
||||||
- name: 🔗 Update Symlinks
|
- name: 🔗 Update Symlinks
|
||||||
uses: appleboy/ssh-action@master
|
uses: appleboy/ssh-action@master
|
||||||
with:
|
with:
|
||||||
host: ${{ env.host }}
|
host: ${{ secrets.DEPLOYMENT_HOST }}
|
||||||
username: ${{ env.username }}
|
port: ${{ secrets.DEPLOYMENT_PORT }}
|
||||||
|
username: ${{ secrets.DEPLOYMENT_USER }}
|
||||||
key: ${{ secrets.DEPLOYMENT_KEY }}
|
key: ${{ secrets.DEPLOYMENT_KEY }}
|
||||||
script: |
|
script: |
|
||||||
# Import the environment config
|
# Import the environment config
|
||||||
|
@ -69,8 +72,9 @@ jobs:
|
||||||
- name: ✨ Optimize Installation
|
- name: ✨ Optimize Installation
|
||||||
uses: appleboy/ssh-action@master
|
uses: appleboy/ssh-action@master
|
||||||
with:
|
with:
|
||||||
host: ${{ env.host }}
|
host: ${{ secrets.DEPLOYMENT_HOST }}
|
||||||
username: ${{ env.username }}
|
port: ${{ secrets.DEPLOYMENT_PORT }}
|
||||||
|
username: ${{ secrets.DEPLOYMENT_USER }}
|
||||||
key: ${{ secrets.DEPLOYMENT_KEY }}
|
key: ${{ secrets.DEPLOYMENT_KEY }}
|
||||||
script: |
|
script: |
|
||||||
cd ${{ env.newReleaseDir }};
|
cd ${{ env.newReleaseDir }};
|
||||||
|
@ -79,8 +83,9 @@ jobs:
|
||||||
- name: 🙈 Migrate database
|
- name: 🙈 Migrate database
|
||||||
uses: appleboy/ssh-action@master
|
uses: appleboy/ssh-action@master
|
||||||
with:
|
with:
|
||||||
host: ${{ env.host }}
|
host: ${{ secrets.DEPLOYMENT_HOST }}
|
||||||
username: ${{ env.username }}
|
port: ${{ secrets.DEPLOYMENT_PORT }}
|
||||||
|
username: ${{ secrets.DEPLOYMENT_USER }}
|
||||||
key: ${{ secrets.DEPLOYMENT_KEY }}
|
key: ${{ secrets.DEPLOYMENT_KEY }}
|
||||||
script: |
|
script: |
|
||||||
cd ${{ env.newReleaseDir }}
|
cd ${{ env.newReleaseDir }}
|
||||||
|
@ -89,8 +94,9 @@ jobs:
|
||||||
- name: 🙏 Bless release
|
- name: 🙏 Bless release
|
||||||
uses: appleboy/ssh-action@master
|
uses: appleboy/ssh-action@master
|
||||||
with:
|
with:
|
||||||
host: ${{ env.host }}
|
host: ${{ secrets.DEPLOYMENT_HOST }}
|
||||||
username: ${{ env.username }}
|
port: ${{ secrets.DEPLOYMENT_PORT }}
|
||||||
|
username: ${{ secrets.DEPLOYMENT_USER }}
|
||||||
key: ${{ secrets.DEPLOYMENT_KEY }}
|
key: ${{ secrets.DEPLOYMENT_KEY }}
|
||||||
script: |
|
script: |
|
||||||
ln -nfs ${{ env.newReleaseDir }} ${{ env.currentDir }};
|
ln -nfs ${{ env.newReleaseDir }} ${{ env.currentDir }};
|
||||||
|
@ -107,8 +113,9 @@ jobs:
|
||||||
- name: 🚾 Clean up old releases
|
- name: 🚾 Clean up old releases
|
||||||
uses: appleboy/ssh-action@master
|
uses: appleboy/ssh-action@master
|
||||||
with:
|
with:
|
||||||
host: ${{ env.host }}
|
host: ${{ secrets.DEPLOYMENT_HOST }}
|
||||||
username: ${{ env.username }}
|
port: ${{ secrets.DEPLOYMENT_PORT }}
|
||||||
|
username: ${{ secrets.DEPLOYMENT_USER }}
|
||||||
key: ${{ secrets.DEPLOYMENT_KEY }}
|
key: ${{ secrets.DEPLOYMENT_KEY }}
|
||||||
script: |
|
script: |
|
||||||
cd ${{ env.releasesDir }}
|
cd ${{ env.releasesDir }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue