Merge pull request #1 from youlovesaturn/dev

Added docker cache and ARM platform
This commit is contained in:
Alex Root Junior 2021-08-22 15:06:28 +03:00 committed by GitHub
commit 1c03eaefa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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