Skip to content

Commit

Permalink
fix: switch to fixed ui version
Browse files Browse the repository at this point in the history
  • Loading branch information
AleF83 committed Mar 31, 2024
1 parent 1b84056 commit eebea5f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ RUN apt-get update && apt-get install unzip -y

WORKDIR /src

RUN curl -L https://raw.githubusercontent.com/DuendeSoftware/IdentityServer.Quickstart.UI/main/getmain.sh | bash
COPY ./getui.sh ./getui.sh
RUN ./getui.sh

COPY ./OpenIdConnectServerMock.csproj ./OpenIdConnectServerMock.csproj
RUN dotnet restore
Expand Down
18 changes: 18 additions & 0 deletions src/getui.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

set -e

TAG="6.3.0"

SOURCE="https://github.com/DuendeSoftware/IdentityServer.Quickstart.UI/archive/refs/tags/$TAG.zip"
curl -L -o ui.zip "$SOURCE"

unzip -d ui ui.zip

[[ -d Pages ]] || mkdir Pages
[[ -d wwwroot ]] || mkdir wwwroot

cp -r ./ui/IdentityServer.Quickstart.UI-$TAG/Pages/* Pages
cp -r ./ui/IdentityServer.Quickstart.UI-$TAG/wwwroot/* wwwroot

rm -rf ui ui.zip

0 comments on commit eebea5f

Please sign in to comment.