You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ci): fix manual deploy invalid inputs and improve CI/CD tag architecture (#34689)
- Fix cicd_8-manual-deploy: use change-detection='disabled' instead of
invalid validation-level='none'; make ref input optional (defaults to
dispatch branch, preserving legacy behavior)
- Redesign Docker tag architecture: add semantic identifier-tag/custom-tag
inputs to deploy-docker action, replacing raw type=raw,value=...,enable=
format strings passed from callers
- Centralize tag computation in Compute Docker Tags step (replaces
Compute Docker Base Tag + raw extra-tags); identifier alias logic is
now clear bash if/else instead of enable= expressions in format strings
- extra-tags retained as escape hatch for advanced cases
- Fix tag ordering: identifier before suffix (nightly_20250218_java25,
not nightly_java25_20250218), consistent with release pattern
- Remove dead code: reuse-previous-build from deployment phase calls
(only meaningful in initialize phase)
- Add run-name to all CI/CD workflows (cicd_1 through cicd_8) for better
identification in GitHub Actions UI; uses format() now confirmed available
- Fix cicd_8 concurrency group to use fallback when ref input is empty
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .github/actions/core-cicd/deployment/deploy-docker/action.yml
+25-2Lines changed: 25 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -22,8 +22,9 @@ inputs:
22
22
description: 'The commit id that triggered the build'
23
23
required: true
24
24
ref:
25
-
description: 'The branch or type of build to tag the image with'
26
-
required: true
25
+
description: 'The branch or type of build to tag the image with. Only used when docker-use-ref is true; when docker-use-ref is false the version input drives all tags and this is ignored.'
26
+
required: false
27
+
default: ''
27
28
docker-use-ref:
28
29
description: 'The branch or type of build to tag the image with'
29
30
required: false
@@ -65,6 +66,18 @@ inputs:
65
66
description: 'Pull image before building'
66
67
required: false
67
68
default: 'false'
69
+
identifier-tag:
70
+
description: 'Optional mutable alias tag managed by the deployment phase (e.g., nightly_20250218_java25, manual_issue-123_java25). Applied when non-empty.'
71
+
required: false
72
+
default: ''
73
+
custom-tag:
74
+
description: 'Optional custom alias tag chosen by the developer (e.g., modernization, java25-testing). Applied when non-empty.'
75
+
required: false
76
+
default: ''
77
+
extra-tags:
78
+
description: 'Escape hatch: additional tags in docker/metadata-action format (type=raw,value=...), one per line. Use for cases not covered by identifier-tag or custom-tag.'
79
+
required: false
80
+
default: ''
68
81
outputs:
69
82
tags:
70
83
description: "The tags that were used to build the image"
description: 'Use current HEAD of main instead of the midnight UTC commit. Set to true when you want to pick up commits made after midnight rather than reproduce the scheduled run.'
63
+
type: boolean
64
+
default: false
52
65
53
66
jobs:
67
+
# Setup job - determines the commit to build from.
68
+
# Default (scheduled and manual): last commit on main at or before midnight UTC for repeatability.
69
+
# Manual with use-latest-commit=true: current HEAD of main.
0 commit comments