From 3e8236a1c07109453a7df98e8e2ddd4c6675277d Mon Sep 17 00:00:00 2001 From: Paul Date: Sat, 13 Sep 2025 21:10:47 +0200 Subject: [PATCH] update salt-build --- .drone.yml | 31 +++++++++++++++++++++++++++++++ README.md | 9 +++++++++ build.sh | 2 +- install.sh | 2 +- require.txt | 2 ++ 5 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 .drone.yml create mode 100644 README.md diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..0218986 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,31 @@ +--- +kind: pipeline +type: docker +name: default-amd64 + +platform: + os: linux + arch: amd64 + +steps: + - name: build + image: debian:unstable + commands: + - apt update && apt install -y wget patchelf + - ./install.sh + when: + event: + exclude: + - tag + - name: publish + image: plugins/gitea-release + settings: + base_url: https://git.paulbsd.com + api_key: + from_secret: gitea_token + files: "out/*.tar.xz" + environment: + PLUGIN_TITLE: "" + when: + event: + - tag diff --git a/README.md b/README.md new file mode 100644 index 0000000..2a87551 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# salt-build + +## what ? + +salt-build is making onedir saltstack builds for linux + +## how ? + + diff --git a/build.sh b/build.sh index 5ef16f4..c1cbea5 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash docker build -t salt-build . -docker run -it -v $(pwd)/out:/out salt-build /salt/install.sh +docker run -it -v $(pwd)/out:/out salt-build /salt/install.sh 3006.8 diff --git a/install.sh b/install.sh index 88a9d1f..69f06eb 100755 --- a/install.sh +++ b/install.sh @@ -14,4 +14,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 -czvf /out/salt-${SALT_VERSION}-linux-${ARCH}.tar.gz salt +tar -C /salt -cJvf /out/salt-${SALT_VERSION}-linux-${ARCH}.tar.xz salt diff --git a/require.txt b/require.txt index d02cd4c..7983f6c 100644 --- a/require.txt +++ b/require.txt @@ -1,6 +1,7 @@ PyYAML==6.0.2 cryptography==45.0.7 distro==1.9.0 +docker==7.1.0 jinja2==3.1.6 looseversion==1.3.0 msgpack==1.1.1 @@ -8,4 +9,5 @@ packaging==25.0 psycopg2==2.9.10 pycryptodomex==3.23.0 pyzmq==27.1.0 +requests==2.32.5 tornado==6.5.2