diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml deleted file mode 100644 index e8ef957e..00000000 --- a/.github/workflows/docker-publish.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Build and Push Docker Image - -on: - push: - tags: - - "v*" - workflow_dispatch: - -env: - GHCR_IMAGE: ghcr.io/${{ github.repository }} - DOCKERHUB_IMAGE: decolua/9router - -jobs: - build-and-push: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - - steps: - - uses: actions/checkout@v4 - - - uses: docker/setup-buildx-action@v3 - - - name: Log in to GHCR - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Log in to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Extract metadata - id: meta - uses: docker/metadata-action@v5 - with: - images: | - ${{ env.GHCR_IMAGE }} - ${{ env.DOCKERHUB_IMAGE }} - tags: | - type=semver,pattern={{version}} - type=raw,value=latest,enable={{is_default_branch}} - - - name: Build and push - uses: docker/build-push-action@v6 - with: - context: . - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - cache-from: type=registry,ref=${{ env.GHCR_IMAGE }}:buildcache - cache-to: type=registry,ref=${{ env.GHCR_IMAGE }}:buildcache,mode=max - platforms: linux/amd64,linux/arm64 - provenance: false - sbom: false diff --git a/.github/workflows/dokploy-deploy.yml b/.github/workflows/dokploy-deploy.yml index 952e88cc..fcfbd48a 100644 --- a/.github/workflows/dokploy-deploy.yml +++ b/.github/workflows/dokploy-deploy.yml @@ -3,7 +3,7 @@ name: Deploy to Dokploy on: push: branches: - - master + - dev workflow_dispatch: concurrency: diff --git a/.github/workflows/gitbook-pages.yml b/.github/workflows/gitbook-pages.yml deleted file mode 100644 index 797e1dcf..00000000 --- a/.github/workflows/gitbook-pages.yml +++ /dev/null @@ -1,50 +0,0 @@ -name: Deploy GitBook to 9router.github.io - -on: - push: - branches: [main, master] - paths: - - "gitbook/**" - - ".github/workflows/gitbook-pages.yml" - workflow_dispatch: - -concurrency: - group: gitbook-pages - cancel-in-progress: true - -jobs: - build-deploy: - runs-on: ubuntu-latest - defaults: - run: - working-directory: gitbook - steps: - - uses: actions/checkout@v5 - - - uses: actions/setup-node@v6 - with: - node-version: 24 - - - name: Install deps - run: npm install --no-audit --no-fund - - - name: Build static export - run: npm run build - env: - NODE_ENV: production - NEXT_PUBLIC_BASE_PATH: "" - - - name: Add .nojekyll - run: touch out/.nojekyll - - - name: Deploy to 9router.github.io - uses: peaceiris/actions-gh-pages@v4 - with: - deploy_key: ${{ secrets.GH_PAGES_DEPLOY_KEY }} - external_repository: 9router/9router.github.io - publish_branch: main - publish_dir: gitbook/out - force_orphan: true - user_name: github-actions[bot] - user_email: github-actions[bot]@users.noreply.github.com - commit_message: "deploy: ${{ github.sha }}" diff --git a/CHANGELOG.md b/CHANGELOG.md index c5cab0f4..51d8e70c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## DevOps - **Dokploy**: deploy production Compose from GitHub Actions with serialized rollout tracking, terminal-status handling, health verification, and deployment summaries +- **GitHub Actions**: remove unrelated Docker image publishing and GitBook Pages deployment workflows # v0.5.35 (2026-07-16) diff --git a/DOCKER.md b/DOCKER.md index d384dfa4..ab0f813c 100644 --- a/DOCKER.md +++ b/DOCKER.md @@ -117,19 +117,3 @@ docker run --rm -p 20128:20128 \ -e DATA_DIR=/app/data \ 9router ``` - -## Publish (automatic via CI) - -Push a git tag `v*` → GitHub Actions builds multi-platform (amd64+arm64) and pushes to: -- `ghcr.io/decolua/9router:v{version}` + `:latest` -- `decolua/9router:v{version}` + `:latest` - -```bash -# Use scripts/release.js (recommended) -node scripts/release.js "Release title" "Notes" - -# Or manually -git tag v0.4.x && git push origin v0.4.x -``` - -Workflow: `app/.github/workflows/docker-publish.yml`