Skip to content

Add Docker layer caching to release workflow #558

Description

@gkorland

Parent issue

Part of #550 (CI Pipeline Optimization Analysis)

Problem

The release workflow (release-image.yml) builds the Docker image without layer caching, rebuilding all layers from scratch every time.

Solution

Add GitHub Actions cache backend to the Docker build step:

- uses: docker/build-push-action@v5
  with:
    context: .
    file: ./Dockerfile
    push: true
    tags: ${{ env.TAGS }}
    cache-from: type=gha
    cache-to: type=gha,mode=max

Estimated savings

~2-5 min per release build

Effort

Low

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions