From ccee56aff25f34bf9f7608ad6084787f53179259 Mon Sep 17 00:00:00 2001 From: KV-Tube Deployer Date: Sat, 28 Mar 2026 15:38:29 +0700 Subject: [PATCH] remove: all GitHub related files --- .github/workflows/ci.yml | 114 --------------------------- .github/workflows/docker-publish.yml | 56 ------------- 2 files changed, 170 deletions(-) delete mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/docker-publish.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 2ca6acf..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,114 +0,0 @@ -name: CI - -on: - push: - branches: [main, master] - pull_request: - branches: [main, master] - workflow_dispatch: - inputs: - api_url: - description: 'API URL' - required: false - default: 'http://ut.khoavo.myds.me:8981/api' - type: string - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.11' - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install ruff mypy bandit types-requests - pip install -r requirements.txt - - - name: Run Ruff - run: ruff check . --output-format=github - - - name: Run MyPy - run: mypy app/ config.py --ignore-missing-imports - continue-on-error: true - - - name: Run Bandit - run: bandit -r app/ -x app/routes/api --skip B101,B311 - continue-on-error: true - - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.11' - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install pytest pytest-cov - - - name: Run tests - run: pytest tests/ -v --tb=short - continue-on-error: true - - build: - runs-on: ubuntu-latest - needs: [lint, test] - if: startsWith(github.ref, 'refs/tags/') - - steps: - - uses: actions/checkout@v4 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Log into Docker Hub - uses: docker/login-action@v3 - with: - registry: docker.io - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Log into Forgejo Registry - uses: docker/login-action@v3 - with: - registry: git.khoavo.myds.me - username: ${{ secrets.FORGEJO_USERNAME }} - password: ${{ secrets.FORGEJO_PASSWORD }} - - - name: Extract Docker metadata - id: meta - uses: docker/metadata-action@v5 - with: - images: | - docker.io/${{ github.repository }} - git.khoavo.myds.me/${{ github.repository }} - tags: | - type=semver,pattern={{version}} - type=raw,value=latest,enable=${{ github.ref == 'refs/tags/v*' }} - - - name: Build and push Docker image - uses: docker/build-push-action@v5 - with: - context: . - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - platforms: linux/amd64 - cache-from: type=gha - cache-to: type=gha,mode=max - build-args: | - NEXT_PUBLIC_API_URL=${{ github.event.inputs.api_url || 'http://ut.khoavo.myds.me:8981/api' }} diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml deleted file mode 100644 index 3f11b26..0000000 --- a/.github/workflows/docker-publish.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: Docker Build & Push - -on: - push: - tags: - - 'v*' - workflow_dispatch: - inputs: - api_url: - description: 'API URL' - required: false - default: 'http://ut.khoavo.myds.me:8981/api' - type: string - -jobs: - build: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Log into Forgejo Registry - uses: docker/login-action@v3 - with: - registry: git.khoavo.myds.me - username: ${{ secrets.FORGEJO_USERNAME }} - password: ${{ secrets.FORGEJO_PASSWORD }} - - - name: Extract metadata - id: meta - uses: docker/metadata-action@v5 - with: - images: git.khoavo.myds.me/vndangkhoa/kv-tube - tags: | - type=semver,pattern={{version}} - type=raw,value=latest,enable=${{ github.ref == 'refs/tags/v*' }} - - - name: Build and push - uses: docker/build-push-action@v5 - with: - context: . - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - platforms: linux/amd64 - cache-from: type=gha - cache-to: type=gha,mode=max - build-args: | - NEXT_PUBLIC_API_URL=${{ github.event.inputs.api_url || 'http://ut.khoavo.myds.me:8981/api' }}