Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! [#736] Add setup to automatically update …
Browse files Browse the repository at this point in the history
…binaries
  • Loading branch information
PruStephan committed Dec 28, 2023
1 parent 3bf2824 commit e8f9130
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 25 deletions.
5 changes: 4 additions & 1 deletion docker/package/update-binaries-list.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
# SPDX-FileCopyrightText: 2023 Oxhead Alpha
# SPDX-License-Identifier: LicenseRef-MIT-OA

Expand All @@ -22,11 +23,13 @@ def update_binaries(binaries, field):
def main():
tag = os.environ["BUILDKITE_TAG"]
binaries = []
binaries = list(all_packages.keys())
with open(f"{os.path.dirname(__file__)}/../octez-executables", "r") as f:
binaries = [l.strip() for l in f.readlines()]
if not binaries:
raise Exception(
"Exception, while reading binaries list: binaries list is empty"
)
binaries.append()

field = "candidates" if "rc" in tag else "released"

Expand Down
24 changes: 0 additions & 24 deletions docker/update-binaries-list.sh

This file was deleted.

3 changes: 3 additions & 0 deletions scripts/update-tezos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ if [[ "$latest_upstream_tag" != "$our_tezos_tag" ]]; then
./scripts/update-release-binaries.py
git commit -a -m "[Chore] Update release binaries for $latest_upstream_tag" --gpg-sign="[email protected]"

./docker/package/update-binaries-list.py
git commit -a -m "[Chore] Update list of supported binaries for $latest_upstream_tag" --gpg-sign="[email protected]"

git push --set-upstream origin "$branch_name"

gh pr create -B master -t "[Chore] $latest_upstream_tag release" -F .github/release_pull_request_template.md
Expand Down

0 comments on commit e8f9130

Please sign in to comment.