-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hlx publish --only filtering does not filter, publishes all strains #895
Comments
AFAICS, this is correct. I think the debug output is not helpful, it should show something like:
|
Yes, it's working as designed. The output that @tripodsan proposed would be a good enhancement. |
OK... then the publish filtering does not help the devsite with handling separate environments. This is troublesome for us. We need this to have confidence in our deployments. I guess I need to go back to the original purpose of this request: how do we push something ONLY to a staging environment that is publicly accessible and leverages fastly? That's what I thought the filtering was enabling: letting me deploy something to staging and running tests against staging BEFORE pushing to production. We need this as we have pushed bugs to production twice now. I imagine any client of helix will have a similar need... |
To see how I wanted to use this feature, take a look at the changes to the circleci config in my staging-environment PR: https://github.com/adobe/developer.adobe.com/pull/173/files#diff-1d37e48f9ceff6d8030570cd36286a61 |
I think we have a solution in place, which will require a bunch of changes on the devsite. See this Slack conversation from #helix-chat for details. Closing. |
See also #898 |
Description
Running
hlx publish --only *staging
publishes all strains, even those that do not contain the word "staging".To Reproduce
hlx publish to staging
stepThe full helix config for it is copied below. It is not revisioned as it is edited on-the-fly to insert the correct branch name for deploying pull request code. You can see that behaviour in the circleci steps "modify default repo to match current branch" and "hlx deploy dirty". Basically it replaces the branch name at the end of the
&defaultRepo
definition below from#master
to#<PR-branch-name>
.Expected behavior
hlx publish --only *staging
would state that only the strains with names that end withstaging
were published.Version:
2.5.4
The text was updated successfully, but these errors were encountered: