mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-18 03:19:51 +03:00
6f9369283c
* root: update client-go generation (cherry-pick #19762 to version-2025.12) (#19791) Co-authored-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * ci: always generate API clients (#19906) * ci: always generate API clients Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix missing respective actions Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix flaky test Signed-off-by: Jens Langhammer <jens@goauthentik.io> * mount generated client Signed-off-by: Jens Langhammer <jens@goauthentik.io> * sigh Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io> * ci: fix test_docker.sh Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * bump go Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix dind Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com> Co-authored-by: Jens L. <jens@goauthentik.io>
34 lines
923 B
Bash
Executable File
34 lines
923 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e -x -o pipefail
|
|
hash="$(git rev-parse HEAD || openssl rand -base64 36 | sha256sum)"
|
|
|
|
AUTHENTIK_IMAGE="xghcr.io/goauthentik/server"
|
|
AUTHENTIK_TAG="$(echo "$hash" | cut -c1-15)"
|
|
|
|
if [ -f .env ]; then
|
|
echo "Existing .env file, aborting"
|
|
exit 1
|
|
fi
|
|
|
|
echo PG_PASS="$(openssl rand -base64 36 | tr -d '\n')" >.env
|
|
echo AUTHENTIK_SECRET_KEY="$(openssl rand -base64 60 | tr -d '\n')" >>.env
|
|
export COMPOSE_PROJECT_NAME="authentik-test-${AUTHENTIK_TAG}"
|
|
|
|
if [[ -v BUILD ]]; then
|
|
echo AUTHENTIK_IMAGE="${AUTHENTIK_IMAGE}" >>.env
|
|
echo AUTHENTIK_TAG="${AUTHENTIK_TAG}" >>.env
|
|
|
|
# Ensure buildx is installed
|
|
docker buildx install
|
|
make gen-client-ts
|
|
make gen-client-go
|
|
touch .env
|
|
|
|
docker build -t "${AUTHENTIK_IMAGE}:${AUTHENTIK_TAG}" .
|
|
fi
|
|
|
|
docker compose up --no-start
|
|
docker compose start postgresql redis
|
|
docker compose run -u root server test-all
|
|
docker compose down -v
|