Skip to content

Commit 897c42d

Browse files
committed
Ensure Docker SSH key cleanup
1 parent f13a45f commit 897c42d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • .github/actions/cpflow-build-docker-image

.github/actions/cpflow-build-docker-image/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,9 @@ runs:
104104
echo "🏗️ Building Docker image${PR_INFO} (commit ${COMMIT_SHA})..."
105105
cpflow build-image -a "${APP_NAME}" --commit="${COMMIT_SHA}" --org="${CONTROL_PLANE_ORG}" "${docker_build_args[@]}"
106106
echo "✅ Docker image build successful${PR_INFO} (commit ${COMMIT_SHA})"
107+
108+
- name: Cleanup Docker build SSH key
109+
if: ${{ always() }}
110+
shell: bash
111+
run: |
112+
rm -f "${HOME}/.ssh/cpflow_build_key"

0 commit comments

Comments
 (0)