File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
DocuSign.Workspaces/DocuSign.Workspaces Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 2121 echo "Unable to locate DocuSign.Workspaces.csproj in build context"
2222 exit 1
2323fi
24+ PROJECT_DIR="$(dirname " $SELECTED_PROJECT")"
25+ SPA_DIR="$PROJECT_DIR/ClientApp"
26+
27+ if [ -d "$SPA_DIR" ]; then
28+ npm ci --prefix "$SPA_DIR" --legacy-peer-deps
29+ npm run build --prefix "$SPA_DIR"
30+ fi
2431dotnet restore "$SELECTED_PROJECT"
2532dotnet publish "$SELECTED_PROJECT" -c Release -o /app/publish --no-restore
33+
34+ if [ -d "$SPA_DIR/build" ]; then
35+ mkdir -p /app/publish/ClientApp
36+ cp -a "$SPA_DIR/build" /app/publish/ClientApp/
37+ fi
2638BASH
2739
2840FROM base AS final
Original file line number Diff line number Diff line change 22set -e
33
44if [ -n " ${DOCUSIGN_PRIVATE_KEY_BASE64:- } " ]; then
5- echo " $DOCUSIGN_PRIVATE_KEY_BASE64 " | base64 -d > /app/private.key
6- chmod 600 /app/private.key
5+ if printf " %s" " $DOCUSIGN_PRIVATE_KEY_BASE64 " | base64 -d > /app/private.key 2> /dev/null; then
6+ chmod 600 /app/private.key
7+ elif [ -n " ${DOCUSIGN_PRIVATE_KEY:- } " ]; then
8+ printf " %s" " $DOCUSIGN_PRIVATE_KEY " > /app/private.key
9+ chmod 600 /app/private.key
10+ else
11+ echo " DOCUSIGN_PRIVATE_KEY_BASE64 is set but invalid; no private key written." >&2
12+ fi
713elif [ -n " ${DOCUSIGN_PRIVATE_KEY:- } " ]; then
814 printf " %s" " $DOCUSIGN_PRIVATE_KEY " > /app/private.key
915 chmod 600 /app/private.key
You can’t perform that action at this time.
0 commit comments