Skip to content

Commit

Permalink
substitute grep with jq
Browse files Browse the repository at this point in the history
  • Loading branch information
hummingalpaca committed Apr 10, 2023
1 parent d432bc7 commit a7f10ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-deploy-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
id: docker-push-backend
with:
context: .
build-args:
build-args: |
MOBILECOIND_BASE_TAG=${{ matrix.versions.mobilecoind }}
IAS_MODE=${{ matrix.versions.ias }}
NETWORK=${{ matrix.versions.network }}
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ FROM mobilecoin/builder-install:v0.0.17 AS builder
WORKDIR /build

ARG NETWORK=test
ARG CONSENSUS_SIGSTRUCT_URI=$(curl -s https://enclave-distribution.${NETWORK}.mobilecoin.com/production.json | grep consensus-enclave.css | awk '{print $2}' | tr -d \" | tr -d ,)
ARG CONSENSUS_SIGSTRUCT_URI=$(curl -s https://enclave-distribution.${NETWORK}.mobilecoin.com/production-v4.0.0.json | jq .consensus.sigstruct | tr -d \" )

RUN curl -O https://enclave-distribution.${NETWORK}.mobilecoin.com/${CONSENSUS_SIGSTRUCT_URI}

Expand Down

0 comments on commit a7f10ce

Please sign in to comment.