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

Update hydra-explorer version during release #1466

Merged
merged 2 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/explorer/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
restart: always

hydra-explorer:
image: ghcr.io/input-output-hk/hydra-explorer:unstable
image: ghcr.io/input-output-hk/hydra-explorer:0.17.0
volumes:
- /srv/var/cardano/state-preview:/data
ports:
Expand All @@ -27,6 +27,6 @@ services:
, "--testnet-magic", "2"
, "--api-port", "8080"
# NOTE: Block in which current master scripts were published
, "--start-chain-from", "45386581.4a362bfca7cf840575c17b6cbb531588bc8e907beb5a6a28890877fb16be1cd3"
, "--start-chain-from", "49533501.e364500a42220ea47314215679b7e42e9bbb81fa69d1366fe738d8aef900f7ee"
]
restart: always
9 changes: 9 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ prepare_release() {
update_api_version "$version"
update_demo_version "$version"
update_tutorial_version "$version"
update_explorer_version "$version"

find . -name '*-e' -exec rm '{}' \; # cleanup BSD sed mess

Expand Down Expand Up @@ -191,6 +192,14 @@ update_demo_version() {
)
}

update_explorer_version() {
local version="$1"
(
cd .github/workflows/explorer
sed -i"" -e "s,\(ghcr.io/input-output-hk/hydra-[^:]*\):[^[:space:]]*,\1:$version," docker-compose.yaml
)
}

changelog() {
local version="$1"
sed -e '/^## *\['"$version"'\]/ , /^## *\[.*\]/ !d' CHANGELOG.md | sed '$d' | sed -e 's/^\#* //'
Expand Down