Compare commits
No commits in common. "885bf5c4b3cd8054a88932b94cb32eb690ec66d9" and "b7b5823d99065071dd0197c7b4edb740c70807d1" have entirely different histories.
885bf5c4b3
...
b7b5823d99
@ -17,6 +17,15 @@ jobs:
|
|||||||
- name: checkout
|
- name: checkout
|
||||||
uses: https://github.com/actions/checkout@v3
|
uses: https://github.com/actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Restore Docker
|
||||||
|
id: cache-docker
|
||||||
|
uses: https://github.com/actions/cache/restore@v3
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
/usr/bin/docker
|
||||||
|
key: ${{ runner.os }}-docker
|
||||||
|
token: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
||||||
#- name: Download docker
|
#- name: Download docker
|
||||||
# if: steps.cache-docker.outputs.cache-hit != 'true'
|
# if: steps.cache-docker.outputs.cache-hit != 'true'
|
||||||
# run: |
|
# run: |
|
||||||
@ -27,6 +36,14 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: https://github.com/docker/setup-buildx-action@v2
|
uses: https://github.com/docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
- name: Cache Docker layers
|
||||||
|
uses: https://github.com/actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: /tmp/.buildx-cache
|
||||||
|
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-buildx-
|
||||||
|
|
||||||
- name: Login to Repo
|
- name: Login to Repo
|
||||||
uses: https://github.com/docker/login-action@v2
|
uses: https://github.com/docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
@ -40,3 +57,10 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
context: .
|
context: .
|
||||||
tags: git.fascinated.cc/fascinated/beatsaber-overlay:latest
|
tags: git.fascinated.cc/fascinated/beatsaber-overlay:latest
|
||||||
|
cache-from: type=local,src=/tmp/.buildx-cache
|
||||||
|
cache-to: type=local,dest=/tmp/.buildx-cache-new
|
||||||
|
|
||||||
|
- name: Move cache
|
||||||
|
run: |
|
||||||
|
rm -rf /tmp/.buildx-cache
|
||||||
|
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
|
||||||
|
Reference in New Issue
Block a user