Skip to content

Commit 8a720c3

Browse files
authored
add server build code (#2327)
1 parent 585bb69 commit 8a720c3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ct/authentik.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ function update_script() {
5252
npm run build &>/dev/null
5353
msg_ok "Built ${APP} website"
5454

55+
msg_info "Building ${APP} server"
56+
cd /opt/authentik
57+
go mod download
58+
go build -o /go/authentik ./cmd/server
59+
go build -o /opt/authentik/authentik-server /opt/authentik/cmd/server/
60+
msg_ok "Built ${APP} server"
61+
5562
msg_info "Installing Python Dependencies"
5663
cd /opt/authentik
5764
poetry install --only=main --no-ansi --no-interaction --no-root &>/dev/null

0 commit comments

Comments
 (0)