Compare commits

...

1 Commits

Author SHA1 Message Date
Ween Jiann
11c8901fe4 Use registry cache 2021-04-07 00:47:20 +08:00

View File

@@ -44,13 +44,13 @@ jobs:
id: buildx id: buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
- name: Cache Docker layers # - name: Cache Docker layers
uses: actions/cache@v2 # uses: actions/cache@v2
with: # with:
path: /tmp/.buildx-cache # path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }} # key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: | # restore-keys: |
${{ runner.os }}-buildx- # ${{ runner.os }}-buildx-
- name: Login to DockerHub - name: Login to DockerHub
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
@@ -70,8 +70,8 @@ jobs:
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.prep.outputs.tags }} tags: ${{ steps.prep.outputs.tags }}
cache-from: type=local,src=/tmp/.buildx-cache cache-from: invoiceninja/invoiceninja:${{ steps.prep.outputs.major }}
cache-to: type=local,dest=/tmp/.buildx-cache cache-to: type=inline
- name: Image digest - name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }} run: echo ${{ steps.docker_build.outputs.digest }}