end-to-end/packages/alpine.sh
Earl Warren 2461666aca
lib: use the WORK_PATH base instead of forgejo for the daemon
Instead of hardcoding "forgejo" as the base for the daemon to store
the PID and the logs, use the base of the WORK_PATH so that a given
work path can run a dedicated forgejo instance by the same name.
2024-06-04 13:04:05 +02:00

24 lines
783 B
Bash

# Copyright 2024 The Forgejo Authors
# SPDX-License-Identifier: MIT
function test_packages_alpine_version() {
local alpine_version=$1 forgejo_version=$2
stop_forgejo
reset_forgejo $PACKAGES_DIR/alpine-app.ini
start_forgejo $forgejo_version
local d=$PACKAGES_DIR/alpine-$forgejo_version
local token=$(cat $DIR/forgejo-curl/token)
local url=http://${HOST_PORT}
log_info "alpine:$alpine_version & Forgejo $forgejo_version"
docker run --rm --volume $d:$d:ro --workdir $d docker.io/alpine:$alpine_version ash -c "./test.sh $url $token"
}
function test_packages_alpine() {
for alpine_version in 3.18 3.19 ; do
for forgejo_version in 1.21 7.0-test 7.0-dev ; do
test_packages_alpine_version $alpine_version $forgejo_version
done
done
}