Skip to content

Commit

Permalink
Merge pull request #1336 from product-os/kyle/trim-empty-bake-targets
Browse files Browse the repository at this point in the history
Fix parsing of bake targets input
  • Loading branch information
flowzone-app[bot] authored Jan 20, 2025
2 parents ed7260e + 7226c89 commit 7944f48
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/flowzone.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ jobs:
armv7-unknown-linux-gnueabi,
aarch64-unknown-linux-gnu
cloudflare_website: "flowzone"
bake_targets: default,multiarch
bake_targets: |
default,
multiarch
jobs_timeout_minutes: 30
docker_publish_platform_tags: true
docker_runs_on: >
Expand Down
4 changes: 2 additions & 2 deletions flowzone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2141,7 +2141,7 @@ jobs:
const { execSync } = require('child_process');
const tempBakeFile = process.env.TEMP_BAKE_FILE;
const bakeTargets = process.env.BAKE_TARGETS.trim().replace(/\s+/g,',').split(',');
const bakeTargets = process.env.BAKE_TARGETS.trim().replace(/[\s,]+/g,',').split(',');
const bakeFiles = JSON.parse(process.env.ALL_FILES)
.filter(f => f.match(/docker-bake(\.override)?\.(json|hcl)/))
.map(f => path.join(process.env.WORKDIR.trim(), f));
Expand Down Expand Up @@ -2336,7 +2336,7 @@ jobs:
script: |
const bakeJson = JSON.parse(process.env.BAKE_JSON);
const platformSlugMap = JSON.parse(process.env.PLATFORM_SLUG_MAP);
const images = process.env.IMAGES.trim().replace(/\s+/g,',').split(',');
const images = process.env.IMAGES.trim().replace(/[\s,]+/g,',').split(',');
const imagesCrlf = images.join('\n');
const targets = JSON.parse(process.env.BAKE_TARGETS);
Expand Down

0 comments on commit 7944f48

Please sign in to comment.