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