From b1bd08ba7a401c041207ebf4cf59e39210b54ae2 Mon Sep 17 00:00:00 2001 From: KV-Tube Deployer Date: Fri, 27 Mar 2026 08:12:19 +0700 Subject: [PATCH] Add workflow_dispatch and build args for API URL --- .github/workflows/ci.yml | 9 +++++++++ .github/workflows/docker-publish.yml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a956ea8..2ca6acf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,13 @@ on: 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: @@ -103,3 +110,5 @@ jobs: 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 index b8f124c..3f11b26 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -4,6 +4,13 @@ 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: @@ -45,3 +52,5 @@ jobs: 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' }}