Skip to content

Commit

Permalink
modify ipfs-pinner ci workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Pranay Valson <[email protected]>
  • Loading branch information
noslav committed Jan 8, 2025
1 parent d64340f commit 74ad54f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions docker-compose-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,16 @@ services:
restart: on-failure
entrypoint: |
/bin/bash -l -c "
touch proof_out_hex.txt;
chmod +x proof_out_hex.txt;
echo "$PROOF_OUT_HEX" > proof_out_hex.txt;
xxd -r -p proof_out_hex.txt > proof_from_hex.out;
chmod +x proof_from_hex.out;
mv ./proof_from_hex.out /root/.ipfs/proof_from_hex.out;
# Write proof hex to file, preserving newlines and special characters
echo -e \"$PROOF_OUT_HEX\" > proof_out_hex.txt;
# Convert hex to binary, handling multi-line input
cat proof_out_hex.txt | xxd -r -p > proof_from_hex.out;
# Ensure proper permissions and move to destination
chmod 644 proof_from_hex.out;
mv proof_from_hex.out /root/.ipfs/proof_from_hex.out;
./ipfs-server -port 3001 -w3-agent-key $W3_AGENT_KEY -w3-delegation-file $W3_DELEGATION_FILE;"
expose:
- "4001:4001"
Expand Down

0 comments on commit 74ad54f

Please sign in to comment.