diff --git a/.github/workflows/ci-qemu.yml b/.github/workflows/ci-qemu.yml
index 52077293ae91357d1bea00380d3e58e3816d8cd5..541b113f196b4ee4a5740236a4ec29e2cec00ed3 100644
--- a/.github/workflows/ci-qemu.yml
+++ b/.github/workflows/ci-qemu.yml
@@ -83,8 +83,8 @@ jobs:
           push: ${{ github.event_name != 'pull_request' }}
           tags: ${{ steps.meta.outputs.tags }}
           labels: ${{ steps.meta.outputs.labels }}
-          cache-from: type=registry,ref=${{ secrets.PRIVATEHUB_HOSTNAME }}/${{ env.REPOSITORY_NAME }}:${{ env.GITHUB_REF_NAME }}-buildcache
-          cache-to: type=registry,ref=${{ secrets.PRIVATEHUB_HOSTNAME }}/${{ env.REPOSITORY_NAME }}:${{ env.GITHUB_REF_NAME }}-buildcache,mode=min,compression=zstd
+          cache-from: type=registry,ref=${{ secrets.PRIVATEHUB_HOSTNAME }}/${{ env.REPOSITORY_NAME }}:$GITHUB_REF_NAME-buildcache
+          cache-to: type=registry,ref=${{ secrets.PRIVATEHUB_HOSTNAME }}/${{ env.REPOSITORY_NAME }}:$GITHUB_REF_NAME-buildcache,mode=min,compression=zstd
 
       - name: Update repo description
         uses: peter-evans/dockerhub-description@v3