-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
368df60
commit d55023c
Showing
1 changed file
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,14 @@ jobs: | |
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
|
||
- name: Cache Docker layers | ||
uses: actions/[email protected] | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-buildx- | ||
- name: Log in to Docker Hub | ||
if: github.ref == 'refs/heads/master' | ||
uses: docker/[email protected] | ||
|
@@ -49,4 +57,6 @@ jobs: | |
platforms: ${{ env.DOCKER_PLATFORMS }} | ||
push: ${{ github.ref == 'refs/heads/master' }} | ||
tags: ${{ env.DOCKER_IMAGE }}:${{ matrix.branch }} | ||
build-args: ${{ matrix.build-args }} | ||
build-args: ${{ matrix.build-args }} | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
cache-to: type=local,dest=/tmp/.buildx-cache |