mirror of
https://github.com/BEARlogin/max-telegram-bridge-bot.git
synced 2026-07-09 17:18:37 +00:00
Update RouterOS.yml
This commit is contained in:
parent
9bfb324909
commit
f3c120d016
1 changed files with 19 additions and 10 deletions
29
.github/workflows/RouterOS.yml
vendored
29
.github/workflows/RouterOS.yml
vendored
|
|
@ -1,8 +1,10 @@
|
|||
name: RouterOS
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [master]
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
binaries:
|
||||
|
|
@ -73,17 +75,24 @@ jobs:
|
|||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
# Обычный docker build без buildx push —
|
||||
# RouterOS понимает только legacy формат (docker save)
|
||||
- name: Build image
|
||||
run: |
|
||||
docker build \
|
||||
--platform ${{ matrix.platform }} \
|
||||
--tag max-telegram-bridge-bot:build \
|
||||
.
|
||||
# Build via buildx (required for cross-platform) but export as
|
||||
# legacy Docker format via "docker save" — RouterOS container
|
||||
# engine only understands the legacy image format, not OCI.
|
||||
- name: Build image via buildx
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: false
|
||||
platforms: ${{ matrix.platform }}
|
||||
tags: max-telegram-bridge-bot:build
|
||||
# Load into local Docker daemon so we can docker save it
|
||||
outputs: type=docker,dest=/tmp/image-${{ matrix.suffix }}.tar
|
||||
|
||||
- name: Save image as tar
|
||||
# buildx already outputs a tar — but it's OCI format.
|
||||
# Re-import into Docker daemon and re-export as legacy format.
|
||||
- name: Re-export as legacy Docker format
|
||||
run: |
|
||||
docker load -i /tmp/image-${{ matrix.suffix }}.tar
|
||||
docker save max-telegram-bridge-bot:build \
|
||||
-o max-telegram-bridge-bot-${{ matrix.suffix }}-docker.tar
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue