Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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: ${{ github.event.release.tag_name }}
image_name: ${{ github.repository }}

permissions:
contents: read
permissions:
contents: read
packages: write
Comment thread
Colk-tech marked this conversation as resolved.
with:
is_release: true
tags: ''
image_name: ${{ github.repository }}

Copilot AI Aug 18, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow configuration has multiple issues: duplicate 'permissions' blocks (lines 22-26), duplicate 'with' blocks (lines 17-20 and 27-30), and conflicting tag values. The second 'with' block overrides the first one, setting tags to an empty string instead of the release tag name.

Suggested change
image_name: ${{ github.repository }}
packages: write

Copilot uses AI. Check for mistakes.