Skip to content

feat: GitOps compliance - dispatch sha bump to homelab-stacks on push to main - #26

Merged
cmarko89 merged 1 commit into
mainfrom
feat/gitops-compliance
Aug 2, 2026
Merged

feat: GitOps compliance - dispatch sha bump to homelab-stacks on push to main#26
cmarko89 merged 1 commit into
mainfrom
feat/gitops-compliance

Conversation

@cmarko89

@cmarko89 cmarko89 commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

What

Closes the GitOps loop for HQ_Snagarr (deployed inside hq_mediamanager).

  • Update build-and-deploy.yml: after every push to main, mint a deploy-bot token scoped to homelab-stacks and dispatch repository_dispatch (type: snagarr-image) with the new sha-<short> tag. snagarr-bump.yml in homelab-stacks receives the event, bumps media/docker-compose.yml, commits [skip ci], and fires the hq_mediamanager Portainer webhook.
  • Remove the erroneous "Do NOT add a deploy webhook" comment. GitHub Actions secrets are safe in public repo CI - they are available only on the default branch, not on fork PRs.

Dependencies

Requires Emkraan/homelab-stacks#<snagarr-bump-PR> to merge first (adds snagarr-bump.yml).

Org-level secrets/vars already available

  • DEPLOY_APP_ID var and DEPLOY_APP_PRIVATE_KEY secret (org visibility: ALL)

…y push to main [readme-ok]

Update build-and-deploy.yml to complete the GitOps loop: after every push
to main, mint a deploy-bot token scoped to homelab-stacks and dispatch a
repository_dispatch (type: snagarr-image) with the newly built sha tag.
snagarr-bump.yml in homelab-stacks picks this up, bumps the image ref in
media/docker-compose.yml, and fires the hq_mediamanager Portainer webhook.

Removes the erroneous "Do NOT add a deploy webhook" comment - GitHub Actions
secrets are safe in public repo CI when scoped to the default branch.
[readme-ok]
@cmarko89
cmarko89 merged commit a88cded into main Aug 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant