sqitch tag multiple sqitch projects #754
Replies: 2 comments
-
Unfortunately in this case, the only way you could do that is if each project shared the same plan file. Which I suspect, since each project has different changes, it couldn't not. The tag is inserted into the plan file, not a configuration file. The best way to simplify it would be to create some sort of function that finds all the plans and tags them, something like: for plan in $(find . -name '*.plan'); do
sqitch --plan-file "$plan" tag xyz -m 'Tag xyz'
done |
Beta Was this translation helpful? Give feedback.
-
sqitch --plan-file tag seems to be not working anymore. I'm using sqitch version v1.3.1. $ sqitch --plan-file Age/sqitch.plan tag v0.1 -m 'v0.1' -VVV No project configuration found. Run the "init" command to initialize a project |
Beta Was this translation helpful? Give feedback.
-
I've been using sqitch for a while and I have scenarios that to deploy a single database project I create multiples sqitch projects (each one in a different directory).
This is necessary so the database project can be configurable between different clients (one client will have feature A and feature B, and other client will have only feature B for example).
So the folder structure is like this:
Project
├── FeatureA
└── FeatureB
After the development process is done I need to "sqitch tag" each one of the sqitch projects.
It would be nice if I could call "sqitch tag" in the root directory (folder named Project) and the sqitch projects that exists inside this directory were tagged with the same version and note.
Beta Was this translation helpful? Give feedback.
All reactions