ci: introduced CACHE_NAME

This commit is contained in:
Geoff Bourne 2021-05-21 16:58:52 -05:00
parent b806ea6871
commit e8f8d8b4d4

View File

@ -22,6 +22,8 @@ on:
jobs:
docker-buildx:
runs-on: ubuntu-20.04
env:
CACHE_NAME: master
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
@ -44,9 +46,9 @@ jobs:
uses: actions/cache@v2.1.5
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ steps.meta.outputs.version }}-${{ github.sha }}
key: ${{ runner.os }}-buildx-${{ env.CACHE_NAME }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-${{ steps.meta.outputs.version }}-
${{ runner.os }}-buildx-${{ env.CACHE_NAME }}-
- name: Set up QEMU
uses: docker/setup-qemu-action@v1.1.0