chore: persist Docker build cache mounts across CI runs (#32700)
This commit is contained in:
parent
3a0335cdd8
commit
6786ea8b2b
6 changed files with 67 additions and 2 deletions
7
.github/workflows/command-pr-build.yml
vendored
7
.github/workflows/command-pr-build.yml
vendored
|
|
@ -129,8 +129,15 @@ jobs:
|
|||
password: ${{ secrets.DOCKER_PASS }}
|
||||
|
||||
- name: Setup Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4
|
||||
|
||||
- name: Restore build cache
|
||||
uses: ./.github/actions/docker-cache
|
||||
with:
|
||||
builder: ${{ steps.buildx.outputs.name }}
|
||||
cache-scope: pr
|
||||
|
||||
- name: Publish
|
||||
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7
|
||||
with:
|
||||
|
|
|
|||
6
.github/workflows/nightly-docker.yml
vendored
6
.github/workflows/nightly-docker.yml
vendored
|
|
@ -28,8 +28,14 @@ jobs:
|
|||
password: ${{ secrets.DOCKER_PASS }}
|
||||
|
||||
- name: Setup Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4
|
||||
|
||||
- name: Restore build cache
|
||||
uses: ./.github/actions/docker-cache
|
||||
with:
|
||||
builder: ${{ steps.buildx.outputs.name }}
|
||||
|
||||
- name: Define tags
|
||||
id: meta
|
||||
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6
|
||||
|
|
|
|||
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
|
|
@ -60,8 +60,14 @@ jobs:
|
|||
password: ${{ secrets.DOCKER_PASS }}
|
||||
|
||||
- name: Setup Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4
|
||||
|
||||
- name: Restore build cache
|
||||
uses: ./.github/actions/docker-cache
|
||||
with:
|
||||
builder: ${{ steps.buildx.outputs.name }}
|
||||
|
||||
- name: Meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue