Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .github/issue-branch.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/ci.yml → .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,24 @@ jobs:
files: ./src/coverage.xml
fail_ci_if_error: true
verbose: true
deploy:
name: Deploy to server
runs-on: ubuntu-latest
needs: quality-assurance
if: success() && github.ref == 'refs/heads/productiont'

steps:
- name: Deploy via SSH
uses: appleboy/[email protected]
with:
host: ${{ secrets.PROD_HOST }}
username: ${{ secrets.PROD_USER }}
key: ${{ secrets.PROD_SSH_KEY }}
port: 22
script: |
cd /home/ideologicalatlas/notifications
git fetch --all
git reset --hard origin/productiont
printf "%s" "${{ secrets.ENV_FILE }}" > .env
docker compose up -d --build --remove-orphans
docker image prune -f
13 changes: 0 additions & 13 deletions .github/workflows/create-branch.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ celerybeat.pid

# Environments
.env
.env-prod
.envrc
.venv
env/
Expand Down
7 changes: 7 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,10 @@ services:
options:
max-size: 50m
max-file: "2"
networks:
- global_net

networks:
global_net:
name: ideological_global_network
external: true
2 changes: 1 addition & 1 deletion src/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<table role="presentation" style="width: 100%; max-width: 600px; border-collapse: collapse; border: 0; border-spacing: 0;">
<tr>
<td style="padding: 0 0 20px 0; text-align: center;">
<img src="https://ideologicalatlas.com/logo.png" alt="{{ project_name }}" width="48" height="48" style="display: block; margin: 0 auto; border: 0; outline: none; text-decoration: none;">
<img src="https://ideologicalatlas.com/_next/image?url=%2Flogo.png&w=64&q=75" alt="{{ project_name }}" width="48" height="48" style="display: block; margin: 0 auto; border: 0; outline: none; text-decoration: none;">
</td>
</tr>
</table>
Expand Down