Skip to content

chore(COD-6868): Cache docker image on daily basis#256

Draft
baltoiteodor wants to merge 1 commit intomainfrom
teodor/COD-6868
Draft

chore(COD-6868): Cache docker image on daily basis#256
baltoiteodor wants to merge 1 commit intomainfrom
teodor/COD-6868

Conversation

@baltoiteodor
Copy link
Copy Markdown
Contributor

@baltoiteodor baltoiteodor commented Apr 1, 2026

Linked JIRA issue(s)

https://lacework.atlassian.net/browse/COD-6868

Description

Cache the lacework/codesec:latest Docker image across jobs in a workflow run to avoid pulling
it repeatedly (old, new, display jobs each pull independently).

  • Added 3 new composite action steps in action.yaml: date key generation, actions/cache@v4
    restore, and a load-or-pull step
  • Cache is keyed by date (codesec-image-YYYY-MM-DD) so the first job each day pulls a fresh
    image and subsequent jobs load from cache
  • Cache is branch-scoped per GitHub Actions rules: PR branches can read from base branch cache on
    miss but only write to their own

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant