Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/dapp-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions deployment-dapp/src/deployScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const main = async () => {
DOCKER_IMAGE_TAG,
CHECKSUM,
FINGERPRINT,
SCONIFY_VERSION,
} = process.env;

if (!WALLET_PRIVATE_KEY)
Expand All @@ -25,6 +26,7 @@ const main = async () => {
dockerTag: DOCKER_IMAGE_TAG,
checksum: CHECKSUM,
fingerprint: FINGERPRINT,
sconifyVersion: SCONIFY_VERSION,
});
await saveAppAddress(address);
};
Expand Down
6 changes: 5 additions & 1 deletion deployment-dapp/src/singleFunction/deployApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,24 @@
dockerTag,
checksum,
fingerprint,
sconifyVersion,
}: {
iexec: IExec;
dockerNamespace?: string;
dockerRepository?: string;
dockerTag: string;
checksum?: string;
fingerprint?: string;
sconifyVersion: string;
}): Promise<string> => {
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

Check warning on line 32 in deployment-dapp/src/singleFunction/deployApp.ts

View workflow job for this annotation

GitHub Actions / check-code

Unexpected any. Specify a different type
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,
Expand Down