Skip to content
Open
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
5 changes: 4 additions & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ tasks:
msg: 'Not a valid target, metadata.hcl file is missing. Target: {{.TARGET}}'
cmds:
- echo -e "{{.BLUE}}Checking target {{.TARGET}}...{{.NC}}"
- docker buildx bake -f {{.TARGET}}/metadata.hcl -f docker-bake.hcl --check
# --check builds a single platform, which conflicts with the index-level
# OCI annotations in docker-bake.hcl. Override the output to cacheonly so
# the check only lints the build without exporting an image.
- docker buildx bake -f {{.TARGET}}/metadata.hcl -f docker-bake.hcl --check --set "*.output=type=cacheonly"
requires:
vars:
- name: TARGET
Expand Down
Loading