17 lines
421 B
Bash
17 lines
421 B
Bash
#!/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}"
|