hackworthltd / primer-app

Primer's React frontend application.
GNU Affero General Public License v3.0
4 stars 0 forks source link

Deployments can get de-synched #814

Open dhess opened 1 year ago

dhess commented 1 year ago

As of https://github.com/hackworthltd/primer-app/commit/5f00d8fb49b911407614950908638b9a1b2382a5, our deployment situation is not ideal:

This means that the frontend and backend must be manually sync'ed up when we bump the Primer pin, which is obviously not great. I'll need to think about how to syncrhonize these two altogether different deployment mechanisms.

One short-term fix would be to temporarily move the hackworth-code-gitops deployment bits for the backend into this repo, so that merges to main would a) push the frontend to Cloudflare Pages, and b) cause Argo CD to deploy the pinned primer-service container.

Unless I can think of something better (and implement it) in the next or two, I think I'll fall back to this short-term fix.

dhess commented 1 year ago

The way the frontend deployments currently work is this:

If we could disable the automatic CNAME update somehow, and instead defer that update to some action taken by Argo CD when we "deploy" a frontend+backend release to the hackworth-code-gitops repo, then that would do the trick. However, I don't know offhand how to disable that. Perhaps it's an option to the Cloudflare Pages Action.