From 97309d3aad392fcf93f5ccf8b73cd8328f82abbb Mon Sep 17 00:00:00 2001 From: giles Date: Tue, 24 Feb 2026 23:23:29 +0000 Subject: [PATCH] =?UTF-8?q?Disable=20CI=20=E2=80=94=20moved=20to=20coop/ar?= =?UTF-8?q?t-dag=20monorepo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yml | 63 ----------------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml deleted file mode 100644 index a79f66e..0000000 --- a/.gitea/workflows/ci.yml +++ /dev/null @@ -1,63 +0,0 @@ -name: Build and Deploy - -on: - push: - -env: - REGISTRY: registry.rose-ash.com:5000 - IMAGE_CPU: celery-l1-server - -jobs: - build-and-deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Install tools - run: | - apt-get update && apt-get install -y --no-install-recommends openssh-client - - - name: Set up SSH - env: - SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }} - DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} - run: | - mkdir -p ~/.ssh - echo "$SSH_KEY" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ssh-keyscan -H "$DEPLOY_HOST" >> ~/.ssh/known_hosts 2>/dev/null || true - - - name: Pull latest code on server - env: - DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} - BRANCH: ${{ github.ref_name }} - run: | - ssh "root@$DEPLOY_HOST" " - cd /root/art-dag/celery - git fetch origin $BRANCH - git checkout $BRANCH - git reset --hard origin/$BRANCH - " - - - name: Build and push image - env: - DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} - run: | - ssh "root@$DEPLOY_HOST" " - cd /root/art-dag/celery - docker build --build-arg CACHEBUST=\$(date +%s) -t ${{ env.REGISTRY }}/${{ env.IMAGE_CPU }}:latest -t ${{ env.REGISTRY }}/${{ env.IMAGE_CPU }}:${{ github.sha }} . - docker push ${{ env.REGISTRY }}/${{ env.IMAGE_CPU }}:latest - docker push ${{ env.REGISTRY }}/${{ env.IMAGE_CPU }}:${{ github.sha }} - " - - - name: Deploy stack - env: - DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} - run: | - ssh "root@$DEPLOY_HOST" " - cd /root/art-dag/celery - docker stack deploy -c docker-compose.yml celery - echo 'Waiting for services to update...' - sleep 10 - docker stack services celery - "