@ship.zone/ci-spec 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/.smartconfig.json +46 -0
  2. package/changelog.md +190 -0
  3. package/conformance/archive-cases.json +446 -0
  4. package/conformance/ci-actions/compile-invalid/build-arg-secret-collision.yml +31 -0
  5. package/conformance/ci-actions/compile-invalid/candidate-without-needs.yml +36 -0
  6. package/conformance/ci-actions/compile-invalid/needs-wider-triggers.yml +42 -0
  7. package/conformance/ci-actions/compile-invalid/npm-read-registry-not-allowlisted.yml +34 -0
  8. package/conformance/ci-actions/compile-invalid/publish-job-excludes-tag.yml +57 -0
  9. package/conformance/ci-actions/compile-invalid/shared-memory-above-memory.yml +28 -0
  10. package/conformance/ci-actions/compile-invalid/trigger-kind-without-job.yml +30 -0
  11. package/conformance/ci-actions/invalid/alias-affix-invalid.yml +33 -0
  12. package/conformance/ci-actions/invalid/alias.yml +32 -0
  13. package/conformance/ci-actions/invalid/bridge-network.yml +27 -0
  14. package/conformance/ci-actions/invalid/build-darwin-platform.yml +24 -0
  15. package/conformance/ci-actions/invalid/build-with-steps.yml +27 -0
  16. package/conformance/ci-actions/invalid/concurrency-empty-group.yml +28 -0
  17. package/conformance/ci-actions/invalid/concurrency-without-cancel-in-progress.yml +27 -0
  18. package/conformance/ci-actions/invalid/container-job-build-profile.yml +25 -0
  19. package/conformance/ci-actions/invalid/custom-tag.txt +23 -0
  20. package/conformance/ci-actions/invalid/duplicate-key.txt +24 -0
  21. package/conformance/ci-actions/invalid/egress-bare-wildcard.yml +29 -0
  22. package/conformance/ci-actions/invalid/egress-empty-allowlist.yml +28 -0
  23. package/conformance/ci-actions/invalid/egress-ip-literal.yml +29 -0
  24. package/conformance/ci-actions/invalid/egress-single-label-wildcard.yml +29 -0
  25. package/conformance/ci-actions/invalid/job-publish-permission.yml +28 -0
  26. package/conformance/ci-actions/invalid/job-trigger-undeclared-kind.yml +27 -0
  27. package/conformance/ci-actions/invalid/literal-alias-affix.yml +33 -0
  28. package/conformance/ci-actions/invalid/missing-spec.yml +24 -0
  29. package/conformance/ci-actions/invalid/multiple-documents.yml +25 -0
  30. package/conformance/ci-actions/invalid/npm-read-invalid-scope.yml +33 -0
  31. package/conformance/ci-actions/invalid/oci-darwin-platform.yml +25 -0
  32. package/conformance/ci-actions/invalid/permission-without-publication.yml +31 -0
  33. package/conformance/ci-actions/invalid/publish-order-duplicate.yml +50 -0
  34. package/conformance/ci-actions/invalid/publish-order-missing-kind.yml +48 -0
  35. package/conformance/ci-actions/invalid/publish-order-undeclared-kind.yml +45 -0
  36. package/conformance/ci-actions/invalid/publish-without-permission.yml +31 -0
  37. package/conformance/ci-actions/invalid/publish-without-tag-trigger.yml +31 -0
  38. package/conformance/ci-actions/invalid/release-notes-without-assets.yml +46 -0
  39. package/conformance/ci-actions/invalid/reserved-label-prefix.yml +25 -0
  40. package/conformance/ci-actions/invalid/reserved-label.yml +25 -0
  41. package/conformance/ci-actions/invalid/retention-above-maximum.yml +83 -0
  42. package/conformance/ci-actions/invalid/retention-below-minimum.yml +83 -0
  43. package/conformance/ci-actions/invalid/schema-version-field.yml +26 -0
  44. package/conformance/ci-actions/invalid/shared-memory-below-minimum.yml +28 -0
  45. package/conformance/ci-actions/invalid/shell-string.yml +21 -0
  46. package/conformance/ci-actions/invalid/spec-number.yml +25 -0
  47. package/conformance/ci-actions/invalid/spec-prerelease.yml +25 -0
  48. package/conformance/ci-actions/invalid/spec-range.yml +25 -0
  49. package/conformance/ci-actions/invalid/timeout-above-maximum.yml +26 -0
  50. package/conformance/ci-actions/invalid/timeout-below-minimum.yml +26 -0
  51. package/conformance/ci-actions/invalid/unknown-alias-kind.yml +31 -0
  52. package/conformance/ci-actions/invalid/unknown-key.yml +24 -0
  53. package/conformance/ci-actions/invalid/vm-darwin-candidate.yml +38 -0
  54. package/conformance/ci-actions/invalid/vm-darwin-shared-memory.yml +28 -0
  55. package/conformance/ci-actions/invalid/vm-oci-execution.yml +25 -0
  56. package/conformance/ci-actions/invalid/vm-unsupported-platform.yml +25 -0
  57. package/conformance/ci-actions/invalid/vm-without-platform.yml +24 -0
  58. package/conformance/ci-actions/valid/concurrency.yml +83 -0
  59. package/conformance/ci-actions/valid/egress.yml +40 -0
  60. package/conformance/ci-actions/valid/image-build.yml +80 -0
  61. package/conformance/ci-actions/valid/matrix.yml +45 -0
  62. package/conformance/ci-actions/valid/minimal.yml +25 -0
  63. package/conformance/ci-actions/valid/npm-read.yml +60 -0
  64. package/conformance/ci-actions/valid/release-assets.yml +114 -0
  65. package/conformance/ci-actions/valid/release-signing.yml +71 -0
  66. package/conformance/ci-actions/valid/release.yml +109 -0
  67. package/conformance/ci-actions/valid/resources.yml +79 -0
  68. package/conformance/ci-actions/valid/vm.yml +77 -0
  69. package/conformance/compile-cases.json +5885 -0
  70. package/conformance/compile-cases.schema.json +766 -0
  71. package/conformance/digest-cases.json +144 -0
  72. package/conformance/runner-cases.json +1238 -0
  73. package/conformance/runner-jobs/invalid/bridge-network.json +70 -0
  74. package/conformance/runner-jobs/invalid/build-darwin-platform.json +100 -0
  75. package/conformance/runner-jobs/invalid/build-with-steps.json +111 -0
  76. package/conformance/runner-jobs/invalid/build-without-microvm.json +100 -0
  77. package/conformance/runner-jobs/invalid/egress-empty-allowlist.json +71 -0
  78. package/conformance/runner-jobs/invalid/mutable-image.json +70 -0
  79. package/conformance/runner-jobs/invalid/npm-read-reserved-environment.json +82 -0
  80. package/conformance/runner-jobs/invalid/oci-darwin-platform.json +71 -0
  81. package/conformance/runner-jobs/invalid/push-permission-container.json +70 -0
  82. package/conformance/runner-jobs/invalid/shared-memory-below-minimum.json +71 -0
  83. package/conformance/runner-jobs/invalid/timeout-missing.json +69 -0
  84. package/conformance/runner-jobs/invalid/vm-without-microvm.json +82 -0
  85. package/conformance/runner-jobs/valid/candidate-test.json +72 -0
  86. package/conformance/runner-jobs/valid/egress.json +80 -0
  87. package/conformance/runner-jobs/valid/image-build.json +100 -0
  88. package/conformance/runner-jobs/valid/minimal.json +70 -0
  89. package/conformance/runner-jobs/valid/npm-read.json +81 -0
  90. package/conformance/runner-jobs/valid/resources.json +71 -0
  91. package/conformance/runner-jobs/valid/timeout-retention-defaults.json +91 -0
  92. package/conformance/runner-jobs/valid/vm-darwin.json +70 -0
  93. package/conformance/runner-jobs/valid/vm.json +82 -0
  94. package/conformance/runner-messages.json +2035 -0
  95. package/conformance/version-cases.json +125 -0
  96. package/dist_ts/00_commitinfo_data.d.ts +8 -0
  97. package/dist_ts/00_commitinfo_data.js +9 -0
  98. package/dist_ts/constants.d.ts +199 -0
  99. package/dist_ts/constants.js +106 -0
  100. package/dist_ts/index.d.ts +1 -0
  101. package/dist_ts/index.js +2 -0
  102. package/dist_ts/plugins.d.ts +1 -0
  103. package/dist_ts/plugins.js +3 -0
  104. package/examples/ci_actions.yml +64 -0
  105. package/license.md +21 -0
  106. package/package.json +72 -0
  107. package/readme.md +146 -0
  108. package/schemas/ci_actions.schema.json +1664 -0
  109. package/schemas/runner-job.schema.json +1172 -0
  110. package/spec/ci-actions.md +433 -0
  111. package/spec/runner-protocol.md +378 -0
  112. package/spec/runner.openapi.json +2182 -0
  113. package/ts/00_commitinfo_data.ts +8 -0
  114. package/ts/constants.ts +112 -0
  115. package/ts/index.ts +1 -0
  116. package/ts/plugins.ts +1 -0
@@ -0,0 +1,70 @@
1
+ {
2
+ "spec": "2.0.0",
3
+ "sourceObjectId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4
+ "workflowDigest": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
5
+ "compiledPlanDigest": "4cf6687f9bf88b6b579333864efbe6b669e836a5817b245e7793456db3bec034",
6
+ "requirements": {
7
+ "executionProfile": "oci",
8
+ "isolation": "container",
9
+ "labels": ["linux"],
10
+ "features": ["source.tar-gz"],
11
+ "limits": {
12
+ "maximumSourceArchiveBytes": 1048576,
13
+ "maximumSourceExtractedBytes": 4194304,
14
+ "maximumSourceEntries": 1000,
15
+ "maximumArtifactArchiveBytes": 0,
16
+ "maximumArtifactExtractedBytes": 0,
17
+ "maximumArtifactEntries": 0,
18
+ "maximumArtifacts": 0,
19
+ "maximumCacheArchiveBytes": 0,
20
+ "maximumCacheExtractedBytes": 0,
21
+ "maximumCacheEntries": 0,
22
+ "maximumCaches": 0,
23
+ "maximumLogChunkBytes": 65536,
24
+ "maximumTotalLogBytes": 10485760,
25
+ "maximumWorkspaceBytes": 268435456,
26
+ "maximumWorkspaceEntries": 100000
27
+ }
28
+ },
29
+ "permissions": {
30
+ "source": "read",
31
+ "artifacts": "none",
32
+ "caches": "none",
33
+ "images": "push"
34
+ },
35
+ "network": {
36
+ "mode": "none"
37
+ },
38
+ "execution": {
39
+ "profile": "oci",
40
+ "image": "registry.example/ci@sha256:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
41
+ "workingDirectory": "/workspace"
42
+ },
43
+ "steps": [
44
+ {
45
+ "name": "Test",
46
+ "command": ["pnpm", "test"],
47
+ "environment": {
48
+ "CI": "true",
49
+ "SHIPZONE_CI_INPUTS_JSON": "{}",
50
+ "SHIPZONE_CI_MATRIX_JSON": "{}"
51
+ }
52
+ }
53
+ ],
54
+ "source": {
55
+ "format": "tar.gz",
56
+ "sha256": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
57
+ "sizeBytes": 1024,
58
+ "extractedSizeBytes": 4096,
59
+ "entryCount": 4
60
+ },
61
+ "secrets": {},
62
+ "timeoutMs": 60000,
63
+ "resources": {
64
+ "memoryBytes": 268435456,
65
+ "cpus": 1,
66
+ "pids": 256
67
+ },
68
+ "artifacts": [],
69
+ "caches": []
70
+ }
@@ -0,0 +1,71 @@
1
+ {
2
+ "spec": "2.0.0",
3
+ "sourceObjectId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4
+ "workflowDigest": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
5
+ "compiledPlanDigest": "4fa312f19f3e9f50fe7ce511572568e6dbad3959360a32938b55086ff023b285",
6
+ "requirements": {
7
+ "executionProfile": "oci",
8
+ "isolation": "container",
9
+ "labels": ["linux"],
10
+ "features": ["source.tar-gz"],
11
+ "limits": {
12
+ "maximumSourceArchiveBytes": 1048576,
13
+ "maximumSourceExtractedBytes": 4194304,
14
+ "maximumSourceEntries": 1000,
15
+ "maximumArtifactArchiveBytes": 0,
16
+ "maximumArtifactExtractedBytes": 0,
17
+ "maximumArtifactEntries": 0,
18
+ "maximumArtifacts": 0,
19
+ "maximumCacheArchiveBytes": 0,
20
+ "maximumCacheExtractedBytes": 0,
21
+ "maximumCacheEntries": 0,
22
+ "maximumCaches": 0,
23
+ "maximumLogChunkBytes": 65536,
24
+ "maximumTotalLogBytes": 10485760,
25
+ "maximumWorkspaceBytes": 21474836480,
26
+ "maximumWorkspaceEntries": 100000
27
+ }
28
+ },
29
+ "permissions": {
30
+ "source": "read",
31
+ "artifacts": "none",
32
+ "caches": "none",
33
+ "images": "none"
34
+ },
35
+ "network": {
36
+ "mode": "none"
37
+ },
38
+ "execution": {
39
+ "profile": "oci",
40
+ "image": "registry.example/ci@sha256:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
41
+ "workingDirectory": "/workspace"
42
+ },
43
+ "steps": [
44
+ {
45
+ "name": "Test",
46
+ "command": ["pnpm", "test"],
47
+ "environment": {
48
+ "CI": "true",
49
+ "SHIPZONE_CI_INPUTS_JSON": "{}",
50
+ "SHIPZONE_CI_MATRIX_JSON": "{}"
51
+ }
52
+ }
53
+ ],
54
+ "source": {
55
+ "format": "tar.gz",
56
+ "sha256": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
57
+ "sizeBytes": 1024,
58
+ "extractedSizeBytes": 4096,
59
+ "entryCount": 4
60
+ },
61
+ "secrets": {},
62
+ "timeoutMs": 60000,
63
+ "resources": {
64
+ "memoryBytes": 268435456,
65
+ "cpus": 1,
66
+ "pids": 256,
67
+ "sharedMemoryBytes": 1024
68
+ },
69
+ "artifacts": [],
70
+ "caches": []
71
+ }
@@ -0,0 +1,69 @@
1
+ {
2
+ "spec": "2.0.0",
3
+ "sourceObjectId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4
+ "workflowDigest": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
5
+ "compiledPlanDigest": "0de0ef818ccc203a837d734e38279a73ac158898cc6e6a6826b3fa0ef4d0a155",
6
+ "requirements": {
7
+ "executionProfile": "oci",
8
+ "isolation": "container",
9
+ "labels": ["linux"],
10
+ "features": ["source.tar-gz"],
11
+ "limits": {
12
+ "maximumSourceArchiveBytes": 1048576,
13
+ "maximumSourceExtractedBytes": 4194304,
14
+ "maximumSourceEntries": 1000,
15
+ "maximumArtifactArchiveBytes": 0,
16
+ "maximumArtifactExtractedBytes": 0,
17
+ "maximumArtifactEntries": 0,
18
+ "maximumArtifacts": 0,
19
+ "maximumCacheArchiveBytes": 0,
20
+ "maximumCacheExtractedBytes": 0,
21
+ "maximumCacheEntries": 0,
22
+ "maximumCaches": 0,
23
+ "maximumLogChunkBytes": 65536,
24
+ "maximumTotalLogBytes": 10485760,
25
+ "maximumWorkspaceBytes": 268435456,
26
+ "maximumWorkspaceEntries": 100000
27
+ }
28
+ },
29
+ "permissions": {
30
+ "source": "read",
31
+ "artifacts": "none",
32
+ "caches": "none",
33
+ "images": "none"
34
+ },
35
+ "network": {
36
+ "mode": "none"
37
+ },
38
+ "execution": {
39
+ "profile": "oci",
40
+ "image": "registry.example/ci@sha256:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
41
+ "workingDirectory": "/workspace"
42
+ },
43
+ "steps": [
44
+ {
45
+ "name": "Test",
46
+ "command": ["pnpm", "test"],
47
+ "environment": {
48
+ "CI": "true",
49
+ "SHIPZONE_CI_INPUTS_JSON": "{}",
50
+ "SHIPZONE_CI_MATRIX_JSON": "{}"
51
+ }
52
+ }
53
+ ],
54
+ "source": {
55
+ "format": "tar.gz",
56
+ "sha256": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
57
+ "sizeBytes": 1024,
58
+ "extractedSizeBytes": 4096,
59
+ "entryCount": 4
60
+ },
61
+ "secrets": {},
62
+ "resources": {
63
+ "memoryBytes": 268435456,
64
+ "cpus": 1,
65
+ "pids": 256
66
+ },
67
+ "artifacts": [],
68
+ "caches": []
69
+ }
@@ -0,0 +1,82 @@
1
+ {
2
+ "spec": "2.0.0",
3
+ "sourceObjectId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4
+ "workflowDigest": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
5
+ "compiledPlanDigest": "2dd170d2f7d96ebc93a0790ca744130fa67c8d500b44de8ad67b4835933bc576",
6
+ "requirements": {
7
+ "executionProfile": "vm",
8
+ "isolation": "container",
9
+ "labels": ["linux"],
10
+ "features": ["source.tar-gz"],
11
+ "limits": {
12
+ "maximumSourceArchiveBytes": 1048576,
13
+ "maximumSourceExtractedBytes": 4194304,
14
+ "maximumSourceEntries": 1000,
15
+ "maximumArtifactArchiveBytes": 0,
16
+ "maximumArtifactExtractedBytes": 0,
17
+ "maximumArtifactEntries": 0,
18
+ "maximumArtifacts": 0,
19
+ "maximumCacheArchiveBytes": 0,
20
+ "maximumCacheExtractedBytes": 0,
21
+ "maximumCacheEntries": 0,
22
+ "maximumCaches": 0,
23
+ "maximumLogChunkBytes": 65536,
24
+ "maximumTotalLogBytes": 10485760,
25
+ "maximumWorkspaceBytes": 21474836480,
26
+ "maximumWorkspaceEntries": 100000
27
+ },
28
+ "platform": "linux/amd64"
29
+ },
30
+ "permissions": {
31
+ "source": "read",
32
+ "artifacts": "none",
33
+ "caches": "none",
34
+ "images": "none"
35
+ },
36
+ "network": {
37
+ "mode": "egress",
38
+ "allow": [
39
+ {
40
+ "host": "registry-1.docker.io",
41
+ "ports": [443]
42
+ },
43
+ {
44
+ "host": "auth.docker.io",
45
+ "ports": [443]
46
+ }
47
+ ]
48
+ },
49
+ "execution": {
50
+ "profile": "vm",
51
+ "image": "registry.example/ci@sha256:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
52
+ "workingDirectory": "/workspace"
53
+ },
54
+ "steps": [
55
+ {
56
+ "name": "Test with a container engine",
57
+ "command": ["/usr/local/bin/with-dockerd", "pnpm", "test"],
58
+ "environment": {
59
+ "CI": "true",
60
+ "SHIPZONE_CI_INPUTS_JSON": "{}",
61
+ "SHIPZONE_CI_MATRIX_JSON": "{}"
62
+ }
63
+ }
64
+ ],
65
+ "source": {
66
+ "format": "tar.gz",
67
+ "sha256": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
68
+ "sizeBytes": 1024,
69
+ "extractedSizeBytes": 4096,
70
+ "entryCount": 4
71
+ },
72
+ "secrets": {},
73
+ "timeoutMs": 60000,
74
+ "resources": {
75
+ "memoryBytes": 268435456,
76
+ "cpus": 1,
77
+ "pids": 256,
78
+ "sharedMemoryBytes": 134217728
79
+ },
80
+ "artifacts": [],
81
+ "caches": []
82
+ }
@@ -0,0 +1,72 @@
1
+ {
2
+ "spec": "2.0.0",
3
+ "sourceObjectId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4
+ "workflowDigest": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
5
+ "compiledPlanDigest": "cf4576a479ed8acc3d7635cf732de643df8edd0f48320a41e869712e8f72a1f5",
6
+ "requirements": {
7
+ "executionProfile": "oci",
8
+ "isolation": "container",
9
+ "labels": ["linux"],
10
+ "features": ["source.tar-gz"],
11
+ "limits": {
12
+ "maximumSourceArchiveBytes": 1048576,
13
+ "maximumSourceExtractedBytes": 4194304,
14
+ "maximumSourceEntries": 1000,
15
+ "maximumArtifactArchiveBytes": 0,
16
+ "maximumArtifactExtractedBytes": 0,
17
+ "maximumArtifactEntries": 0,
18
+ "maximumArtifacts": 0,
19
+ "maximumCacheArchiveBytes": 0,
20
+ "maximumCacheExtractedBytes": 0,
21
+ "maximumCacheEntries": 0,
22
+ "maximumCaches": 0,
23
+ "maximumLogChunkBytes": 65536,
24
+ "maximumTotalLogBytes": 10485760,
25
+ "maximumWorkspaceBytes": 268435456,
26
+ "maximumWorkspaceEntries": 100000
27
+ },
28
+ "platform": "linux/amd64"
29
+ },
30
+ "permissions": {
31
+ "source": "read",
32
+ "artifacts": "none",
33
+ "caches": "none",
34
+ "images": "none"
35
+ },
36
+ "network": {
37
+ "mode": "none"
38
+ },
39
+ "execution": {
40
+ "profile": "oci",
41
+ "image": {
42
+ "candidate": "image"
43
+ },
44
+ "workingDirectory": "/workspace"
45
+ },
46
+ "steps": [
47
+ {
48
+ "name": "Candidate smoke test",
49
+ "command": ["/usr/local/bin/app", "--self-test"],
50
+ "environment": {
51
+ "SHIPZONE_CI_INPUTS_JSON": "{}",
52
+ "SHIPZONE_CI_MATRIX_JSON": "{}"
53
+ }
54
+ }
55
+ ],
56
+ "source": {
57
+ "format": "tar.gz",
58
+ "sha256": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
59
+ "sizeBytes": 1024,
60
+ "extractedSizeBytes": 4096,
61
+ "entryCount": 4
62
+ },
63
+ "secrets": {},
64
+ "timeoutMs": 60000,
65
+ "resources": {
66
+ "memoryBytes": 268435456,
67
+ "cpus": 1,
68
+ "pids": 256
69
+ },
70
+ "artifacts": [],
71
+ "caches": []
72
+ }
@@ -0,0 +1,80 @@
1
+ {
2
+ "spec": "2.0.0",
3
+ "sourceObjectId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4
+ "workflowDigest": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
5
+ "compiledPlanDigest": "803afd911881e421960163bbb86c93cdea30f4aa218895f03383a086c0733acf",
6
+ "requirements": {
7
+ "executionProfile": "oci",
8
+ "isolation": "container",
9
+ "labels": ["linux"],
10
+ "features": ["source.tar-gz"],
11
+ "limits": {
12
+ "maximumSourceArchiveBytes": 1048576,
13
+ "maximumSourceExtractedBytes": 4194304,
14
+ "maximumSourceEntries": 1000,
15
+ "maximumArtifactArchiveBytes": 0,
16
+ "maximumArtifactExtractedBytes": 0,
17
+ "maximumArtifactEntries": 0,
18
+ "maximumArtifacts": 0,
19
+ "maximumCacheArchiveBytes": 0,
20
+ "maximumCacheExtractedBytes": 0,
21
+ "maximumCacheEntries": 0,
22
+ "maximumCaches": 0,
23
+ "maximumLogChunkBytes": 65536,
24
+ "maximumTotalLogBytes": 10485760,
25
+ "maximumWorkspaceBytes": 268435456,
26
+ "maximumWorkspaceEntries": 100000
27
+ }
28
+ },
29
+ "permissions": {
30
+ "source": "read",
31
+ "artifacts": "none",
32
+ "caches": "none",
33
+ "images": "none"
34
+ },
35
+ "network": {
36
+ "mode": "egress",
37
+ "allow": [
38
+ {
39
+ "host": "registry.npmjs.org",
40
+ "ports": [443]
41
+ },
42
+ {
43
+ "host": "*.githubusercontent.com",
44
+ "ports": [443]
45
+ }
46
+ ]
47
+ },
48
+ "execution": {
49
+ "profile": "oci",
50
+ "image": "registry.example/ci@sha256:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
51
+ "workingDirectory": "/workspace"
52
+ },
53
+ "steps": [
54
+ {
55
+ "name": "Install",
56
+ "command": ["pnpm", "install", "--frozen-lockfile"],
57
+ "environment": {
58
+ "CI": "true",
59
+ "SHIPZONE_CI_INPUTS_JSON": "{}",
60
+ "SHIPZONE_CI_MATRIX_JSON": "{}"
61
+ }
62
+ }
63
+ ],
64
+ "source": {
65
+ "format": "tar.gz",
66
+ "sha256": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
67
+ "sizeBytes": 1024,
68
+ "extractedSizeBytes": 4096,
69
+ "entryCount": 4
70
+ },
71
+ "secrets": {},
72
+ "timeoutMs": 60000,
73
+ "resources": {
74
+ "memoryBytes": 268435456,
75
+ "cpus": 1,
76
+ "pids": 256
77
+ },
78
+ "artifacts": [],
79
+ "caches": []
80
+ }
@@ -0,0 +1,100 @@
1
+ {
2
+ "spec": "2.0.0",
3
+ "sourceObjectId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4
+ "workflowDigest": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
5
+ "compiledPlanDigest": "e9465908999d42aa96d23ee7965d0da732a2a4bbd99b16748cad10ef328a1abd",
6
+ "requirements": {
7
+ "executionProfile": "oci-image",
8
+ "isolation": "microvm",
9
+ "platform": "linux/arm64",
10
+ "labels": ["builder"],
11
+ "features": ["source.tar-gz", "caches"],
12
+ "limits": {
13
+ "maximumSourceArchiveBytes": 1048576,
14
+ "maximumSourceExtractedBytes": 4194304,
15
+ "maximumSourceEntries": 1000,
16
+ "maximumArtifactArchiveBytes": 0,
17
+ "maximumArtifactExtractedBytes": 0,
18
+ "maximumArtifactEntries": 0,
19
+ "maximumArtifacts": 0,
20
+ "maximumCacheArchiveBytes": 4294967296,
21
+ "maximumCacheExtractedBytes": 17179869184,
22
+ "maximumCacheEntries": 1000000,
23
+ "maximumCaches": 1,
24
+ "maximumLogChunkBytes": 65536,
25
+ "maximumTotalLogBytes": 10485760,
26
+ "maximumWorkspaceBytes": 21474836480,
27
+ "maximumWorkspaceEntries": 100000
28
+ }
29
+ },
30
+ "permissions": {
31
+ "source": "read",
32
+ "artifacts": "none",
33
+ "caches": "read-write",
34
+ "images": "push"
35
+ },
36
+ "network": {
37
+ "mode": "egress",
38
+ "allow": [
39
+ {
40
+ "host": "registry.npmjs.org",
41
+ "ports": [443]
42
+ }
43
+ ]
44
+ },
45
+ "build": {
46
+ "context": ".",
47
+ "dockerfile": "Dockerfile",
48
+ "target": "production",
49
+ "buildArgs": {
50
+ "NODE_ENV": "production"
51
+ },
52
+ "secrets": [
53
+ {
54
+ "id": "npmrc",
55
+ "environment": "NPM_TOKEN"
56
+ }
57
+ ],
58
+ "labels": {
59
+ "org.opencontainers.image.revision": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
60
+ "org.opencontainers.image.source": "https://code.foss.global/example/app",
61
+ "org.opencontainers.image.title": "app"
62
+ },
63
+ "baseImages": [
64
+ {
65
+ "name": "base",
66
+ "image": {
67
+ "candidate": "base-image"
68
+ }
69
+ }
70
+ ]
71
+ },
72
+ "source": {
73
+ "format": "tar.gz",
74
+ "sha256": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
75
+ "sizeBytes": 1024,
76
+ "extractedSizeBytes": 4096,
77
+ "entryCount": 4
78
+ },
79
+ "secrets": {
80
+ "NPM_TOKEN": "resolved-secret-value"
81
+ },
82
+ "timeoutMs": 3600000,
83
+ "resources": {
84
+ "memoryBytes": 8589934592,
85
+ "cpus": 4,
86
+ "pids": 4096
87
+ },
88
+ "artifacts": [],
89
+ "caches": [
90
+ {
91
+ "name": "buildkit",
92
+ "key": "buildkit-linux-arm64",
93
+ "access": "read-write",
94
+ "maximumBytes": 4294967296,
95
+ "maximumExtractedBytes": 17179869184,
96
+ "maximumEntries": 1000000,
97
+ "retentionDays": 14
98
+ }
99
+ ]
100
+ }
@@ -0,0 +1,70 @@
1
+ {
2
+ "spec": "2.0.0",
3
+ "sourceObjectId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4
+ "workflowDigest": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
5
+ "compiledPlanDigest": "510cbf54d5dbed5636d03249a9c7cb9c69ab1697ff7df505c372a72a6259636d",
6
+ "requirements": {
7
+ "executionProfile": "oci",
8
+ "isolation": "container",
9
+ "labels": ["linux"],
10
+ "features": ["source.tar-gz"],
11
+ "limits": {
12
+ "maximumSourceArchiveBytes": 1048576,
13
+ "maximumSourceExtractedBytes": 4194304,
14
+ "maximumSourceEntries": 1000,
15
+ "maximumArtifactArchiveBytes": 0,
16
+ "maximumArtifactExtractedBytes": 0,
17
+ "maximumArtifactEntries": 0,
18
+ "maximumArtifacts": 0,
19
+ "maximumCacheArchiveBytes": 0,
20
+ "maximumCacheExtractedBytes": 0,
21
+ "maximumCacheEntries": 0,
22
+ "maximumCaches": 0,
23
+ "maximumLogChunkBytes": 65536,
24
+ "maximumTotalLogBytes": 10485760,
25
+ "maximumWorkspaceBytes": 268435456,
26
+ "maximumWorkspaceEntries": 100000
27
+ }
28
+ },
29
+ "permissions": {
30
+ "source": "read",
31
+ "artifacts": "none",
32
+ "caches": "none",
33
+ "images": "none"
34
+ },
35
+ "network": {
36
+ "mode": "none"
37
+ },
38
+ "execution": {
39
+ "profile": "oci",
40
+ "image": "registry.example/ci@sha256:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
41
+ "workingDirectory": "/workspace"
42
+ },
43
+ "steps": [
44
+ {
45
+ "name": "Test",
46
+ "command": ["pnpm", "test"],
47
+ "environment": {
48
+ "CI": "true",
49
+ "SHIPZONE_CI_INPUTS_JSON": "{}",
50
+ "SHIPZONE_CI_MATRIX_JSON": "{}"
51
+ }
52
+ }
53
+ ],
54
+ "source": {
55
+ "format": "tar.gz",
56
+ "sha256": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
57
+ "sizeBytes": 1024,
58
+ "extractedSizeBytes": 4096,
59
+ "entryCount": 4
60
+ },
61
+ "secrets": {},
62
+ "timeoutMs": 60000,
63
+ "resources": {
64
+ "memoryBytes": 268435456,
65
+ "cpus": 1,
66
+ "pids": 256
67
+ },
68
+ "artifacts": [],
69
+ "caches": []
70
+ }