Skip to content

Commit b462f84

Browse files
committed
Prepare all resources for release v0.4
Update all events, close -draft versions: - ls examples | while read aa; do sp="$(echo ${aa%.*} | tr "_" ".")"; ./tools/event-version.sh -u $sp -e; done Update the spec script to handle the custom events schema. Update the spec: - ./tools/spec-release.sh -e Remove a couple of references to "-draft" versions from the links.md document. Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
1 parent 1950f6f commit b462f84

File tree

101 files changed

+282
-277
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+282
-277
lines changed

continuous-deployment.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ A `service` can represent for example a binary that is running, a daemon, an app
5151

5252
This event represents an environment that has been created. Such an environment can be used to deploy services in.
5353

54-
- Event Type: __`dev.cdevents.environment.created.0.2.0-draft`__
54+
- Event Type: __`dev.cdevents.environment.created.0.2.0`__
5555
- Predicate: created
5656
- Subject: [`environment`](#environment)
5757

@@ -67,7 +67,7 @@ This event represents an environment that has been created. Such an environment
6767

6868
This event represents an environment that has been modified.
6969

70-
- Event Type: __`dev.cdevents.environment.modified.0.2.0-draft`__
70+
- Event Type: __`dev.cdevents.environment.modified.0.2.0`__
7171
- Predicate: modified
7272
- Subject: [`environment`](#environment)
7373

@@ -83,7 +83,7 @@ This event represents an environment that has been modified.
8383

8484
This event represents an environment that has been deleted.```
8585

86-
- Event Type: __`dev.cdevents.environment.deleted.0.2.0-draft`__
86+
- Event Type: __`dev.cdevents.environment.deleted.0.2.0`__
8787
- Predicate: deleted
8888
- Subject: [`environment`](#environment)
8989

@@ -98,7 +98,7 @@ This event represents an environment that has been deleted.```
9898

9999
This event represents a new instance of a service that has been deployed
100100

101-
- Event Type: __`dev.cdevents.service.deployed.0.2.0-draft`__
101+
- Event Type: __`dev.cdevents.service.deployed.0.2.0`__
102102
- Predicate: deployed
103103
- Subject: [`service`](#service)
104104

@@ -114,7 +114,7 @@ This event represents a new instance of a service that has been deployed
114114

115115
This event represents an existing instance of a service that has been upgraded to a new version
116116

117-
- Event Type: __`dev.cdevents.service.upgraded.0.2.0-draft`__
117+
- Event Type: __`dev.cdevents.service.upgraded.0.2.0`__
118118
- Predicate: upgraded
119119
- Subject: [`service`](#service)
120120

@@ -130,7 +130,7 @@ This event represents an existing instance of a service that has been upgraded t
130130

131131
This event represents an existing instance of a service that has been rolled back to a previous version
132132

133-
- Event Type: __`dev.cdevents.service.rolledback.0.2.0-draft`__
133+
- Event Type: __`dev.cdevents.service.rolledback.0.2.0`__
134134
- Predicate: rolledback
135135
- Subject: [`service`](#service)
136136

@@ -146,7 +146,7 @@ This event represents an existing instance of a service that has been rolled bac
146146

147147
This event represents the removal of a previously deployed service instance and is thus not longer present in the specified environment
148148

149-
- Event Type: __`dev.cdevents.service.removed.0.2.0-draft`__
149+
- Event Type: __`dev.cdevents.service.removed.0.2.0`__
150150
- Predicate: removed
151151
- Subject: [`service`](#service)
152152

@@ -161,7 +161,7 @@ This event represents the removal of a previously deployed service instance and
161161

162162
This event represents an existing instance of a service that has an accessible URL for users to interact with it. This event can be used to let other tools know that the service is ready and also available for consumption.
163163

164-
- Event Type: __`dev.cdevents.service.published.0.2.0-draft`__
164+
- Event Type: __`dev.cdevents.service.published.0.2.0`__
165165
- Predicate: published
166166
- Subject: [`service`](#service)
167167

continuous-integration.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ An `artifact` is usually produced as output of a build process. Events need to b
5656

5757
This event represents a Build task that has been queued; this build process usually is in charge of producing a binary from source code.
5858

59-
- Event Type: __`dev.cdevents.build.queued.0.2.0-draft`__
59+
- Event Type: __`dev.cdevents.build.queued.0.2.0`__
6060
- Predicate: queued
6161
- Subject: [`build`](#build)
6262

@@ -70,7 +70,7 @@ This event represents a Build task that has been queued; this build process usua
7070

7171
This event represents a Build task that has been started; this build process usually is in charge of producing a binary from source code.
7272

73-
- Event Type: __`dev.cdevents.build.started.0.2.0-draft`__
73+
- Event Type: __`dev.cdevents.build.started.0.2.0`__
7474
- Predicate: started
7575
- Subject: [`build`](#build)
7676

@@ -84,7 +84,7 @@ This event represents a Build task that has been started; this build process usu
8484

8585
This event represents a Build task that has finished. This event will eventually contain the finished status, success, error or failure
8686

87-
- Event Type: __`dev.cdevents.build.finished.0.2.0-draft`__
87+
- Event Type: __`dev.cdevents.build.finished.0.2.0`__
8888
- Predicate: finished
8989
- Subject: [`build`](#build)
9090

@@ -100,7 +100,7 @@ This event represents a Build task that has finished. This event will eventually
100100
The event represents an artifact that has been packaged for distribution; this artifact is now versioned with a fixed version.
101101
This event is usually produced by the build system. If an SBOM URI is available at this stage, it should be included.
102102

103-
- Event Type: __`dev.cdevents.artifact.packaged.0.2.0-draft`__
103+
- Event Type: __`dev.cdevents.artifact.packaged.0.2.0`__
104104
- Predicate: packaged
105105
- Subject: [`artifact`](#artifact)
106106

@@ -117,7 +117,7 @@ This event is usually produced by the build system. If an SBOM URI is available
117117
The event represents an artifact that has been signed. The signature is included in the events itself.
118118
An artifact may be signed after it has been packaged or sometimes after it has published, depending on the tooling being used and the type of artifact. The `artifact signed` event is typically produced by the CI or build system.
119119

120-
- Event Type: __`dev.cdevents.artifact.signed.0.2.0-draft`__
120+
- Event Type: __`dev.cdevents.artifact.signed.0.2.0`__
121121
- Predicate: signed
122122
- Subject: [`artifact`](#artifact)
123123

@@ -133,7 +133,7 @@ An artifact may be signed after it has been packaged or sometimes after it has p
133133
The event represents an artifact that has been published and it can be advertised for others to use.
134134
The `artifact published` event is typically produced by the artifact registry, but it may also be produced by the build system.
135135

136-
- Event Type: __`dev.cdevents.artifact.published.0.2.0-draft`__
136+
- Event Type: __`dev.cdevents.artifact.published.0.2.0`__
137137
- Predicate: published
138138
- Subject: [`artifact`](#artifact)
139139

@@ -149,7 +149,7 @@ The `artifact published` event is typically produced by the artifact registry, b
149149
The event represents an artifact that has been downloaded from the registry.
150150
The `artifact downloaded` event is preferably produced by the artifact registry.
151151

152-
- Event Type: __`dev.cdevents.artifact.downloaded.0.1.0-draft`__
152+
- Event Type: __`dev.cdevents.artifact.downloaded.0.1.0`__
153153
- Predicate: downloaded
154154
- Subject: [`artifact`](#artifact)
155155

@@ -165,7 +165,7 @@ The `artifact downloaded` event is preferably produced by the artifact registry.
165165
The event represents an artifact that has been deleted from an artifact registry.
166166
The `artifact deleted` event is preferably produced by the artifact registry.
167167

168-
- Event Type: __`dev.cdevents.artifact.deleted.0.1.0-draft`__
168+
- Event Type: __`dev.cdevents.artifact.deleted.0.1.0`__
169169
- Predicate: deleted
170170
- Subject: [`artifact`](#artifact)
171171

continuous-operations.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ A ticket can request a change, report a problem, or document an [`incident`](#in
6262

6363
This event represents an incident that has been detected by a system or human.
6464

65-
- Event Type: __`dev.cdevents.incident.detected.0.2.0-draft`__
65+
- Event Type: __`dev.cdevents.incident.detected.0.2.0`__
6666
- Predicate: detected
6767
- Subject: [`incident`](#incident)
6868

@@ -80,7 +80,7 @@ This event represents an incident that has been detected by a system or human.
8080

8181
This event represents an incident that has been reported through a ticketing system. Compared to the `detected` predicated, it introduces a ticket URI.
8282

83-
- Event Type: __`dev.cdevents.incident.reported.0.2.0-draft`__
83+
- Event Type: __`dev.cdevents.incident.reported.0.2.0`__
8484
- Predicate: reported
8585
- Subject: [`incident`](#incident)
8686

@@ -99,7 +99,7 @@ This event represents an incident that has been reported through a ticketing sys
9999

100100
This event represents an incident that has been resolved, meaning that the problem identified by the incident has been solved or recalled.
101101

102-
- Event Type: __`dev.cdevents.incident.resolved.0.2.0-draft`__
102+
- Event Type: __`dev.cdevents.incident.resolved.0.2.0`__
103103
- Predicate: resolved
104104
- Subject: [`incident`](#incident)
105105

@@ -117,7 +117,7 @@ This event represents an incident that has been resolved, meaning that the probl
117117

118118
This event represents a ticket that has been created within some ticketing system.
119119

120-
- Event Type: __`dev.cdevents.ticket.created.0.1.0-draft`__
120+
- Event Type: __`dev.cdevents.ticket.created.0.1.0`__
121121
- Predicate: created
122122
- Subject: [`ticket`](#ticket)
123123

@@ -140,7 +140,7 @@ This event represents a ticket that has been created within some ticketing syste
140140

141141
This event indicates that a ticket has been updated within some ticketing system.
142142

143-
- Event Type: __`dev.cdevents.ticket.updated.0.1.0-draft`__
143+
- Event Type: __`dev.cdevents.ticket.updated.0.1.0`__
144144
- Predicate: updated
145145
- Subject: [`ticket`](#ticket)
146146

@@ -164,7 +164,7 @@ This event indicates that a ticket has been updated within some ticketing system
164164

165165
This event indicates that a ticket has been closed or resolved within some ticketing system.
166166

167-
- Event Type: __`dev.cdevents.ticket.closed.0.1.0-draft`__
167+
- Event Type: __`dev.cdevents.ticket.closed.0.1.0`__
168168
- Predicate: closed
169169
- Subject: [`ticket`](#ticket)
170170

core.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Due the dynamic nature of Pipelines, most of actual work needs to be queued to
6868
happen in a distributed way, hence queued events are added. Adopters can choose
6969
to ignore these events if they don't apply to their use cases.
7070

71-
- Event Type: __`dev.cdevents.pipelinerun.queued.0.2.0-draft`__
71+
- Event Type: __`dev.cdevents.pipelinerun.queued.0.2.0`__
7272
- Predicate: queued
7373
- Subject: [`pipelineRun`](#pipelinerun)
7474

@@ -84,7 +84,7 @@ to ignore these events if they don't apply to their use cases.
8484

8585
A pipelineRun has started and it is running.
8686

87-
- Event Type: __`dev.cdevents.pipelinerun.started.0.2.0-draft`__
87+
- Event Type: __`dev.cdevents.pipelinerun.started.0.2.0`__
8888
- Predicate: started
8989
- Subject: [`pipelineRun`](#pipelinerun)
9090

@@ -100,7 +100,7 @@ A pipelineRun has started and it is running.
100100

101101
A pipelineRun has finished, successfully or not.
102102

103-
- Event Type: __`dev.cdevents.pipelinerun.finished.0.2.0-draft`__
103+
- Event Type: __`dev.cdevents.pipelinerun.finished.0.2.0`__
104104
- Predicate: finished
105105
- Subject: [`pipelineRun`](#pipelinerun)
106106

@@ -118,7 +118,7 @@ A pipelineRun has finished, successfully or not.
118118

119119
A taskRun has started and it is running.
120120

121-
- Event Type: __`dev.cdevents.taskrun.started.0.2.0-draft`__
121+
- Event Type: __`dev.cdevents.taskrun.started.0.2.0`__
122122
- Predicate: started
123123
- Subject: [`taskRun`](#taskrun)
124124

@@ -135,7 +135,7 @@ A taskRun has started and it is running.
135135

136136
A taskRun has finished, successfully or not.
137137

138-
- Event Type: __`dev.cdevents.taskrun.finished.0.2.0-draft`__
138+
- Event Type: __`dev.cdevents.taskrun.finished.0.2.0`__
139139
- Predicate: finished
140140
- Subject: [`taskRun`](#taskrun)
141141

custom/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"$id": "https://cdevents.dev/0.4.0-draft/schema/custom",
3+
"$id": "https://cdevents.dev/0.4.0/schema/custom",
44
"properties": {
55
"context": {
66
"properties": {

examples/artifact_deleted.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"context": {
3-
"version": "0.4.0-draft",
3+
"version": "0.4.0",
44
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
55
"source": "/event/source/123",
6-
"type": "dev.cdevents.artifact.deleted.0.1.0-draft",
6+
"type": "dev.cdevents.artifact.deleted.0.1.0",
77
"timestamp": "2023-03-20T14:27:05.315384Z",
88
"schemaUri": "https://myorg.com/schema/custom"
99
},

examples/artifact_downloaded.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"context": {
3-
"version": "0.4.0-draft",
3+
"version": "0.4.0",
44
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
55
"source": "/event/source/123",
6-
"type": "dev.cdevents.artifact.downloaded.0.1.0-draft",
6+
"type": "dev.cdevents.artifact.downloaded.0.1.0",
77
"timestamp": "2023-03-20T14:27:05.315384Z",
88
"schemaUri": "https://myorg.com/schema/custom"
99
},

examples/artifact_packaged.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"context": {
3-
"version": "0.4.0-draft",
3+
"version": "0.4.0",
44
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
55
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
66
"source": "/event/source/123",
7-
"type": "dev.cdevents.artifact.packaged.0.2.0-draft",
7+
"type": "dev.cdevents.artifact.packaged.0.2.0",
88
"timestamp": "2023-03-20T14:27:05.315384Z",
99
"schemaUri": "https://myorg.com/schema/custom"
1010
},

examples/artifact_published.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"context": {
3-
"version": "0.4.0-draft",
3+
"version": "0.4.0",
44
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
55
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
66
"source": "/event/source/123",
7-
"type": "dev.cdevents.artifact.published.0.2.0-draft",
7+
"type": "dev.cdevents.artifact.published.0.2.0",
88
"timestamp": "2023-03-20T14:27:05.315384Z",
99
"schemaUri": "https://myorg.com/schema/custom"
1010
},

examples/artifact_signed.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"context": {
3-
"version": "0.4.0-draft",
3+
"version": "0.4.0",
44
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
55
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
66
"source": "/event/source/123",
7-
"type": "dev.cdevents.artifact.signed.0.2.0-draft",
7+
"type": "dev.cdevents.artifact.signed.0.2.0",
88
"timestamp": "2023-03-20T14:27:05.315384Z",
99
"schemaUri": "https://myorg.com/schema/custom"
1010
},

0 commit comments

Comments
 (0)