From 046ac09afd23320e308e9aabe11c663994cb67ff Mon Sep 17 00:00:00 2001 From: Kasper Ziemianek Date: Tue, 21 May 2024 11:25:55 +0200 Subject: [PATCH] sgx commercial key --- .github/workflows/build_bitacross.yml | 2 ++ bitacross-worker/Makefile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_bitacross.yml b/.github/workflows/build_bitacross.yml index c4e6a2ece0..c7991ceb7d 100644 --- a/.github/workflows/build_bitacross.yml +++ b/.github/workflows/build_bitacross.yml @@ -19,6 +19,8 @@ jobs: - name: Build local builder uses: docker/build-push-action@v5 + env: + SGX_COMMERCIAL_KEY: "/opt/enclave_release/sgx_sign_key.pem" with: context: . file: bitacross-worker/build.Dockerfile diff --git a/bitacross-worker/Makefile b/bitacross-worker/Makefile index dec8fc9ec6..12470fe990 100755 --- a/bitacross-worker/Makefile +++ b/bitacross-worker/Makefile @@ -74,7 +74,7 @@ SGX_COMMON_CFLAGS += -fstack-protector ifeq ($(SGX_PRODUCTION), 1) SGX_ENCLAVE_MODE = "Production Mode" SGX_ENCLAVE_CONFIG = "enclave-runtime/Enclave.config.production.xml" - SGX_SIGN_KEY = $(SGX_COMMERCIAL_KEY) + SGX_SIGN_KEY = "/opt/enclave_release/sgx_sign_key.pem" SGX_SIGN_PASSFILE = $(SGX_PASSFILE) WORKER_FEATURES := --features=link-binary,$(WORKER_MODE),$(WORKER_FEATURES),$(ADDITIONAL_FEATURES) else