Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter v2S
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
rust
Duniter v2S
Commits
05132702
Commit
05132702
authored
3 months ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
fix: jq
parent
db771634
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#39426
canceled
3 months ago
Stage: labels
Stage: quality
Stage: build
Stage: tests
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+4
-4
4 additions, 4 deletions
.gitlab-ci.yml
with
4 additions
and
4 deletions
.gitlab-ci.yml
+
4
−
4
View file @
05132702
...
...
@@ -436,15 +436,15 @@ build_raw_specs:
-
export FEATURES="--features $RUNTIME --no-default-features"
-
echo "FEATURES = $FEATURES"
-
apt-get update
-
apt-get install -y clang cmake protobuf-compiler jq
yq
-
apt-get install -y clang cmake protobuf-compiler jq
# Print chainspec to file
-
cargo xtask print-spec $NETWORK_RELEASE > ${RUNTIME}-printed.json
# Merge client specs into chainspec file (to update bootnodes for example)
# 1. Download yq to create a json client spec file
#
- wget https://github.com/mikefarah/yq/releases/download/v4.44.6/yq_linux_arm64 -O yq
#
- chmod +x ./yq
-
wget https://github.com/mikefarah/yq/releases/download/v4.44.6/yq_linux_arm64 -O yq
-
chmod +x ./yq
# 2. YML -> JSON for the client specs
-
cat node/specs/${RUNTIME}_client-specs.yaml | yq --output-format json > node/specs/${RUNTIME}_client-specs.json
-
cat node/specs/${RUNTIME}_client-specs.yaml |
./
yq --output-format json > node/specs/${RUNTIME}_client-specs.json
# 3. Merge the client spec file into chainspec file and create the final spec file (e.g. gdev.json)
-
jq -s '.[0] * .[1]' node/specs/${RUNTIME}_client-specs.json ${RUNTIME}-printed.json > ${RUNTIME}.json
# Produce raw spec file
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment