end-to-end/packages/alpine.sh

20 lines
503 B
Bash
Raw Normal View History

2024-01-23 23:03:34 +00:00
#!/bin/sh
# Copyright 2024 The Forgejo Authors
# SPDX-License-Identifier: MIT
function test_packages_alpine_v1.21() {
stop_daemon forgejo
reset_forgejo $PACKAGES_DIR/alpine-app.ini
start_forgejo 1.21
2024-01-23 23:03:34 +00:00
local d=$PACKAGES_DIR/alpine
local token=$(cat $DIR/forgejo-curl/token)
local url=http://${HOST_PORT}
2024-01-23 23:03:34 +00:00
docker run --rm --volume $d:$d:ro --workdir $d docker.io/alpine:3.19 ash -c "./test.sh $url $token"
}
function test_packages_alpine() {
test_packages_alpine_v1.21
}