From 1b02b845cf710628b3e4c9bd1722356129750fb8 Mon Sep 17 00:00:00 2001 From: Nate Sales Date: Tue, 26 Nov 2024 09:44:33 -0500 Subject: [PATCH] fix: build in docker --- .github/workflows/release.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aec27a7..f4dbfb9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,13 +29,24 @@ jobs: load: true tags: ollama-nitro:latest + - name: Build EIF builder + uses: docker/build-push-action@v5 + with: + context: eif-builder + push: false + load: true + tags: eif-builder:latest + - name: Build EIF image run: | - nitro-cli build-enclave --docker-uri ollama-nitro:latest --output-file tinfoil-enclave-${{ github.ref_name }}.eif + docker run --rm -v $(pwd):/output \ + -e EIF_FILE=tinfoil-enclave-${{ github.ref_name }}.eif \ + -e INFO_FILE=tinfoil-enclave-${{ github.ref_name }}-info.json \ + -e DOCKER_IMAGE=ollama-nitro:latest \ + eif-builder:latest - - name: Create measurements predicate + - name: Extract measurements predicate run: | - nitro-cli describe-eif --eif-path tinfoil-enclave-${{ github.ref_name }}.eif > tinfoil-enclave-${{ github.ref_name }}-info.json jq -r ".Measurements" tinfoil-enclave-${{ github.ref_name }}-info.json > predicate.json - name: Attest