diff options
| author | Ivan Gabaldon <igabaldon@inetol.net> | 2025-05-11 18:12:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-11 18:12:51 +0200 |
| commit | d16854e67a5bf2f640aabf119c9b50f5a1a3f24f (patch) | |
| tree | 3c60e7f7fced18e5ff79f60e41968ab8e5dd2c88 /searx/version.py | |
| parent | 1b787ed35e9c51e335c42faee1f76695780ba4cb (diff) | |
[mod] rework container deployment (#4764)
container.yml will run after integration.yml COMPLETES successfully and in master branch.
Style changes, cleanup and improved integration with CI by leveraging the use of
shared cache between all workflows.
* Podman is now supported to build the container images (Docker also received a refactor, merging both build and buildx)
* Container images are being built by Buildah instead of Docker BuildKit.
* Container images are tested before release.
* Splitting "modern" (amd64 & arm64) and "legacy" (armv7) arches on different Dockerfiles allowing future optimizations.
Diffstat (limited to 'searx/version.py')
| -rw-r--r-- | searx/version.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/searx/version.py b/searx/version.py index d2013808b..565cc7e7a 100644 --- a/searx/version.py +++ b/searx/version.py @@ -41,6 +41,12 @@ def subprocess_run(args, **kwargs): def get_git_url_and_branch(): + # handle GHA directly + if "GITHUB_REPOSITORY" in os.environ and "GITHUB_REF_NAME" in os.environ: + git_url = f"https://github.com/{os.environ['GITHUB_REPOSITORY']}" + git_branch = os.environ["GITHUB_REF_NAME"] + return git_url, git_branch + try: ref = subprocess_run("git rev-parse --abbrev-ref @{upstream}") except subprocess.CalledProcessError: |