Skip to content

Commit

Permalink
attempt to reduce storage use II
Browse files Browse the repository at this point in the history
  • Loading branch information
odudex committed Mar 6, 2024
1 parent 1dcef1f commit 28a7f3b
Showing 1 changed file with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,120 +34,120 @@ jobs:
restore-keys: |
${{ runner.os }}-buildx-
- name: Build for M5StickV
- name: Build firmware
uses: docker/build-push-action@v5
with:
context: .
build-args: DEVICE=maixpy_m5stickv
build-args: DEVICE=maixpy_m5stickv
push: true
tags: localhost:5000/selfcustody/krux-builder: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
- name: Extract firmware
id: extract
uses: shrink/actions-docker-extract@v3
with:
image: localhost:5000/selfcustody/krux-builder:latest
path: /src/firmware/Kboot/build/.

- name: Upload firmware for M5StickV
- name: Upload firmware
uses: actions/upload-artifact@v4
with:
path: ${{ steps.extract-m5stickv.outputs.destination }}
name: build-m5stickv
path: ${{ steps.extract.outputs.destination }}
name: build-m5stickv

- name: Build for Amigo
- name: Build firmware
uses: docker/build-push-action@v5
with:
context: .
build-args: DEVICE=maixpy_amigo
build-args: DEVICE=maixpy_amigo
push: true
tags: localhost:5000/selfcustody/krux-builder: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
id: extract-amigo

- name: Extract firmware
id: extract
uses: shrink/actions-docker-extract@v3
with:
image: localhost:5000/selfcustody/krux-builder:latest
path: /src/firmware/Kboot/build/.
- name: Upload firmware for Amigo

- name: Upload firmware
uses: actions/upload-artifact@v4
with:
path: ${{ steps.extract-amigo.outputs.destination }}
name: build-amigo
path: ${{ steps.extract.outputs.destination }}
name: build-amigo

- name: Build for Bit
- name: Build firmware
uses: docker/build-push-action@v5
with:
context: .
build-args: DEVICE=maixpy_bit
build-args: DEVICE=maixpy_bit
push: true
tags: localhost:5000/selfcustody/krux-builder: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
- name: Extract firmware
id: extract
uses: shrink/actions-docker-extract@v3
with:
image: localhost:5000/selfcustody/krux-builder:latest
path: /src/firmware/Kboot/build/.

- name: Upload firmware for Bit
- name: Upload firmware
uses: actions/upload-artifact@v4
with:
path: ${{ steps.extract-bit.outputs.destination }}
name: build-bit
path: ${{ steps.extract.outputs.destination }}
name: build-bit

- name: Build for Dock
- name: Build firmware
uses: docker/build-push-action@v5
with:
context: .
build-args: DEVICE=maixpy_dock
build-args: DEVICE=maixpy_dock
push: true
tags: localhost:5000/selfcustody/krux-builder: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

- name: Extract firmware
id: extract
uses: shrink/actions-docker-extract@v3
with:
image: localhost:5000/selfcustody/krux-builder:latest
path: /src/firmware/Kboot/build/.
- name: Upload firmware for Dock

- name: Upload firmware
uses: actions/upload-artifact@v4
with:
path: ${{ steps.extract-dock.outputs.destination }}
name: build-dock
path: ${{ steps.extract.outputs.destination }}
name: build-dock

- name: Build for Yahboom
- name: Build firmware
uses: docker/build-push-action@v5
with:
context: .
build-args: DEVICE=maixpy_yahboom
build-args: DEVICE=maixpy_yahboom
push: true
tags: localhost:5000/selfcustody/krux-builder:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Extract firmware for Yahboom
id: extract-yahboom

- name: Extract firmware
id: extract
uses: shrink/actions-docker-extract@v3
with:
image: localhost:5000/selfcustody/krux-builder:latest
path: /src/firmware/Kboot/build/.
- name: Upload firmware for Yahboom

- name: Upload firmware
uses: actions/upload-artifact@v4
with:
path: ${{ steps.extract-yahboom.outputs.destination }}
name: build-yahboom
path: ${{ steps.extract.outputs.destination }}
name: build-yahboom

- name: Move cache
run: |
Expand Down

0 comments on commit 28a7f3b

Please sign in to comment.