Skip to content

Commit

Permalink
ci: fix test_docker.sh (cherry-pick #12880) (#12881)
Browse files Browse the repository at this point in the history
ci: fix test_docker.sh (#12880)

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
Co-authored-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
  • Loading branch information
gcp-cherry-pick-bot[bot] and rissson authored Jan 29, 2025
1 parent 3570bfa commit 6c7f901
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/test_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
set -e -x -o pipefail
hash="$(git rev-parse HEAD || openssl rand -base64 36)"

AUTHENTIK_IMAGE="xghcr.io/goauthentik/server"
AUTHENTIK_TAG="$(echo "$hash" | cut -c1-15)"

if [ -f .env ]; then
Expand All @@ -11,7 +12,7 @@ fi

echo PG_PASS="$(openssl rand -base64 36 | tr -d '\n')" >.env
echo AUTHENTIK_SECRET_KEY="$(openssl rand -base64 60 | tr -d '\n')" >>.env
echo AUTHENTIK_IMAGE="xghcr.io/goauthentik/server" >>.env
echo AUTHENTIK_IMAGE="${AUTHENTIK_IMAGE}" >>.env
echo AUTHENTIK_TAG="${AUTHENTIK_TAG}" >>.env
export COMPOSE_PROJECT_NAME="authentik-test-${AUTHENTIK_TAG}"

Expand Down

0 comments on commit 6c7f901

Please sign in to comment.