Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Nov 26, 2024
1 parent 1b02b84 commit c2b8968
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ jobs:

- name: Build EIF image
run: |
docker run --rm -v $(pwd):/output \
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-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 \
Expand All @@ -60,6 +62,7 @@ jobs:
- name: Move artifact to upload directory
run: |
sudo mv tinfoil-enclave-${{ github.ref_name }}.eif upload/tinfoil-enclave-ollama-${{ github.ref_name }}.eif
sha256sum tinfoil-enclave-${{ github.ref_name }}.eif | cut -d ' ' -f 1 > upload/tinfoil-enclave-ollama-${{ github.ref_name }}.eif.sha256
- name: Upload artifact
uses: ryand56/r2-upload-action@latest
Expand All @@ -81,7 +84,7 @@ jobs:
\`\`\`
Log: https://search.sigstore.dev?logIndex=$(jq -r ".verificationMaterial.tlogEntries[0].logIndex" ${{ steps.attest.outputs.bundle-path }})
EIF image: https://enclave-images.tinfoil.sh/tinfoil-enclave-ollama-${{ github.ref_name }}.eif
EIF hash: $(sha256sum tinfoil-enclave-${{ github.ref_name }}.eif | cut -d ' ' -f 1)
EIF hash: $(cat upload/tinfoil-enclave-ollama-${{ github.ref_name }}.eif.sha256)
EOF
)
echo "release-notes<<EOF" >> "$GITHUB_OUTPUT"
Expand All @@ -92,5 +95,6 @@ jobs:
uses: softprops/action-gh-release@v2
with:
files: |
tinfoil-enclave-${{ github.ref_name }}-info.json
upload/tinfoil-enclave-ollama-${{ github.ref_name }}.eif
upload/tinfoil-enclave-ollama-${{ github.ref_name }}.eif.sha256
body: ${{ steps.generate-release-notes.outputs.release-notes }}

0 comments on commit c2b8968

Please sign in to comment.