fix: remove unnecessary github actions

This commit is contained in:
2026-07-21 15:16:23 +07:00
parent 188d5f87b4
commit c931442984
5 changed files with 2 additions and 127 deletions
-60
View File
@@ -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
+1 -1
View File
@@ -3,7 +3,7 @@ name: Deploy to Dokploy
on:
push:
branches:
- master
- dev
workflow_dispatch:
concurrency:
-50
View File
@@ -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 }}"