Merge branch 'main' of github.com:koush/scrypted into main

This commit is contained in:
Koushik Dutta
2021-12-04 18:17:45 -08:00

View File

@@ -34,16 +34,15 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
# Key is named differently to avoid collision
key: ${{ runner.os }}-multi-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-multi-buildx
# - name: Cache Docker layers
# uses: actions/cache@v2
# with:
# path: /tmp/.buildx-cache
# # Key is named differently to avoid collision
# key: ${{ runner.os }}-multi-buildx-${{ github.sha }}
# restore-keys: |
# ${{ runner.os }}-multi-buildx
- name: Build and push Docker image (scrypted-common)
uses: docker/build-push-action@v2
@@ -56,8 +55,8 @@ jobs:
tags: |
koush/scrypted-common:latest
ghcr.io/koush/scrypted-common:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new
# cache-from: type=local,src=/tmp/.buildx-cache
# cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new
- name: Build and push Docker image (scrypted)
uses: docker/build-push-action@v2
@@ -70,11 +69,11 @@ jobs:
tags: |
koush/scrypted:latest
ghcr.io/koush/scrypted:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new
# cache-from: type=local,src=/tmp/.buildx-cache
# cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new
# prevent cache from growing forever
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
# - name: Move cache
# run: |
# rm -rf /tmp/.buildx-cache
# mv /tmp/.buildx-cache-new /tmp/.buildx-cache