mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-17 19:09:11 +03:00
2f70351c90
* packages/client-go: init Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * format Signed-off-by: Jens Langhammer <jens@goauthentik.io> * remove mod/sum Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix translate Signed-off-by: Jens Langhammer <jens@goauthentik.io> * no go replace Signed-off-by: Jens Langhammer <jens@goauthentik.io> * update rust makefile with pwd Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * fix build Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix docs Signed-off-by: Jens Langhammer <jens@goauthentik.io> * don't need a version ig? Signed-off-by: Jens Langhammer <jens@goauthentik.io> * exclude go client from cspell Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix main docker build 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: Jens Langhammer <jens@goauthentik.io>
33 lines
1.2 KiB
Bash
Executable File
33 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e -x -o pipefail
|
|
hash="$(git rev-parse HEAD || openssl rand -base64 36 | sha256sum)"
|
|
|
|
AUTHENTIK_IMAGE="authentik.invalid/goauthentik/server"
|
|
AUTHENTIK_TAG="$(echo "$hash" | cut -c1-15)"
|
|
|
|
if [ -f lifecycle/container/.env ]; then
|
|
echo "Existing .env file, aborting"
|
|
exit 1
|
|
fi
|
|
|
|
echo PG_PASS="$(openssl rand -base64 36 | tr -d '\n')" >lifecycle/container/.env
|
|
echo AUTHENTIK_SECRET_KEY="$(openssl rand -base64 60 | tr -d '\n')" >>lifecycle/container/.env
|
|
export COMPOSE_PROJECT_NAME="authentik-test-${AUTHENTIK_TAG}"
|
|
|
|
if [[ -v BUILD ]]; then
|
|
echo AUTHENTIK_IMAGE="${AUTHENTIK_IMAGE}" >>lifecycle/container/.env
|
|
echo AUTHENTIK_TAG="${AUTHENTIK_TAG}" >>lifecycle/container/.env
|
|
|
|
# Ensure buildx is installed
|
|
docker buildx install
|
|
make gen-client-ts
|
|
touch lifecycle/container/.env
|
|
|
|
docker build -t "${AUTHENTIK_IMAGE}:${AUTHENTIK_TAG}" -f lifecycle/container/Dockerfile .
|
|
fi
|
|
|
|
docker compose -f lifecycle/container/compose.yml up --no-start
|
|
docker compose -f lifecycle/container/compose.yml start postgresql
|
|
docker compose -f lifecycle/container/compose.yml run -u root server test-all
|
|
docker compose -f lifecycle/container/compose.yml down -v
|