Skip to content

Commit

Permalink
Update entrypoint.sh (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
msftsettiy authored Jun 7, 2023
1 parent b127b10 commit b47adfd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

pwd
ls -l /home/runner/work/azure-managedccf-tools/azure-managedccf-tools
cp $1 /opt/ccf_sgx/bin

echo "$CERTD" > /opt/ccf_sgx/bin/cert
Expand All @@ -8,4 +10,4 @@ echo "$KEYD" > /opt/ccf_sgx/bin/key
cd /opt/ccf_sgx/bin
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 @-)
proposal=$(echo "${content}" | jq '.proposal_id')
echo "proposal=$proposal" >> $GITHUB_OUTPUT
echo "proposal=$proposal" >> $GITHUB_OUTPUT

0 comments on commit b47adfd

Please sign in to comment.