Merge pull request #68 from SlimusMinus/fix-prod_deploy
All checks were successful
deploy-backend / deploy (push) Successful in 2m28s

fixed deploy.yml for prod
This commit is contained in:
SlimusMinus
2026-11-19 01:21:53 +03:00
committed by GitHub

View File

@@ -12,5 +12,10 @@ jobs:
run: docker build -t nakhodka-backend:latest -t nakhodka-backend:${{ github.sha }} .
- name: Restart backend
run: docker compose -f /opt/nakhodka/docker-compose.yml up -d backend
- name: Push image to registry
run: |
IMG=git.nahodka-test.online/admin/nakhodka-backend
docker tag nakhodka-backend:${{ github.sha }} $IMG:${{ github.sha }}
docker push $IMG:${{ github.sha }}
- name: Cleanup
run: docker image prune -f