build: migrate to GitHub Action cache

This commit is contained in:
Rongrong 2022-04-28 04:48:21 +08:00
parent 2be86ac3f4
commit fb13036b49
No known key found for this signature in database
GPG Key ID: 1C2D45D45AB7FE94

View File

@ -23,5 +23,5 @@ jobs:
push: true push: true
platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v7 platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v7
tags: ${{ secrets.DOCKER_USERNAME }}/slashbot:latest tags: ${{ secrets.DOCKER_USERNAME }}/slashbot:latest
cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/slashbot:buildcache cache-from: type=gha,scope=docker-release
cache-to: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/slashbot:buildcache,mode=max cache-to: type=gha,scope=docker-release,mode=max