From b3b8498c3e746d75417e9ec6eb56bd513a9857ef Mon Sep 17 00:00:00 2001 From: bot Date: Thu, 5 Nov 2026 03:20:22 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=EF=BC=9ADocker=20action=20?= =?UTF-8?q?=E8=87=AA=E6=B8=AC=E6=94=B9=E7=94=A8=20action-ci=20=E7=9A=84?= =?UTF-8?q?=E5=94=AF=E4=B8=80=E6=A8=99=E7=B1=A4=E6=98=A0=E5=83=8F=E6=AA=94?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E5=86=8D=E7=94=A8=20uses:=20./?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yaml | 23 +++++++++++------------ README.md | 2 +- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index f26c48b..08dc6d6 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -11,17 +11,16 @@ jobs: runs-on: docker-ubuntu steps: - uses: actions/checkout@v4 - - uses: https://gitea.jsc.idv.tw/actions/action-ci@v0.0.1 + - uses: https://gitea.jsc.idv.tw/actions/action-ci@v0.0.2 with: go_test: true - docker_build: false - - id: ch - uses: ./ - with: - task: resolve-channel - branch: dev - base_branch: main - main_branch: main - dev_branch: dev - - name: 檢查輸出 - run: test "${{ steps.ch.outputs.channel }}" = release + docker_build: true + docker_run_options: | + --env=INPUT_BRANCH=dev + --env=INPUT_BASE_BRANCH=main + --env=INPUT_MAIN_BRANCH=main + --env=INPUT_DEV_BRANCH=dev + --env=GITHUB_OUTPUT=/dev/stdout + docker_run_args: | + resolve-channel + docker_run_expect: channel=release diff --git a/README.md b/README.md index c058800..bdcfefc 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,6 @@ ## 開發 -`ci.yaml` 用共用的 [action-ci](https://gitea.jsc.idv.tw/actions/action-ci) 跑 shellcheck、Go 黑箱測試,並用 `uses: ./` 實際執行一次(同時檢查映像檔建得起來)。 +`ci.yaml` 用共用的 [action-ci](https://gitea.jsc.idv.tw/actions/action-ci) 跑 shellcheck、Go 黑箱測試,並建置映像檔、實際執行一次。 圖示:`icon.svg`(Gitea 儲存庫頭像用 `icon.png`)。