Skip to content

Commit 22a2171

Browse files
ci: update SCONIFY version to 5.9.1-v16
1 parent 081d232 commit 22a2171

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
@@ -69,7 +69,7 @@ jobs:
6969
sconify-debug: false
7070
sconify-prod: true
7171
docker-registry: docker.io
72-
sconify-version: '5.9.0-v15'
72+
sconify-version: ${{ vars.SCONIFY_VERSION }}
7373
binary: /usr/local/bin/node
7474
command: node
7575
host-path: |
@@ -116,6 +116,7 @@ jobs:
116116
CHECKSUM: ${{ needs.sconify.outputs.prod-checksum }}
117117
FINGERPRINT: ${{ needs.sconify.outputs.prod-mrenclave }}
118118
RPC_URL: ${{ secrets.RPC_URL }}
119+
SCONIFY_VERSION: ${{ vars.SCONIFY_VERSION }}
119120
run: |
120121
cd deployment-dapp
121122
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 --disable-wasm-trap-handler /app/app.js',
3135
heapSize: 7516192768,
3236
fingerprint,

0 commit comments

Comments
 (0)