2 Commits

Author SHA1 Message Date
damage 52f1fb4a88 woodpecker ci/cd 2026-04-03 13:24:32 +02:00
damage 3dfa253385 deb build woodpecker ready 2026-04-03 13:20:06 +02:00
3 changed files with 10 additions and 17 deletions
-2
View File
@@ -1,2 +0,0 @@
GITEA_USER=user
GITEA_PASS=pass or token
+2 -15
View File
@@ -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
+8
View File
@@ -0,0 +1,8 @@
when:
- event: [tag]
steps:
- name: ubuntu
image: ubuntu:24.04
commands:
- build/deb/build_stable.sh