mirror of
https://github.com/dockur/proxmox.git
synced 2026-07-27 16:54:51 +07:00
Update Build workflow
This commit is contained in:
@@ -23,10 +23,13 @@ jobs:
|
||||
-
|
||||
name: Get remote package data
|
||||
run: |
|
||||
set -e
|
||||
latest_tag=$(curl -fsSL http://download.proxmox.com/debian/pve/dists/trixie/pve-no-subscription/binary-amd64/Packages.gz \
|
||||
| zgrep -m1 -A1 '^Package: proxmox-ve$' | awk '/^Version:/ {print $2}')
|
||||
echo "Found tag: \"${latest_tag}\""
|
||||
set -e -o pipefail
|
||||
VERSION=$(mktemp)
|
||||
curl -fsSL http://download.proxmox.com/debian/pve/dists/trixie/pve-no-subscription/binary-amd64/Packages.gz -o "$VERSION"
|
||||
latest_tag=$(gzip -dc "$VERSION" | awk '$1=="Package:"&&$2=="proxmox-ve"{f=1} f&&$1=="Version:"{print $2; exit}')
|
||||
rm -f "$VERSION"
|
||||
echo "Found tag: \"${latest_tag}\""
|
||||
latest_tag="9.1.2"
|
||||
latest_version="${latest_tag%-*}"
|
||||
major="${latest_version%%.*}"
|
||||
minor="${latest_version#*.}"
|
||||
|
||||
Reference in New Issue
Block a user