packages: add alpine test cases
This commit is contained in:
parent
d825dac67e
commit
74d11b5eaf
10 changed files with 305 additions and 10 deletions
17
packages/alpine.sh
Normal file
17
packages/alpine.sh
Normal 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}"
|
Loading…
Add table
Reference in a new issue