From 7eeb18afd5acc485578151c507d260652dc20c82 Mon Sep 17 00:00:00 2001 From: Colk-tech Date: Tue, 19 Aug 2025 02:00:04 +0900 Subject: [PATCH 1/3] add: add a new CI, `Release CI` --- .github/workflows/on-release.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/on-release.yml diff --git a/.github/workflows/on-release.yml b/.github/workflows/on-release.yml new file mode 100644 index 0000000..e5bbfc5 --- /dev/null +++ b/.github/workflows/on-release.yml @@ -0,0 +1,24 @@ +name: Release CI + +"on": + release: + types: + - released + +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + +jobs: + build: + name: Build Debug Image + + uses: ./.github/workflows/template-build-and-push.yml + with: + is_release: true + tags: '' + image_name: ${{ github.repository }} + + permissions: + contents: read + packages: write From c8e0ba4a28f89152ec0adf702b124e756942ddce Mon Sep 17 00:00:00 2001 From: "ITO Manaki (Colk)" <53868423+Colk-tech@users.noreply.github.com> Date: Tue, 19 Aug 2025 02:03:00 +0900 Subject: [PATCH 2/3] add: add `tag_name` for release tag Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/on-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/on-release.yml b/.github/workflows/on-release.yml index e5bbfc5..add4b81 100644 --- a/.github/workflows/on-release.yml +++ b/.github/workflows/on-release.yml @@ -16,7 +16,7 @@ jobs: uses: ./.github/workflows/template-build-and-push.yml with: is_release: true - tags: '' + tags: ${{ github.event.release.tag_name }} image_name: ${{ github.repository }} permissions: From 0781e2b5735ac75af55e3288db759d774cad9cbc Mon Sep 17 00:00:00 2001 From: "ITO Manaki (Colk)" <53868423+Colk-tech@users.noreply.github.com> Date: Tue, 19 Aug 2025 02:03:37 +0900 Subject: [PATCH 3/3] fix: invalid position of permissions block Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/on-release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/on-release.yml b/.github/workflows/on-release.yml index add4b81..e886065 100644 --- a/.github/workflows/on-release.yml +++ b/.github/workflows/on-release.yml @@ -19,6 +19,12 @@ jobs: tags: ${{ github.event.release.tag_name }} image_name: ${{ github.repository }} + permissions: + contents: read permissions: contents: read packages: write + with: + is_release: true + tags: '' + image_name: ${{ github.repository }}