feat: auto-deployment

This commit is contained in:
2026-03-27 01:57:48 +07:00 Unverified
parent efe2710ee5
commit 57ccfc03e2
+14
View File
@@ -51,3 +51,17 @@ jobs:
docker push 100.126.211.77:3002/${{ gitea.repository }}:backend-$TAG
docker push 100.126.211.77:3002/${{ gitea.repository }}:frontend
docker push 100.126.211.77:3002/${{ gitea.repository }}:frontend-$TAG
- name: Deploy to production
run: |
TAG=${{ gitea.sha }}
ssh -o StrictHostKeyChecking=no [email protected] << 'EOF'
docker service update \
--image git.dgnr.us/${{ gitea.repository }}:frontend-$TAG \
buzz_app
docker service update \
--image git.dgnr.us/${{ gitea.repository }}:backend-$TAG \
buzz_backend
EOF