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 }}