Skip to content

Update nginx config file #1

Update nginx config file

Update nginx config file #1

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- main
concurrency:
group: main
cancel-in-progress: true
jobs:
quality-assurance:
name: Run Tests
uses: ./.github/workflows/pytest.yml

Check failure on line 16 in .github/workflows/ec2.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ec2.yml

Invalid workflow file

error parsing called workflow ".github/workflows/ec2.yml" -> "./.github/workflows/pytest.yml" (source branch with sha:95c3468309f600c232cf4485eb17548349133750) : workflow is not reusable as it is missing a `on.workflow_call` trigger
deploy:
name: Deploy
needs: quality-assurance
runs-on: ubuntu-latest
steps:
- name: Configure SSH
env:
SSH_PRIVATE_KEY: ${{secrets.SSH_PRIVATE_KEY}}
SSH_HOST: ${{secrets.SSH_HOST}}
SSH_USER: ${{secrets.SSH_USER}}
run:
mkdir -p ~/.ssh/
echo "$SSH_PRIVATE_KEY" > ~/.ssh/github
chmod 600 ~/.ssh/github
cat >>~/.ssh/config <<END
Host target
HostName $SSH_HOST
User $SSH_USER
IdentityFile ~/.ssh/github
LogLevel ERROR
StrictHostKeyChecking no
END
- name: Run deploy
run: |
ssh target "cd fjob_backend/" && docker-compose down && git pull && docker-compose build && docker-compose up -d --force-recreate"