File tree Expand file tree Collapse file tree 2 files changed +17
-16
lines changed Expand file tree Collapse file tree 2 files changed +17
-16
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,12 @@ jobs:
39
39
username : ${{ secrets.QUAY_USERNAME }}
40
40
password : ${{ secrets.QUAY_PASSWORD }}
41
41
42
- # - name: Cache shards
43
- # uses: actions/cache@v4
44
- # id: shards-cache
45
- # with:
46
- # path: shards-lib
47
- # key: docker-shards-${{ hashFiles('shard.lock') }}
42
+ - name : Cache shards
43
+ uses : actions/cache@v4
44
+ id : shards-cache
45
+ with :
46
+ path : shards-lib
47
+ key : docker-shards-${{ hashFiles('shard.lock') }}
48
48
49
49
- name : Cache crystal build cache (mainly scripts)
50
50
uses : actions/cache@v4
@@ -53,15 +53,15 @@ jobs:
53
53
path : scripts-cache
54
54
key : docker-crystal-${{ hashFiles('./scripts') }}
55
55
56
- # - name: Restore Docker cache mounts
57
- # uses: reproducible-containers/buildkit-cache-dance@v3
58
- # with:
59
- # builder: ${{ steps.setup-buildx.outputs.name }}
60
- # cache-map: |
61
- # {
62
- # "shards-lib": "/invidious /lib"
63
- # }
64
- # skip-extraction: ${{ steps.cache.outputs.cache-hit }}
56
+ - name : Restore Docker cache mounts
57
+ uses : reproducible-containers/buildkit-cache-dance@v3
58
+ with :
59
+ builder : ${{ steps.setup-buildx.outputs.name }}
60
+ cache-map : |
61
+ {
62
+ "shards-lib": ". /lib"
63
+ }
64
+ skip-extraction : ${{ steps.shards- cache.outputs.cache-hit }}
65
65
66
66
- name : Restore Docker cache mounts
67
67
uses : reproducible-containers/buildkit-cache-dance@v3
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ ARG release
7
7
WORKDIR /invidious
8
8
COPY ./shard.yml ./shard.yml
9
9
COPY ./shard.lock ./shard.lock
10
- RUN shards install --production
10
+ RUN --mount=type=cache,target=./lib \
11
+ shards install --production
11
12
12
13
COPY ./src/ ./src/
13
14
# TODO: .git folder is required for building – this is destructive.
You can’t perform that action at this time.
0 commit comments