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' }}