Closed ap-liquibase closed 1 year ago
I don't think it actually is missing the piece that would sync the content in the bucket from staging to prod. upon reflection I seem to remember that Doc team wants to push content directly from Flare to Prod bucket. My plan was to talk to doc team to confirm this. If I'm wrong then I'll add the sync workflow.
For now we should replicate the current workflow. If they decide to use flare with different publishing destinations then we can update it then.
Apparently publishing publishing directly to prod is the current liquibase doc workflow (according to Amber). The legacy Jenkins step is only done for Enterprise/DMC docs.
Hi @jnewton03 Demonstrated the staging workflow to Catherine and team this morning. After discussions it was decided to have production workflow ("send-redirects-to-production.yml") run only when PR is merged, usually with approval from Catherine. Please take a look at send-redirects-to-production.yml to see if it looks good/secure to you. (Also, the consensus was to publish non-redirect content from Flare directly to Prod bucket. Thus there is no need to have a bucket sync step anymore, like in Jenkins)
@ap-liquibase if the trigger for deploying redirects to staging
is a push to master/main and the trigger for redirects to prod
is a PR merge, then anytime a PR is merged to master/main both jobs are going to run because a PR merge technically is a push to the destination branch as well, isn't it?
yes that is right, but should be harmless since there will be no changes to the resources in staging upon merge to prod (since they work from the same source of truth). But I get your point that this is not perfectly elegant. It may be better to make staging be a manually triggered workflow (i.e. workflow_dispatch). Processing ...
This commit prevents PR merges from triggering redirects to staging action
This workflow seems odd with these triggers. Am I following correctly?
@jnewton03 improved readme for clarity and added a branch input to staging workflow
@ap-liquibase there's still a few comments above that have not been resolved. Additionally, I think this workflow is going to be error prone and require a lot of manual coordination by the Docs team. Consider the following:
I don't think it actually is missing the piece that would sync the content in the bucket from staging to prod. upon reflection I seem to remember that Doc team wants to push content directly from Flare to Prod bucket. My plan was to talk to doc team to confirm this. If I'm wrong then I'll add the sync workflow.