From 3dfa253385a34fb0f62a2167e0f8d701616b9fab Mon Sep 17 00:00:00 2001 From: damage Date: Fri, 3 Apr 2026 13:20:06 +0200 Subject: [PATCH] deb build woodpecker ready --- build/credentials.example | 2 -- build/deb/build_stable.sh | 17 ++--------------- 2 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 build/credentials.example diff --git a/build/credentials.example b/build/credentials.example deleted file mode 100644 index 3377c14..0000000 --- a/build/credentials.example +++ /dev/null @@ -1,2 +0,0 @@ -GITEA_USER=user -GITEA_PASS=pass or token diff --git a/build/deb/build_stable.sh b/build/deb/build_stable.sh index ea69917..d3b4e61 100755 --- a/build/deb/build_stable.sh +++ b/build/deb/build_stable.sh @@ -2,21 +2,16 @@ NAME=s3h -VERSION=`../../s3h.sh -v` +VERSION=${CI_COMMIT_TAG} REVISION=1 ARCH=all -if ! git tag -l |fgrep $VERSION; then - git tag $VERSION - git push origin $VERSION -fi - curdir=`dirname $0` workdir="$curdir/${NAME}_${VERSION}-${REVISION}_${ARCH}" mkdir -p "$workdir" mkdir -p "$workdir/usr/bin" -wget -O "$workdir/usr/bin/s3h" "https://source.devloop.de/damage/s3h/raw/tag/$VERSION/s3h.sh" +cp "$curdir/../../s3h.sh" "$workdir/usr/bin/s3h" chmod 0777 "$workdir/usr/bin/s3h" mkdir "$workdir/DEBIAN" @@ -32,11 +27,3 @@ Depends: dialog EOT dpkg-deb --build --root-owner-group "$workdir" -if [[ $? -eq 0 ]]; then - source "$curdir/../credentials" - curl --user "$GITEA_USER:$GITEA_PASS" \ - --upload-file "${NAME}_${VERSION}-${REVISION}_${ARCH}.deb" \ - https://source.devloop.de/api/packages/damage/debian/pool/stable/main/upload - - rm -rf "$workdir" -fi