Skip to content

ci(workflows): get image and app versions from latest GitHub releases - #224

Merged
JohnVillalovos merged 1 commit into
LibreBooking:masterfrom
colisee:gh
Oct 20, 2026
Merged

JohnVillalovos merged 1 commit into
LibreBooking:masterfrom
colisee:gh

Conversation

@colisee

@colisee colisee commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

The build workflows no longer read the VERSION_LB_IMG and VERSION_LB_APP
repository variables, which had to be updated by hand after each release.
A new get-data job uses the gh CLI to look up the latest releases at run
time:

  • build_image_develop.yml: the image version is the latest release of
    this repository.
  • build_image_release.yml: the image version is the latest release of
    this repository, and the app version is the latest release of
    librebooking/librebooking.

Both workflows now call build_and_publish.yml through the $/ prefix
instead of ./. GitHub recommends $/ for reusable workflows in the same
repository, and it runs them at the same commit as the calling workflow.

After this merges, the VERSION_LB_APP, VERSION_LB_IMG and
DOCKER_REPOSITORY repository variables can be deleted.
DOCKER_REPOSITORY was already unused.

This PR replaces PR #223 based on @JohnVillalovos technical advice to use the gh cli instead of an external github action

@colisee colisee added the github_actions Pull requests that update GitHub Actions code label Oct 20, 2026

@JohnVillalovos JohnVillalovos left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @colisee

This looks good. But can it be squashed down to one commit? Or do you want to squash it on the merge?

The build workflows no longer read the VERSION_LB_IMG and VERSION_LB_APP
repository variables, which had to be updated by hand after each release.
A new get-data job uses the gh CLI to look up the latest releases at run
time:

- build_image_develop.yml: the image version is the latest release of
  this repository.
- build_image_release.yml: the image version is the latest release of
  this repository, and the app version is the latest release of
  librebooking/librebooking.

Both workflows now call build_and_publish.yml through the $/ prefix
instead of ./. GitHub recommends $/ for reusable workflows in the same
repository, and it runs them at the same commit as the calling workflow.

After this merges, the VERSION_LB_APP, VERSION_LB_IMG and
DOCKER_REPOSITORY repository variables can be deleted.
DOCKER_REPOSITORY was already unused.
@colisee

colisee commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks @colisee

This looks good. But can it be squashed down to one commit? Or do you want to squash it on the merge?

Yes, I always squash on merge

@JohnVillalovos JohnVillalovos changed the title Get rid of some repository variables ci(workflows): get image and app versions from latest GitHub releases Oct 20, 2026

@JohnVillalovos JohnVillalovos left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @colisee

I squashed it down to one commit.

@JohnVillalovos
JohnVillalovos merged commit 7fb96b7 into LibreBooking:master Oct 20, 2026
@colisee
colisee deleted the gh branch October 20, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants