Skip to content

Commit

Permalink
Bumped up the CCF version to 4.0.7 and added logging in the entrypoin…
Browse files Browse the repository at this point in the history
…t script (#5)

Co-authored-by: Yagnesh Setti <[email protected]>
  • Loading branch information
msftsettiy and settiy-ms authored Oct 25, 2023
1 parent 7b40f6c commit a274622
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/ccf/app/dev:4.0.1-sgx
FROM mcr.microsoft.com/ccf/app/dev:4.0.7-sgx

RUN apt update && \
apt install -y \
Expand Down
5 changes: 4 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ echo "$CERTD" > /opt/ccf_sgx/bin/cert
echo "$KEYD" > /opt/ccf_sgx/bin/key

cd /opt/ccf_sgx/bin
echo "Submitting the JS app."
content=$(ccf_cose_sign1 --ccf-gov-msg-type proposal --ccf-gov-msg-created_at `date -Is` --signing-key key --signing-cert cert --content set_js_app.json | curl ${CCF_URL}/gov/proposals -k -H "content-type: application/cose" --data-binary @-)
echo "Response from CCF: $content"
proposal=$(echo "${content}" | jq '.proposal_id')
echo "proposal=$proposal" >> $GITHUB_OUTPUT
echo "The proposal_id: $proposal"
echo "proposal=$proposal" >> $GITHUB_OUTPUT

0 comments on commit a274622

Please sign in to comment.