Skip to content

Commit 993f186

Browse files
fix: update SCONIFY version to 5.9.1-v16 (#70)
* fix: update SCONIFY version to 5.9.1-v16 * style: format codebase using npm run format
1 parent f1dbbf3 commit 993f186

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/dapp-deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
sconify-debug: false
6868
sconify-prod: true
6969
docker-registry: docker.io
70-
sconify-version: '5.9.0-v15'
70+
sconify-version: ${{ vars.SCONIFY_VERSION }}
7171
binary: /usr/local/bin/node
7272
command: node
7373
host-path: |
@@ -114,6 +114,7 @@ jobs:
114114
CHECKSUM: ${{ needs.sconify.outputs.prod-checksum }}
115115
FINGERPRINT: ${{ needs.sconify.outputs.prod-mrenclave }}
116116
RPC_URL: ${{ secrets.RPC_URL }}
117+
SCONIFY_VERSION: ${{ vars.SCONIFY_VERSION }}
117118
run: |
118119
cd deployment-dapp
119120
npm run deploy-dapp

deployment-dapp/src/deployScript.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const main = async () => {
99
DOCKER_IMAGE_TAG,
1010
CHECKSUM,
1111
FINGERPRINT,
12+
SCONIFY_VERSION,
1213
} = process.env;
1314

1415
if (!WALLET_PRIVATE_KEY)
@@ -25,6 +26,7 @@ const main = async () => {
2526
dockerTag: DOCKER_IMAGE_TAG,
2627
checksum: CHECKSUM,
2728
fingerprint: FINGERPRINT,
29+
sconifyVersion: SCONIFY_VERSION,
2830
});
2931
await saveAppAddress(address);
3032
};

deployment-dapp/src/singleFunction/deployApp.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,24 @@ export const deployApp = async ({
1313
dockerTag,
1414
checksum,
1515
fingerprint,
16+
sconifyVersion,
1617
}: {
1718
iexec: IExec;
1819
dockerNamespace?: string;
1920
dockerRepository?: string;
2021
dockerTag: string;
2122
checksum?: string;
2223
fingerprint?: string;
24+
sconifyVersion: string;
2325
}): Promise<string> => {
2426
const name = APP_NAME;
2527
const type = APP_TYPE;
2628

29+
console.log(`Using SCONIFY version: ${sconifyVersion}`);
30+
2731
const mrenclave = {
2832
framework: 'SCONE' as any, // workaround framework not auto capitalized
29-
version: 'v5.9',
33+
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")
3034
entrypoint: 'node /app/app.js',
3135
heapSize: 1073741824,
3236
fingerprint,

0 commit comments

Comments
 (0)