This commit is contained in:
@@ -19,27 +19,29 @@ jobs:
|
|||||||
path: repository
|
path: repository
|
||||||
|
|
||||||
- name: Copy Repository over SSH
|
- name: Copy Repository over SSH
|
||||||
uses: garygrossgarten/github-action-scp@release
|
uses: appleboy/scp-action@v0.1.7
|
||||||
with:
|
with:
|
||||||
local: repository
|
|
||||||
remote: ${{ env.REMOTE_WORKING_DIRECTORY }}
|
|
||||||
host: ${{ secrets.SSH_HOST }}
|
host: ${{ secrets.SSH_HOST }}
|
||||||
username: ${{ secrets.SSH_USERNAME }}
|
username: ${{ secrets.SSH_USERNAME }}
|
||||||
privateKey: ${{ secrets.SSH_KEY }}
|
key: ${{ secrets.SSH_KEY }}
|
||||||
rmRemote: true
|
source: "repository"
|
||||||
|
target: ${{ env.REMOTE_WORKING_DIRECTORY }}
|
||||||
|
strip_components: 1
|
||||||
|
rm: true
|
||||||
|
|
||||||
- name: Build ENV
|
- name: Build ENV
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.WEDDING_WEBSITE_ENV }}" | base64 -d > .env
|
echo "${{ secrets.WEDDING_WEBSITE_ENV }}" | base64 -d > .env
|
||||||
|
|
||||||
- name: Copy ENV over SSH
|
- name: Copy ENV over SSH
|
||||||
uses: garygrossgarten/github-action-scp@release
|
uses: appleboy/scp-action@v0.1.7
|
||||||
with:
|
with:
|
||||||
local: .env
|
|
||||||
remote: ${{ env.REMOTE_WORKING_DIRECTORY }}/.env
|
|
||||||
host: ${{ secrets.SSH_HOST }}
|
host: ${{ secrets.SSH_HOST }}
|
||||||
username: ${{ secrets.SSH_USERNAME }}
|
username: ${{ secrets.SSH_USERNAME }}
|
||||||
privateKey: ${{ secrets.SSH_KEY }}
|
key: ${{ secrets.SSH_KEY }}
|
||||||
|
source: ".env"
|
||||||
|
target: ${{ env.REMOTE_WORKING_DIRECTORY }}
|
||||||
|
overwrite: true
|
||||||
|
|
||||||
- name: Docker Compose Commands
|
- name: Docker Compose Commands
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
uses: appleboy/ssh-action@v1.0.3
|
||||||
|
|||||||
Reference in New Issue
Block a user