Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

patch: added flowzone #76

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/flowzone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Flowzone

on:
pull_request:
types: [opened, synchronize, closed]
branches:
- "main"
- "master"

jobs:
flowzone:
name: Flowzone
uses: product-os/flowzone/.github/workflows/flowzone.yml@master
secrets: inherit
with:
docker_images: |
docker.io/balenablocks/amd64-balena-electron-env,
docker.io/balenablocks/armv7hf-balena-electron-env,
docker.io/balenablocks/aarch64-balena-electron-env
bake_targets: |
amd64,
armv7hf,
aarch64
2 changes: 1 addition & 1 deletion Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ COPY tsconfig.webpack.json tsconfig.json webpack.config.ts ./
COPY src src/
COPY typings typings/
ENV NODE_OPTIONS="--max-old-space-size=3072"
RUN npm run build
RUN npm run webpack

CMD sleep infinity

Expand Down
17 changes: 17 additions & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
target "aarch64" {
dockerfile = "platforms/Dockerfile.aarch64"
tags = ["docker.io/balenablocks/aarch64-balena-electron-env"]
platforms = ["linux/arm64"]
}

target "armv7hf" {
dockerfile = "platforms/Dockerfile.armv7hf"
tags = ["docker.io/balenablocks/armv7hf-balena-electron-env"]
platforms = ["linux/arm/v7"]
}

target "amd64" {
dockerfile = "platforms/Dockerfile.amd64"
tags = ["docker.io/balenablocks/amd64-balena-electron-env"]
platforms = ["linux/amd64"]
}
13 changes: 13 additions & 0 deletions image-platforms-generate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
set -e

function update_platforms () {
local BALENA_ARCH=$1
local DOCKER_ARCH=$2

sed "s/%%BALENA_ARCH%%/$BALENA_ARCH/g" ./Dockerfile.template > ./platforms/Dockerfile.$BALENA_ARCH
}

update_platforms "aarch64" "linux/arm64"
update_platforms "armv7hf" "linux/arm/v7"
update_platforms "amd64" "linux/amd64"
Loading
Loading