Remove deploy job from CI - build and push only
Some checks failed
Build & Push Docker Images / lint (push) Failing after 1m13s
Build & Push Docker Images / build-and-push (push) Has been skipped

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-26 12:19:36 +01:00
parent 4c20bcffcd
commit e847fd0261

View File

@@ -73,23 +73,3 @@ jobs:
${{ env.REGISTRY }}/${{ env.IMAGE_WORKER }}:${{ github.sha }} ${{ env.REGISTRY }}/${{ env.IMAGE_WORKER }}:${{ github.sha }}
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_WORKER }}:buildcache cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_WORKER }}:buildcache
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_WORKER }}:buildcache,mode=max cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_WORKER }}:buildcache,mode=max
deploy:
runs-on: ubuntu-latest
needs: build-and-push
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Deploy to server via SSH
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
script: |
cd ${{ secrets.DEPLOY_PATH }}
docker login ${{ env.REGISTRY }} -u ${{ secrets.REGISTRY_USER }} -p ${{ secrets.REGISTRY_TOKEN }}
docker compose -f docker-compose.prod.yml pull crm-app crm-worker
docker compose -f docker-compose.prod.yml up -d --no-deps crm-app crm-worker
docker image prune -f