feat: implement automated Ansible deployment workflows and secure Anthropic API key management via reverse proxy injection
All checks were successful
On Push to Main / test (push) Successful in 41s
On Push to Main / publish (push) Successful in 1m8s
On Push to Main / deploy-dev (push) Successful in 1m39s

This commit is contained in:
RaymondVerhoef
2026-05-17 10:00:14 +02:00
parent bb39a5fa71
commit e68335e159
9 changed files with 23 additions and 6 deletions

View File

@@ -9,6 +9,8 @@ services:
image: git.labs.respellion.tech/respellion/learning-platform/learning-platform:latest
container_name: learning-platform
restart: unless-stopped
environment:
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
networks:
- learning-platform

View File

@@ -36,6 +36,13 @@
src: compose.yml
dest: "{{ dest_dir }}/compose.yml"
- name: Create .env file for secrets
ansible.builtin.copy:
dest: "{{ dest_dir }}/.env"
content: |
ANTHROPIC_API_KEY={{ anthropic_api_key | default('') }}
mode: '0600'
- name: Pull latest image
community.docker.docker_compose_v2:
project_src: "{{ dest_dir }}"

View File

@@ -12,6 +12,8 @@ services:
image: git.labs.respellion.tech/respellion/learning-platform/learning-platform:latest
container_name: learning-platform
restart: unless-stopped
environment:
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
networks:
- learning-platform

View File

@@ -36,6 +36,13 @@
src: compose.yml
dest: "{{ dest_dir }}/compose.yml"
- name: Create .env file for secrets
ansible.builtin.copy:
dest: "{{ dest_dir }}/.env"
content: |
ANTHROPIC_API_KEY={{ anthropic_api_key | default('') }}
mode: '0600'
- name: Pull latest image
community.docker.docker_compose_v2:
project_src: "{{ dest_dir }}"