Added docker cache and ARM platform

This commit is contained in:
youlovesaturn 2021-08-03 14:34:18 +02:00
parent 844c758d4d
commit 9dfb7317f2

View File

@ -19,6 +19,13 @@ jobs:
repository: tdlib/telegram-bot-api repository: tdlib/telegram-bot-api
path: telegram-bot-api path: telegram-bot-api
submodules: recursive 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 - name: Set up QEMU
uses: docker/setup-qemu-action@v1 uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx - name: Set up Docker Buildx
@ -44,8 +51,10 @@ jobs:
with: with:
context: . context: .
file: ./Dockerfile file: ./Dockerfile
platforms: linux/386,linux/amd64 platforms: linux/386,linux/amd64,linux/arm/v7,linux/arm64
push: true push: true
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
tags: | tags: |
aiogram/telegram-bot-api:latest aiogram/telegram-bot-api:latest
aiogram/telegram-bot-api:${{ env.TG_SERVER_VERSION }} aiogram/telegram-bot-api:${{ env.TG_SERVER_VERSION }}