Skip to content

GitHub Actions: CachingΒ #16

@ddjerqq

Description

@ddjerqq

Caching can be very easily added to GitHub Actions

steps:
  - name: "[🐳] Build and Push Docker Image"
    id: build-push
    uses: docker/build-push-action@v6
    with:
      context: .
      push: true
      platforms: linux/amd64,linux/arm64
      tags: ${{ env.DOCKER_IMAGE_NAME }}:latest
++    cache-from: type=gha
++    cache-to: type=gha,mode=max

It will significantly speed up the deployment and build process, I can add this also

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions