init devops repo

Mirrors cipherdolls/devops layout. Hostinger Swarm stacks for the t4t
hosted-gateway and local docker-compose for development + e2e tests.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Felix FaerberandClaude Opus 4.7 committed 2026-05-27 10:31:30 +03:00
commit 032a22b6ee
16 files changed
+1444

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
name: Deploy stacks
on:
push:
branches: [main]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: docker stack deploy
uses: appleboy/ssh-action@v1.0.3
with:
username: root
host: ${{ secrets.SSH_KNOWN_HOSTS }}
key: ${{ secrets.SSH_PRIV_KEY }}
script: |
cd ~/devops && git pull
docker stack deploy -c ~/devops/hostinger/system-stack.yaml system --with-registry-auth
docker stack deploy -c ~/devops/hostinger/prod-stack.yaml prod --with-registry-auth
- name: prune old images
uses: appleboy/ssh-action@v1.0.3
with:
username: root
host: ${{ secrets.SSH_KNOWN_HOSTS }}
key: ${{ secrets.SSH_PRIV_KEY }}
script: |
docker image prune -f --filter "until=24h"