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
Copy file name to clipboardExpand all lines: .github/actions/cpflow-build-docker-image/action.yml
+19-12Lines changed: 19 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -21,8 +21,12 @@ inputs:
21
21
description: Optional private SSH key used for Docker builds that fetch private dependencies with RUN --mount=type=ssh
22
22
required: false
23
23
docker_build_ssh_known_hosts:
24
-
description: Optional SSH known_hosts entries used with docker_build_ssh_key. Defaults to pinned GitHub.com host keys; override if GitHub rotates keys or your build uses another SSH host.
24
+
description: Optional SSH known_hosts entries used with docker_build_ssh_key. Defaults to pinned GitHub.com host keys.
25
25
required: false
26
+
working_directory:
27
+
description: Directory containing the app .controlplane config and Docker build context
28
+
required: false
29
+
default: "."
26
30
27
31
runs:
28
32
using: composite
@@ -48,10 +52,8 @@ runs:
48
52
chmod 700 ~/.ssh
49
53
50
54
if [[ -n "${DOCKER_BUILD_SSH_KNOWN_HOSTS}" ]]; then
if ! workload_json="$(cpln workload get "${CPFLOW_WORKLOAD_NAME}" --gvc "${CPFLOW_APP_NAME}" --org "${CPFLOW_ORG}" -o json 2>&1)"; then
64
+
workload_stderr="$(mktemp)"
65
+
if ! workload_json="$(cpln workload get "${CPFLOW_WORKLOAD_NAME}" --gvc "${CPFLOW_APP_NAME}" --org "${CPFLOW_ORG}" -o json 2>"${workload_stderr}")"; then
65
66
echo "::error::Workload '${CPFLOW_WORKLOAD_NAME}' not found in GVC '${CPFLOW_APP_NAME}'. Set PRIMARY_WORKLOAD to the correct workload name." >&2
Copy file name to clipboardExpand all lines: .github/cpflow-help.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,12 @@
6
6
- Creates the review app if it does not exist
7
7
- Builds the PR commit image
8
8
- Deploys the image and comments with the review URL
9
-
-The comment must contain exactly `/deploy-review-app`and no other text
9
+
-Comment body must be exactly `/deploy-review-app`— no surrounding text, trailing whitespace, or trailing newline. The trigger uses an exact-equality match, so a comment like `please /deploy-review-app now` or `/deploy-review-app ` (with a trailing space) silently no-ops.
10
10
11
11
`/delete-review-app`
12
12
- Deletes the review app when the PR is done
13
13
- This also runs automatically when the PR closes
14
-
-The comment must contain exactly `/delete-review-app` and no other text
14
+
-Same exact-match rule as `/deploy-review-app`: the comment body must be exactly `/delete-review-app`.
0 commit comments