lifecycle: better pre release test (#12806) * move pre-release docker test to script * set pipefail in ak * don't reinstall wheels since they don't exist anymore * fix image * fix config error on startup --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: Jens L. <jens@goauthentik.io>
This commit is contained in:
committed by
GitHub
parent
7afc59d691
commit
764b211bd4
18
scripts/test_docker.sh
Executable file
18
scripts/test_docker.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
set -e -x -o pipefail
|
||||
|
||||
export PG_PASS=$(openssl rand -base64 36 | tr -d '\n')
|
||||
export AUTHENTIK_SECRET_KEY=$(openssl rand -base64 60 | tr -d '\n')
|
||||
export AUTHENTIK_IMAGE="xghcr.io/goauthentik/server"
|
||||
export AUTHENTIK_TAG=$(git rev-parse HEAD | cut -c1-15)
|
||||
export COMPOSE_PROJECT_NAME="authentik-test-${AUTHENTIK_TAG}"
|
||||
|
||||
# Ensure buildx is installed
|
||||
docker buildx install
|
||||
# For release builds we have an empty client here as we use the NPM package
|
||||
mkdir -p ./gen-ts-api
|
||||
docker build -t ${AUTHENTIK_IMAGE}:${AUTHENTIK_TAG} .
|
||||
docker compose up --no-start
|
||||
docker compose start postgresql redis
|
||||
docker compose run -u root server test-all
|
||||
docker compose down -v
|
||||
Reference in New Issue
Block a user