cds-snc / notification-planning-core

Project planning for GC Notify Core Team
0 stars 0 forks source link

Include --no-cache as a parameter to the docker build image for API, Admin and DD-API #374

Open jimleroyer opened 2 weeks ago

jimleroyer commented 2 weeks ago

Description

As an ops lead or incident commander, I need the option to re-run Github action with no cache when these are in a faulty state, So that I can quickly clear out the Github environments from faulty state.

WHY are we building?

To quickly recover from bad Docker image build state happening in the release pipelines of API, Admin and DD-API. This is an action item that came up during an incident post-mortem where such issue happened.

We could also always build from a clean state with no cache but that will slow down the builds overall. We decided against this option for now as the times when such hiccups happen are very rare and few.

WHAT are we building?

Update the GitHub action to include a parameter specifying a no-cache usage (default being using cache for speedy run).

VALUE created by our solution

Provide the option to run the github actions responsible for creating the Docker images without any cache.

Acceptance Criteria

QA Steps

sastels commented 1 week ago

Found instructions on GitHub for clearing the cache manually, but this is easy so we can do it anyway.