Author SHA1 Message Date
claude-bot Bot 90324a0501 Merge pull request 'Feature: Deploy stacks automatically on merge' (#17) from feature/deploy-stacks-on-merge into main
Checks / Secret Scan (push) Successful in 5s
Deploy Stacks / Deploy Stacks (push) Successful in 4s
Checks / Lint (push) Successful in 24s
2026-11-27 21:44:55 +01:00
kasun 4852971991 docs: note that merging a stack change deploys it
Checks / Secret Scan (pull_request) Successful in 5s
Checks / Lint (pull_request) Successful in 21s
2026-11-27 21:43:06 +01:00
kasun 4d8c3cc0b4 feature(ci): deploy stacks on push to main 2026-11-27 21:43:02 +01:00
claude-bot Bot 431702ff74 Merge pull request 'Bug: Create the stack directory on first deploy' (#16) from bug/create-missing-stack-directory into main
Checks / Secret Scan (push) Successful in 6s
Checks / Lint (push) Successful in 33s
2026-11-27 21:30:30 +01:00
kasun 67addcbe1b bug(roles): create stack directory before copying compose file
Checks / Secret Scan (pull_request) Successful in 5s
Checks / Lint (pull_request) Successful in 21s
The first deployment of a new stack failed because the copy task does not
create the missing destination directory.
2026-11-27 21:29:02 +01:00
claude-bot Bot e654ae3bec Merge pull request 'Feature: Deploy it-tools through Ansible' (#15) from feature/adopt-it-tools-stack into main
Checks / Secret Scan (push) Successful in 5s
Checks / Lint (push) Successful in 22s
2026-11-27 21:10:25 +01:00
4 changed files with 18 additions and 2 deletions

No files matched your search

+1 -1
View File
@@ -105,7 +105,7 @@ Keep it short:
- PR link and commits. - PR link and commits.
- The review result, with any pre-existing findings or nits worth a follow-up. - The review result, with any pre-existing findings or nits worth a follow-up.
- What the merge triggers, from `on.push` in `.gitea/workflows/`. Today no workflow deploys on merge; say so until that changes. - What the merge triggers, from `on.push` in `.gitea/workflows/`. Say whether the PR touched a `deploy-stacks.yaml` path, and so deployed.
- Anything left uncommitted. - Anything left uncommitted.
Do not delete the branch, dispatch a workflow, or change a live system. Do not delete the branch, dispatch a workflow, or change a live system.
+10
View File
@@ -2,6 +2,16 @@ name: Deploy Stacks
on: on:
workflow_dispatch: workflow_dispatch:
push:
branches:
- main
paths:
- stacks/**
- roles/docker_stack/**
- playbooks/docker_stacks.yml
- inventory/**
- collections/requirements.yml
- .gitea/workflows/deploy-stacks.yaml
jobs: jobs:
deploy-stacks: deploy-stacks:
+1 -1
View File
@@ -42,7 +42,7 @@ Only commit when I explicitly say "commit" for that change. A yes to a question
The remote is a self-hosted Gitea, so `gh` doesn't work. For PRs and their CI status use `.claude/scripts/gitea.sh` (acts as `claude-bot`), e.g. `.claude/scripts/gitea.sh GET '/repos/kasun/homelab-ansible/pulls?state=open'`. Use it for PRs, and for issues when I ask. Reading from Gitea is free. The remote is a self-hosted Gitea, so `gh` doesn't work. For PRs and their CI status use `.claude/scripts/gitea.sh` (acts as `claude-bot`), e.g. `.claude/scripts/gitea.sh GET '/repos/kasun/homelab-ansible/pulls?state=open'`. Use it for PRs, and for issues when I ask. Reading from Gitea is free.
Open and merge PRs through `/merge`: typing it is my OK to commit, open a PR and merge for that run. Outside `/merge`, ask first. Every merge call asks for permission (also inside `/merge`), and `.claude/hooks/guard-merge.sh` refuses it unless the PR's newest review comment is a pass for its head commit. Before deploy-on-merge is enabled, revisit this: PRs that deploy will need my approval. Open and merge PRs through `/merge`: typing it is my OK to commit, open a PR and merge for that run. Outside `/merge`, ask first. Every merge call asks for permission (also inside `/merge`), and `.claude/hooks/guard-merge.sh` refuses it unless the PR's newest review comment is a pass for its head commit. Merging deploys: a push to `main` that touches the paths in `.gitea/workflows/deploy-stacks.yaml` runs the stacks playbook, so allowing the merge prompt is also my OK to deploy.
## Verifying changes ## Verifying changes
+6
View File
@@ -6,6 +6,12 @@
fail_msg: "docker_stack_name must be set" fail_msg: "docker_stack_name must be set"
quiet: true quiet: true
- name: Create stack directory for {{ docker_stack_name }}
ansible.builtin.file:
path: "{{ docker_stack_root }}/{{ docker_stack_name }}"
state: directory
mode: "0755"
- name: Copy compose file for {{ docker_stack_name }} - name: Copy compose file for {{ docker_stack_name }}
ansible.builtin.copy: ansible.builtin.copy:
src: "{{ playbook_dir }}/../stacks/{{ docker_stack_name }}/docker-compose.yml" src: "{{ playbook_dir }}/../stacks/{{ docker_stack_name }}/docker-compose.yml"