Skip to content

Commit

Permalink
fix settings
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-lymar committed May 16, 2024
1 parent 25191d3 commit 338ea56
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,22 @@ jobs:
EMAIL_HOST_PASSWORD: ${{ secrets.EMAIL_HOST_PASSWORD }}
run: pytest .


build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Copy repository contents via scp
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
port: ${{ secrets.PORT }}
key: ${{ secrets.SSHKEY }}
source: "."
target: "/var/www/mywebsite"
- name: Create .env file on remote server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
Expand All @@ -113,9 +121,6 @@ jobs:
sudo echo EMAIL_PORT=${{ secrets.EMAIL_PORT }} >> .env
sudo echo EMAIL_HOST_USER=${{ secrets.EMAIL_HOST_USER }} >> .env
sudo echo EMAIL_HOST_PASSWORD=${{ secrets.EMAIL_HOST_PASSWORD }} >> .env
source: "."
target: "/var/www/mywebsite"

- name: Executing remote command
uses: appleboy/ssh-action@master
with:
Expand All @@ -126,5 +131,3 @@ jobs:
script: |
cd /var/www/mywebsite
docker-compose up -d

0 comments on commit 338ea56

Please sign in to comment.