-
-
Notifications
You must be signed in to change notification settings - Fork 992
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
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 <[email protected]> Co-authored-by: Jens L. <[email protected]>
- Loading branch information
1 parent
7afc59d
commit 764b211
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 |