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

site ci: obtain site-version from latest tag #77

Merged

Conversation

blocktrron
Copy link
Member

Site-version had to be set in the past manually, even when tagging a
release. As this is not done every time, just parse it from the latest
tag on the history relative from the current commit.

This ensures the site- and firmware-version are always determined from
git tags when built from the CI.

Signed-off-by: David Bauer [email protected]

This is required in the build-meta stage for determining the
site-version.

Signed-off-by: David Bauer <[email protected]>
(cherry picked from commit 984f6d1)
Site-version had to be set in the past manually, even when tagging a
release. As this is not done every time, just parse it from the latest
tag on the history relative from the current commit.

This ensures the site- and firmware-version are always determined from
git tags when built from the CI.

Signed-off-by: David Bauer <[email protected]>
(cherry picked from commit ccf6015)
Retrieve the git tag relative to the directory the Makefile invokes the
git command. Previously, the directory git was working in was the one of
the root Makefile. When invoked from Gluon directly without using the CI
tooling, the tag retrieved would be obtained from the Gluon tree, not
the site tree.

Fixes: d8b10353b6c8 ("site ci: retrieve tags from directory of Makefile")

Signed-off-by: David Bauer <[email protected]>
(cherry picked from commit e5abde5)
@blocktrron
Copy link
Member Author

Blocked by #78

blocktrron and others added 2 commits June 12, 2024 12:50
If the action is run in a fork, the versioning might be off as tags are
most likely not to be updated in the fork.

Fix this by fetching the tags from the upstream repo in case the action
is run in the context of a fork.

Signed-off-by: David Bauer <[email protected]>
(cherry picked from commit ee13289)
Signed-off-by: Tom Herbers <[email protected]>
Change the system timezone in the build-meta step to Europe/Berlin. This
ensures the date of a testing firmware is determined for the correct
timezone Freifunk Darmstadt is located in.

Signed-off-by: David Bauer <[email protected]>
Co-authored-by: Tom Herbers <[email protected]>
(cherry picked from commit 3a97fcb)
Signed-off-by: Tom Herbers <[email protected]>
@blocktrron blocktrron merged commit 154b691 into freifunk-darmstadt:v2023.2.x Jun 14, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant