Skip to content

Update de-DE.json

Update de-DE.json #2

Workflow file for this run

name: Build
on:
push:
branches:
- main
- develop_rc
pull_request:
jobs:
build:
strategy:
matrix:
device: [maixpy_m5stickv, maixpy_amigo_ips, maixpy_amigo_tft, maixpy_bit, maixpy_dock]
runs-on: ubuntu-latest
services:
registry:
image: registry:2
ports:
- 5000:5000
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: network=host
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build for M5StickV
if: matrix.device == 'maixpy_m5stickv'
uses: docker/build-push-action@v4
with:
context: .
build-args: DEVICE=maixpy_m5stickv
push: true
tags: localhost:5000/selfcustody/krux-builder-m5stickv:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Extract firmware for M5StickV
id: extract-m5stickv
if: matrix.device == 'maixpy_m5stickv'
uses: shrink/actions-docker-extract@v2
with:
image: localhost:5000/selfcustody/krux-builder-m5stickv:latest
path: /src/firmware/Kboot/build/.
- name: Upload firmware for M5StickV
if: matrix.device == 'maixpy_m5stickv'
uses: actions/upload-artifact@v3
with:
path: ${{ steps.extract-m5stickv.outputs.destination }}
name: build-m5stickv
- name: Build for Amigo IPS
if: matrix.device == 'maixpy_amigo_ips'
uses: docker/build-push-action@v4
with:
context: .
build-args: DEVICE=maixpy_amigo_ips
push: true
tags: localhost:5000/selfcustody/krux-builder-amigo-ips:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Extract firmware for Amigo IPS
id: extract-amigo-ips
if: matrix.device == 'maixpy_amigo_ips'
uses: shrink/actions-docker-extract@v2
with:
image: localhost:5000/selfcustody/krux-builder-amigo-ips:latest
path: /src/firmware/Kboot/build/.
- name: Upload firmware for Amigo IPS
if: matrix.device == 'maixpy_amigo_ips'
uses: actions/upload-artifact@v3
with:
path: ${{ steps.extract-amigo-ips.outputs.destination }}
name: build-amigo-ips
- name: Build for Amigo TFT
if: matrix.device == 'maixpy_amigo_tft'
uses: docker/build-push-action@v4
with:
context: .
build-args: DEVICE=maixpy_amigo_tft
push: true
tags: localhost:5000/selfcustody/krux-builder-amigo-tft:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Extract firmware for Amigo TFT
id: extract-amigo-tft
if: matrix.device == 'maixpy_amigo_tft'
uses: shrink/actions-docker-extract@v2
with:
image: localhost:5000/selfcustody/krux-builder-amigo-tft:latest
path: /src/firmware/Kboot/build/.
- name: Upload firmware for Amigo TFT
if: matrix.device == 'maixpy_amigo_tft'
uses: actions/upload-artifact@v3
with:
path: ${{ steps.extract-amigo-tft.outputs.destination }}
name: build-amigo-tft
- name: Build for Bit
if: matrix.device == 'maixpy_bit'
uses: docker/build-push-action@v4
with:
context: .
build-args: DEVICE=maixpy_bit
push: true
tags: localhost:5000/selfcustody/krux-builder-bit:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Extract firmware for Bit
id: extract-bit
if: matrix.device == 'maixpy_bit'
uses: shrink/actions-docker-extract@v2
with:
image: localhost:5000/selfcustody/krux-builder-bit:latest
path: /src/firmware/Kboot/build/.
- name: Upload firmware for Bit
if: matrix.device == 'maixpy_bit'
uses: actions/upload-artifact@v3
with:
path: ${{ steps.extract-bit.outputs.destination }}
name: build-bit
- name: Build for Dock
if: matrix.device == 'maixpy_dock'
uses: docker/build-push-action@v4
with:
context: .
build-args: DEVICE=maixpy_dock
push: true
tags: localhost:5000/selfcustody/krux-builder-dock:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Extract firmware for Dock
id: extract-dock
if: matrix.device == 'maixpy_dock'
uses: shrink/actions-docker-extract@v2
with:
image: localhost:5000/selfcustody/krux-builder-dock:latest
path: /src/firmware/Kboot/build/.
- name: Upload firmware for Dock
if: matrix.device == 'maixpy_dock'
uses: actions/upload-artifact@v3
with:
path: ${{ steps.extract-dock.outputs.destination }}
name: build-dock
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache