Skip to content

Commit

Permalink
Only require build_from and arch to match when not using image manife…
Browse files Browse the repository at this point in the history
…st (#106)
  • Loading branch information
frenck committed Aug 17, 2022
1 parent 840a606 commit c67ab5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def is_default(validator, properties, instance, schema):
print(f"::error file={build}::The build.json file is missing")
sys.exit(1)

if "build_from" in build_configuration and set(configuration["arch"]) != set(build_configuration["build_from"]):
if "build_from" in build_configuration and not isinstance(build_configuration["build_from"], str) and set(configuration["arch"]) != set(build_configuration["build_from"]):
print(f"::error file={build}::Architectures in config and build do not match")
exit_code = 1

Expand Down

0 comments on commit c67ab5a

Please sign in to comment.