wip: fix existing todos

Co-authored-by: Github CoPilot
This commit is contained in:
2026-06-16 22:48:04 +02:00
parent a5618d3c5f
commit 80857e0f0a
10 changed files with 212 additions and 65 deletions
+4 -3
View File
@@ -2,6 +2,8 @@
set -e
echo ">>> checking if required environment is set..."
test -n "$DOCKER_TOKEN"
: "${PACKAGE_REGISTRY_USER:=agj}"
export PACKAGE_REGISTRY_USER
which make
echo ">>> compiling..."
@@ -30,7 +32,7 @@ echo ">>> building debbuilder image..."
docker build -t debbuilder -f deb-builder.dockerfile .
echo ">>> building .deb in debbuilder docker image..."
docker run --rm -it -v .:/src -e VERSION -e DOCKER_TOKEN debbuilder sh -c '\
docker run --rm -it -v .:/src -e VERSION -e DOCKER_TOKEN -e PACKAGE_REGISTRY_USER debbuilder sh -c '\
cd && \
mkdir -p artifacts && \
cp /src/sci-$VERSION.tar.gz . && \
@@ -47,8 +49,7 @@ docker run --rm -it -v .:/src -e VERSION -e DOCKER_TOKEN debbuilder sh -c '\
cp ../*.tar.xz ~/artifacts && \
cp ../*.tar.gz ~/artifacts && \
cd && \
curl --user agj:$DOCKER_TOKEN \
curl --user "$PACKAGE_REGISTRY_USER:$DOCKER_TOKEN" \
--upload-file sci_$VERSION-1_amd64.deb \
"https://git.gtz.dk/api/packages/agj/debian/pool/bionic/main/upload"
'
# TODO: push-user should be some sci-bot or something, not your account. This will do for now though