From 351fba998d56e6218c7fa03feed694477c62355a Mon Sep 17 00:00:00 2001 From: paypes <43441600+abbesBenayache@users.noreply.github.com> Date: Thu, 7 Aug 2025 10:22:05 +0200 Subject: [PATCH 1/2] fix: update SCONIFY version to 5.9.1-v16 --- .github/workflows/dapp-deploy.yml | 3 ++- deployment-dapp/src/deployScript.ts | 2 ++ deployment-dapp/src/singleFunction/deployApp.ts | 6 +++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dapp-deploy.yml b/.github/workflows/dapp-deploy.yml index ed38a72..85f7e36 100644 --- a/.github/workflows/dapp-deploy.yml +++ b/.github/workflows/dapp-deploy.yml @@ -67,7 +67,7 @@ jobs: sconify-debug: false sconify-prod: true docker-registry: docker.io - sconify-version: '5.9.0-v15' + sconify-version: ${{ vars.SCONIFY_VERSION }} binary: /usr/local/bin/node command: node host-path: | @@ -114,6 +114,7 @@ jobs: CHECKSUM: ${{ needs.sconify.outputs.prod-checksum }} FINGERPRINT: ${{ needs.sconify.outputs.prod-mrenclave }} RPC_URL: ${{ secrets.RPC_URL }} + SCONIFY_VERSION: ${{ vars.SCONIFY_VERSION }} run: | cd deployment-dapp npm run deploy-dapp diff --git a/deployment-dapp/src/deployScript.ts b/deployment-dapp/src/deployScript.ts index aa33c48..8393281 100644 --- a/deployment-dapp/src/deployScript.ts +++ b/deployment-dapp/src/deployScript.ts @@ -9,6 +9,7 @@ const main = async () => { DOCKER_IMAGE_TAG, CHECKSUM, FINGERPRINT, + SCONIFY_VERSION, } = process.env; if (!WALLET_PRIVATE_KEY) @@ -25,6 +26,7 @@ const main = async () => { dockerTag: DOCKER_IMAGE_TAG, checksum: CHECKSUM, fingerprint: FINGERPRINT, + sconifyVersion: SCONIFY_VERSION, }); await saveAppAddress(address); }; diff --git a/deployment-dapp/src/singleFunction/deployApp.ts b/deployment-dapp/src/singleFunction/deployApp.ts index 1a506cf..35f2b5a 100644 --- a/deployment-dapp/src/singleFunction/deployApp.ts +++ b/deployment-dapp/src/singleFunction/deployApp.ts @@ -13,6 +13,7 @@ export const deployApp = async ({ dockerTag, checksum, fingerprint, + sconifyVersion, }: { iexec: IExec; dockerNamespace?: string; @@ -20,13 +21,16 @@ export const deployApp = async ({ dockerTag: string; checksum?: string; fingerprint?: string; + sconifyVersion: string; }): Promise => { const name = APP_NAME; const type = APP_TYPE; + console.log(`Using SCONIFY version: ${sconifyVersion}`); + const mrenclave = { framework: 'SCONE' as any, // workaround framework not auto capitalized - version: 'v5.9', + version: `v${sconifyVersion.split(".").slice(0, 2).join(".")}`, // extracts "vX.Y" from "X.Y.Z-vN" format (e.g., "5.9.1-v16" → "v5.9") entrypoint: 'node /app/app.js', heapSize: 1073741824, fingerprint, From dab0f77fa799ffd2a91a23d1cbe21687623d48bb Mon Sep 17 00:00:00 2001 From: paypes <43441600+abbesBenayache@users.noreply.github.com> Date: Thu, 7 Aug 2025 10:55:23 +0200 Subject: [PATCH 2/2] style: format codebase using npm run format --- deployment-dapp/src/singleFunction/deployApp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment-dapp/src/singleFunction/deployApp.ts b/deployment-dapp/src/singleFunction/deployApp.ts index 35f2b5a..20f219e 100644 --- a/deployment-dapp/src/singleFunction/deployApp.ts +++ b/deployment-dapp/src/singleFunction/deployApp.ts @@ -30,7 +30,7 @@ export const deployApp = async ({ const mrenclave = { framework: 'SCONE' as any, // workaround framework not auto capitalized - version: `v${sconifyVersion.split(".").slice(0, 2).join(".")}`, // extracts "vX.Y" from "X.Y.Z-vN" format (e.g., "5.9.1-v16" → "v5.9") + version: `v${sconifyVersion.split('.').slice(0, 2).join('.')}`, // extracts "vX.Y" from "X.Y.Z-vN" format (e.g., "5.9.1-v16" → "v5.9") entrypoint: 'node /app/app.js', heapSize: 1073741824, fingerprint,