Add required human review gate to the Agent pipeline #1

Open
woogi wants to merge 28 commits from agent-mode into main
Showing only changes of commit ac328d34fd - Show all commits
+9 -2
View File
@@ -2,7 +2,7 @@ name: Docker Release
on: on:
push: push:
branches: [main] branches: [main, agent-mode]
tags: ["v*"] tags: ["v*"]
env: env:
@@ -25,12 +25,19 @@ jobs:
{ {
echo "tags<<EOF" echo "tags<<EOF"
echo "${IMAGE}:latest"
echo "${IMAGE}:sha-${short_sha}" echo "${IMAGE}:sha-${short_sha}"
if [ "${GITHUB_REF_TYPE}" = "tag" ]; then if [ "${GITHUB_REF_TYPE}" = "tag" ]; then
ref_name="${GITHUB_REF_NAME}" ref_name="${GITHUB_REF_NAME}"
echo "${IMAGE}:${ref_name}" echo "${IMAGE}:${ref_name}"
echo "${IMAGE}:${ref_name#v}" echo "${IMAGE}:${ref_name#v}"
elif [ "${GITHUB_REF_NAME}" = "main" ]; then
# Only the stable Classic line publishes :latest.
echo "${IMAGE}:latest"
else
# Feature branches (e.g. agent-mode) publish under a branch tag
# so they never overwrite the default :latest image.
branch_tag="${GITHUB_REF_NAME//\//-}"
echo "${IMAGE}:${branch_tag}"
fi fi
echo "EOF" echo "EOF"
} >> "$GITHUB_OUTPUT" } >> "$GITHUB_OUTPUT"