hac/ansible/roles/authentik/tasks/build.yml
Ada 97ab23e625
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/pr/woodpecker Pipeline failed
WIP
2024-03-25 00:32:09 +01:00

32 lines
No EOL
1 KiB
YAML

---
- name: Get authentik source
ansible.builtin.git:
repo: 'https://github.com/goauthentik/authentik.git'
dest: /opt/authentik/src
version: version/2024.2.2
force: true
- name: Build front
ansible.builtin.shell: |
cd /opt/authentik/src/website
npm i
npm run build-docs-only
cd /opt/authentik/src/web
npm i
npm run build
- name: Create virtualenv
ansible.builtin.command: "python3.12 -m venv /opt/authentik/src/venv"
- name: Installl poetry and dependencies
ansible.builtin.shell: |
cd /opt/authentik/src/
venv/bin/pip install poetry
venv/bin/poetry install --only=main --no-ansi --no-interaction --no-root
- name: Build go proxy
ansible.builtin.shell: |
cd /opt/authentik/src/
sed -i "s/c.Setup(\".\/authentik\/lib\/default.yml\", \".\/local.env.yml\")/c.Setup(\"\/etc\/authentik\/config.yml\", \".\/authentik\/lib\/default.yml\", \".\/local.env.yml\")/" /opt/authentik/src/internal/config/config.go
go build -o /opt/authentik/src/authentik-server ./cmd/server/