Repository navigation
Only deploy the anyway apps from main (stop deploys from any branch push) - #27
Merged
Merged
Conversation
The anyway and dfc2 anyway workflows deployed to the production servers on a push to any branch that touched the app folders, so pushing a PR branch deployed it before review. Restrict the push trigger to main; manual runs (workflow_dispatch) are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XtN7GhfRRihvBTHsWxGZoV
This was referenced Nov 28, 2026
ziv17
approved these changes
Nov 29, 2026
1 task done
atalyaalon
deleted the
claude/laughing-galileo-165xk1-deploy-main-only
branch
November 30, 2026 00:23
Contributor
Author
|
@tkalir @ziv17 heads-up, follow-up to this PR (deploys only from
Also changed in the repo settings:
If anything that used to work now gets rejected, please say so here. Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Adds
branches: [main]to thepushtrigger of both workflows:main: behave exactly as today, so merges still auto-deploy.workflow_dispatch) are unchanged.Automations that push to dfc-iac: not affected
These all push to
main, which keeps deploying as before:deploy.yml, committer "Anyway CI"): updatesapps/anyway/.envandapps-dfc2/anyway/.envdeploy_app.yml): updatesSAFETY_DATA_CLIENT_IMAGEmain.yml)Each clones dfc-iac and runs
git push origin mainwith theDFC_IAC_DEPLOY_KEYdeploy key. Pushes made with a deploy key trigger workflows, the same as today.Why a separate PR
The same commit is already in #24. But GitHub uses the workflow file from the pushed commit, so it only protects branches that contain the fix. Every other branch made from
maincan still deploy on push until this is onmain. This PR only needs a quick review, so it doesn't have to wait for #24. When #24 merges later, the change is identical, so there's no conflict.Testing
terraform planCI, notanyway CI/dfc2 anyway CI. Before the fix, the same kind of push deployed.Optional, stronger protection
production→ Deployment branches and tags → Selected branches:main.environment: productionto theanywayjob in both workflows.This also blocks a manual run on another branch, and can require an approval before each deploy.
🤖 Generated with Claude Code
https://claude.ai/code/session_01XtN7GhfRRihvBTHsWxGZoV