From 9dfb7317f216969aac796efc30f60a926b71f6f4 Mon Sep 17 00:00:00 2001 From: youlovesaturn Date: Tue, 3 Aug 2021 14:34:18 +0200 Subject: [PATCH] Added docker cache and ARM platform --- .github/workflows/docker-image.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index aa2ef37..6351ea8 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -19,6 +19,13 @@ jobs: repository: tdlib/telegram-bot-api path: telegram-bot-api submodules: recursive + - name: Cache Docker layers + uses: actions/cache@v2 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx- - name: Set up QEMU uses: docker/setup-qemu-action@v1 - name: Set up Docker Buildx @@ -44,8 +51,10 @@ jobs: with: context: . file: ./Dockerfile - platforms: linux/386,linux/amd64 + platforms: linux/386,linux/amd64,linux/arm/v7,linux/arm64 push: true + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache tags: | aiogram/telegram-bot-api:latest aiogram/telegram-bot-api:${{ env.TG_SERVER_VERSION }}