add server build code (#2327)

This commit is contained in:
Gabriel David Pragin 2025-02-12 22:57:58 -08:00 committed by GitHub
parent 585bb697b5
commit 8a720c328a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,6 +52,13 @@ function update_script() {
npm run build &>/dev/null npm run build &>/dev/null
msg_ok "Built ${APP} website" msg_ok "Built ${APP} website"
msg_info "Building ${APP} server"
cd /opt/authentik
go mod download
go build -o /go/authentik ./cmd/server
go build -o /opt/authentik/authentik-server /opt/authentik/cmd/server/
msg_ok "Built ${APP} server"
msg_info "Installing Python Dependencies" msg_info "Installing Python Dependencies"
cd /opt/authentik cd /opt/authentik
poetry install --only=main --no-ansi --no-interaction --no-root &>/dev/null poetry install --only=main --no-ansi --no-interaction --no-root &>/dev/null