Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add output format options #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add output format options #9

wants to merge 1 commit into from

Conversation

gartnera
Copy link
Member

@gartnera gartnera commented Nov 8, 2024

Add json-info (useful for quickly getting binary urls) and ansible-yaml (useful for rolling out binaries to our validators) outputs.

  noderelease2proposal git:(add-output-format) ✗ go run .  https://github.com/zeta-chain/node/releases/tag/v22.0.0 -o json-info
2024/11/07 16:26:25 WARN: upgrade height is for example only and need to be configured correctly
2024/11/07 16:26:25 WARN: deposit is for example only and need to be configured correctly
{
  "binaries": {
    "darwin/amd64": "https://github.com/zeta-chain/node/releases/download/v22.0.0/zetacored-darwin-amd64?checksum=sha256:56ab0a2e763f5955d365648daabe3304af5f2e5ba296cffd149b972ab7af0405",
    "darwin/arm64": "https://github.com/zeta-chain/node/releases/download/v22.0.0/zetacored-darwin-arm64?checksum=sha256:a5854cb2002babfb35b3d7596a310444e4a2abbf4471f04401a656d770464ecc",
    "linux/amd64": "https://github.com/zeta-chain/node/releases/download/v22.0.0/zetacored-linux-amd64?checksum=sha256:8452f92f36136c0a5be3614000074730c7a3452e5342ac836a7d9858e04942ce",
    "linux/arm64": "https://github.com/zeta-chain/node/releases/download/v22.0.0/zetacored-linux-arm64?checksum=sha256:05de8abcd1f0089d4a118803db7f7e04bceb07fd32bb3a05dac825b5a42073d7",
    "zetaclientd-linux/amd64": "https://github.com/zeta-chain/node/releases/download/v22.0.0/zetaclientd-linux-amd64?checksum=sha256:a80bd9a1a5f3d2942692da3cd12e75fd677ee6c07abe7a6ed6c53a34747466b7",
    "zetaclientd-linux/arm64": "https://github.com/zeta-chain/node/releases/download/v22.0.0/zetaclientd-linux-arm64?checksum=sha256:5313c616d89004bb0bfa8e5547cd3361c93204b0294af41e7dd115a4815d70b2"
  }
}
  noderelease2proposal git:(add-output-format) ✗ go run .  https://github.com/zeta-chain/node/releases/tag/v22.0.0 -o ansible-yaml
2024/11/07 16:26:39 WARN: upgrade height is for example only and need to be configured correctly
2024/11/07 16:26:39 WARN: deposit is for example only and need to be configured correctly
- name: zetaclientd-linux-arm64
  version: v22.0.0
  checksum: sha256:5313c616d89004bb0bfa8e5547cd3361c93204b0294af41e7dd115a4815d70b2
  architecture: arm64
  url: https://github.com/zeta-chain/node/releases/download/v22.0.0/zetaclientd-linux-arm64
  dest: '{{ ensure_cosmovisor_visor_path }}/upgrades/v22/bin/{{ ensure_cosmovisor_daemon_name }}'
  mode: "0755"
  owner: zetachain
  group: zetachain
  exclude_network: ""
- name: zetacored-linux-amd64
  version: v22.0.0
  checksum: sha256:8452f92f36136c0a5be3614000074730c7a3452e5342ac836a7d9858e04942ce
  architecture: amd64
  url: https://github.com/zeta-chain/node/releases/download/v22.0.0/zetacored-linux-amd64
  dest: '{{ ensure_cosmovisor_visor_path }}/upgrades/v22/bin/{{ ensure_cosmovisor_daemon_name }}'
  mode: "0755"
  owner: zetachain
  group: zetachain
  exclude_network: ""
- name: zetacored-linux-arm64
  version: v22.0.0
  checksum: sha256:05de8abcd1f0089d4a118803db7f7e04bceb07fd32bb3a05dac825b5a42073d7
  architecture: arm64
  url: https://github.com/zeta-chain/node/releases/download/v22.0.0/zetacored-linux-arm64
  dest: '{{ ensure_cosmovisor_visor_path }}/upgrades/v22/bin/{{ ensure_cosmovisor_daemon_name }}'
  mode: "0755"
  owner: zetachain
  group: zetachain
  exclude_network: ""
- name: zetaclientd-linux-amd64
  version: v22.0.0
  checksum: sha256:a80bd9a1a5f3d2942692da3cd12e75fd677ee6c07abe7a6ed6c53a34747466b7
  architecture: amd64
  url: https://github.com/zeta-chain/node/releases/download/v22.0.0/zetaclientd-linux-amd64
  dest: '{{ ensure_cosmovisor_visor_path }}/upgrades/v22/bin/{{ ensure_cosmovisor_daemon_name }}'
  mode: "0755"
  owner: zetachain
  group: zetachain
  exclude_network: ""

Ansible output obviously still needs to be tweaked a bit more to have the correct paths for zetaclient.

@gartnera gartnera requested a review from a team November 8, 2024 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant