mirror of
https://github.com/PaiGramTeam/telegram-bot-api-build.git
synced 2024-11-21 22:48:07 +00:00
Added docker cache and ARM platform
This commit is contained in:
parent
844c758d4d
commit
9dfb7317f2
11
.github/workflows/docker-image.yml
vendored
11
.github/workflows/docker-image.yml
vendored
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user