Skip to content

Commit

Permalink
fix: build in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Nov 26, 2024
1 parent 7278de5 commit 1b02b84
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b02b84

Please sign in to comment.