packages: add alpine test cases

This commit is contained in:
Earl Warren 2024-01-24 00:03:34 +01:00
parent d825dac67e
commit 74d11b5eaf
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
10 changed files with 305 additions and 10 deletions

17
packages/alpine.sh Normal file
View file

@ -0,0 +1,17 @@
#!/bin/sh
# Copyright 2024 The Forgejo Authors
# SPDX-License-Identifier: MIT
SELF_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $SELF_DIR/../lib/lib.sh
function main() {
local d=$SELF_DIR/alpine
local token=$(cat $DIR/forgejo-token)
local url=$(cat $DIR/forgejo-url)
docker run --rm --volume $d:$d:ro --workdir $d docker.io/alpine:3.19 ash -c "./test.sh $url $token"
}
"${@:-main}"