Skip to content

int128/docker-mount-cache-action

Repository files navigation

docker-mount-cache-action ts

This is an action to manage the cache of --mount=type=cache of Dockerfile.

Getting Started

jobs:
  build:
    steps:
      - uses: int128/docker-mount-cache-action/restore@v0
        with:
          path: /root/.cache/go-build
          tags: ghcr.io/${{ github.repository }}:go-build-cache
      - uses: docker/build-push-action@v5
        id: build
        with:
          push: true
          tags: ghcr.io/${{ github.repository }}:main
      - uses: int128/docker-mount-cache-action/save@v0
        with:
          path: /root/.cache/go-build
          tags: ghcr.io/${{ github.repository }}:go-build-cache

Specification

Inputs

Name Default Description
path (required) Target path of --mount=type=cache
tags (required) Tags of cache images

Outputs

None.

About

[WIP] Manage --mount=type=cache of Dockerfile in GitHub Actions

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 3

  •  
  •  
  •