mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-27 06:37:16 +02:00
add: overwriteable app version var
This commit is contained in:
@@ -3486,6 +3486,7 @@ build_container() {
|
|||||||
export PCT_DISK_SIZE="$DISK_SIZE"
|
export PCT_DISK_SIZE="$DISK_SIZE"
|
||||||
export IPV6_METHOD="$IPV6_METHOD"
|
export IPV6_METHOD="$IPV6_METHOD"
|
||||||
export ENABLE_GPU="$ENABLE_GPU"
|
export ENABLE_GPU="$ENABLE_GPU"
|
||||||
|
export APPLICATION_VERSION="${var_appversion:-}"
|
||||||
|
|
||||||
# DEV_MODE exports (optional, for debugging)
|
# DEV_MODE exports (optional, for debugging)
|
||||||
export BUILD_LOG="$BUILD_LOG"
|
export BUILD_LOG="$BUILD_LOG"
|
||||||
|
|||||||
+2
-2
@@ -1890,7 +1890,7 @@ function fetch_and_deploy_codeberg_release() {
|
|||||||
local app="$1"
|
local app="$1"
|
||||||
local repo="$2"
|
local repo="$2"
|
||||||
local mode="${3:-tarball}" # tarball | binary | prebuild | singlefile | tag
|
local mode="${3:-tarball}" # tarball | binary | prebuild | singlefile | tag
|
||||||
local version="${4:-latest}"
|
local version="${APPLICATION_VERSION:-${4:-latest}}"
|
||||||
local target="${5:-/opt/$app}"
|
local target="${5:-/opt/$app}"
|
||||||
local asset_pattern="${6:-}"
|
local asset_pattern="${6:-}"
|
||||||
|
|
||||||
@@ -2322,7 +2322,7 @@ function fetch_and_deploy_gh_release() {
|
|||||||
local app="$1"
|
local app="$1"
|
||||||
local repo="$2"
|
local repo="$2"
|
||||||
local mode="${3:-tarball}" # tarball | binary | prebuild | singlefile
|
local mode="${3:-tarball}" # tarball | binary | prebuild | singlefile
|
||||||
local version="${4:-latest}"
|
local version="${APPLICATION_VERSION:-${4:-latest}}"
|
||||||
local target="${5:-/opt/$app}"
|
local target="${5:-/opt/$app}"
|
||||||
local asset_pattern="${6:-}"
|
local asset_pattern="${6:-}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user