diff --git a/.github/workflows/build-docker-artifacts-config.schema.json b/.github/workflows/build-docker-artifacts-config.schema.json index d964af33..8604a918 100644 --- a/.github/workflows/build-docker-artifacts-config.schema.json +++ b/.github/workflows/build-docker-artifacts-config.schema.json @@ -21,6 +21,11 @@ "default": false, "description": "Skip building the build" }, + "skip_test_images": { + "type": "boolean", + "default": false, + "description": "Skip the test_images hook" + }, "components": { "type": "array", "items": { diff --git a/.github/workflows/build-docker-artifacts.yml b/.github/workflows/build-docker-artifacts.yml index 5d23e66f..0bf3a0a0 100644 --- a/.github/workflows/build-docker-artifacts.yml +++ b/.github/workflows/build-docker-artifacts.yml @@ -108,7 +108,7 @@ jobs: const hooksDirectory = path.join('./deploy/build', flavor.directory, 'hooks'); const testImagesHookScript = path.join(hooksDirectory, 'test-images.sh'); const testImagesHookReport = path.join(hooksDirectory, 'test-images-report'); - const testImageEnabled = fs.existsSync(testImagesHookScript); + const testImageEnabled = !flavor.skip_test_images && fs.existsSync(testImagesHookScript); return { ...flavor,