Skip to content

Commit

Permalink
first attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
ADesBiysk committed Sep 5, 2023
1 parent 40e587f commit ce4ccdd
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/restore.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: restore

on:
pull_request:
branches:
- dcevelop

env:
DEPLOY_PATH: /lombarye/full
WORK_DIR: /LOMAYA_BARYERY_BACKEND

jobs:
start_application:
name: Start application
runs-on: ubuntu-latest
needs: build_and_push_docker_image
environment:
name: prod_deploy
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Create .env file
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST_RESTORE }}
username: deployer
password: ${{ secrets.SSH_PASSWORD_RESTORE }}
port: 122

script: |
cd ${{ env.DEPLOY_PATH }}
rm -f .env_restore
touch .env_restore
echo KEY=${{ secrets.SSH_KEY }} >> .env

0 comments on commit ce4ccdd

Please sign in to comment.