You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openserverless.apache.org by ms...@apache.org on 2026/09/10 21:31:03 UTC
(openserverless) 01/02: use the version from the folder if not git
This is an automated email from the ASF dual-hosted git repository.
sciabarracom pushed a commit to branch 0.9.0
in repository https://gitbox.apache.org/repos/asf/openserverless.git
commit 2dd77a2adf6807087aaff848affb68bfd0db203b
Author: Michele Sciabarra <mi...@sciabarra.com>
AuthorDate: Thu Sep 10 23:20:42 2026 +0200
use the version from the folder if not git
---
Taskfile.yml | 14 +++-----------
1 file changed, 3 insertions(+), 11 deletions(-)
diff --git a/Taskfile.yml b/Taskfile.yml
index a4f5a30..aab51e4 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -20,17 +20,9 @@ version: 3
vars:
BASE_IMG: "docker.io/apache"
- RELEASE_FROM_DIR: '{{ if regexMatch "v[0-9][^/]+$" (base .TASKFILE_DIR) }}{{ regexFind "v[0-9][^/]+$" (base .TASKFILE_DIR) }}{{ else }}snapshot{{ end }}'
+
RELEASE:
- sh: |
- if test -e .git
- then git -C oplugins-op rev-parse --short HEAD
- else
- if test -e RELEASE
- then cat RELEASE
- else echo {{.RELEASE_FROM_DIR}} | tee RELEASE
- fi
- fi
+ sh: git -C oplugins-op rev-parse --short HEAD || '{{trimPrefix "openserverless-" (base .TASKFILE_DIR)}}'
OPERATOR_TAG: "{{.RELEASE}}"
@@ -63,7 +55,7 @@ vars:
tasks:
default:
- - task -l
+ - task -l
- echo release '{{.RELEASE}}'
clean: