feat: auto-deployment
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user