This commit is contained in:
+11
-12
@@ -11,17 +11,16 @@ jobs:
|
|||||||
runs-on: docker-ubuntu
|
runs-on: docker-ubuntu
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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:
|
with:
|
||||||
go_test: true
|
go_test: true
|
||||||
docker_build: false
|
docker_build: true
|
||||||
- id: ch
|
docker_run_options: |
|
||||||
uses: ./
|
--env=INPUT_BRANCH=dev
|
||||||
with:
|
--env=INPUT_BASE_BRANCH=main
|
||||||
task: resolve-channel
|
--env=INPUT_MAIN_BRANCH=main
|
||||||
branch: dev
|
--env=INPUT_DEV_BRANCH=dev
|
||||||
base_branch: main
|
--env=GITHUB_OUTPUT=/dev/stdout
|
||||||
main_branch: main
|
docker_run_args: |
|
||||||
dev_branch: dev
|
resolve-channel
|
||||||
- name: 檢查輸出
|
docker_run_expect: channel=release
|
||||||
run: test "${{ steps.ch.outputs.channel }}" = release
|
|
||||||
|
|||||||
@@ -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`)。
|
圖示:`icon.svg`(Gitea 儲存庫頭像用 `icon.png`)。
|
||||||
|
|||||||
Reference in New Issue
Block a user