update salt-build
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Paul 2025-09-13 21:17:34 +02:00
parent 8d9d15f5b0
commit 3cc6c368f7
2 changed files with 5 additions and 3 deletions

View File

@ -14,7 +14,7 @@ steps:
- name: build
image: debian:unstable
commands:
- apt update && apt install -y wget patchelf
- apt update && apt install -y wget patchelf python-pip
- ./install.sh
when:
event:

View File

@ -1,12 +1,14 @@
#!/usr/bin/env bash
set -e
SALT_VERSION=${1:-3007.7}
ARCH=$(uname -m)
pip3 install relenv
wget -O /tmp/v${SALT_VERSION}.tar.gz https://github.com/saltstack/salt/archive/refs/tags/v${SALT_VERSION}.tar.gz
tar -C /tmp -xzvf /tmp/v${SALT_VERSION}.tar.gz
tar -C /tmp -xzf /tmp/v${SALT_VERSION}.tar.gz
relenv fetch --python=3.11.13
relenv create /salt/salt --python=3.11.13
@ -14,4 +16,4 @@ relenv create /salt/salt --python=3.11.13
/salt/salt/bin/pip3 install /tmp/salt-${SALT_VERSION}
/salt/salt/bin/pip3 install -r require.txt
tar -C /salt -cJvf /out/salt-${SALT_VERSION}-linux-${ARCH}.tar.xz salt
tar -C /salt -cJf /out/salt-${SALT_VERSION}-linux-${ARCH}.tar.xz salt