auto style changes

This commit is contained in:
Wouter Vermeer
2026-04-30 17:42:06 +02:00
parent 358bd4cbf2
commit 6d6534a541
2 changed files with 10 additions and 20 deletions

View File

@@ -1,38 +1,30 @@
---
name: Deploy to production
run-name: deploy-${{ gitea.actor }}
on:
push:
branches:
- main
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts
- name: Deploy
run: |
run: |-
ssh -i ~/.ssh/id_rsa ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} << 'EOF'
cd ~/Quatsh-Website
echo "Pulling latest code..."
git pull origin main
echo "Building containers..."
make prod
echo "Running Django deploy check"
docker compose run --rm web python manage.py check --deploy
echo "Deployment complete."
EOF
EOF

View File

@@ -1,18 +1,16 @@
---
name: Gitea Test.
run-name: ${{ gitea.actor }}
on:
push:
branches:
- main
- pre-prod
branches: [main, pre-prod]
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: lint
run: make lint
- name: test
run: make test
run: make test