[WIP] Manage --mount=type=cache of Dockerfile in GitHub Actions
APACHE-2.0 License
This is an action to manage the cache of --mount=type=cache
of Dockerfile.
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
Name | Default | Description |
---|---|---|
path |
(required) | Target path of --mount=type=cache
|
tags |
(required) | Tags of cache images |
None.