diff options
| author | syeopite <70992037+syeopite@users.noreply.github.com> | 2021-08-21 13:32:28 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-21 06:32:28 -0700 |
| commit | 1d4dd4484d9f92d7a4dfaad494a5d47c6d5bf4f5 (patch) | |
| tree | d966c51e5f080a55bfe2c7c0253dac1f9d723c49 /.github | |
| parent | 8bd2669d3d5d8e648cb7caacce22a70a11304857 (diff) | |
| download | invidious-1d4dd4484d9f92d7a4dfaad494a5d47c6d5bf4f5.tar.gz invidious-1d4dd4484d9f92d7a4dfaad494a5d47c6d5bf4f5.tar.bz2 invidious-1d4dd4484d9f92d7a4dfaad494a5d47c6d5bf4f5.zip | |
Add cache(?) to arm docker build (#2337)
* Add cache(?) to arm docker build
* Update ci.yml
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci.yml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa6f9e33..4fa27ab0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -106,14 +106,29 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 + - name: Cache Docker layers + uses: actions/cache@v2 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-multi-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-multi-buildx + - name: Build Docker ARM64 image uses: docker/build-push-action@v2 with: context: . file: docker/Dockerfile.arm64 platforms: linux/arm64/v8 + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new - name: Test Docker run: while curl -Isf http://localhost:3000; do sleep 1; done + - name: Override old Docker cache + run: | + rm -rf /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache + |
