-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lifecycle: better pre release test (#12806)
* move pre-release docker test to script Signed-off-by: Jens Langhammer <jens@goauthentik.io> * set pipefail in ak Signed-off-by: Jens Langhammer <jens@goauthentik.io> * don't reinstall wheels since they don't exist anymore Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix image Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix config error on startup Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
- Loading branch information
Showing
5 changed files
with
26 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |