Skip to content

Commit

Permalink
feat: argus-docker-build allow skipping manifest update (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
hspitzley-czi authored Sep 10, 2024
1 parent ecfb3b9 commit a4e91c6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/argus-docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ jobs:
{
"type": "object",
"additionalProperties": {
type: "object",
"type": "object",
"additionalProperties": false,
"properties": {
"context": { "type": "string" },
"dockerfile": { "type": "string" },
Expand Down Expand Up @@ -95,6 +96,7 @@ jobs:
"type": "array",
"items": { "type": "string" }
},
"skip_manifest_update": { "type": "boolean" }
},
"required": ["context", "dockerfile"]
}
Expand Down Expand Up @@ -230,7 +232,7 @@ jobs:
result-encoding: string
script: |
const images = ${{ needs.prep.outputs.images }};
const argusRootDirs = images.filter(image => image.should_build).map(image => image.argus_root);
const argusRootDirs = images.filter(image => image.should_build && !image.skip_manifest_update).map(image => image.argus_root);
console.log('Argus root dirs:', argusRootDirs);
return argusRootDirs.join(',');
Expand Down

0 comments on commit a4e91c6

Please sign in to comment.