Skip to content

Commit e05d10f

Browse files
authored
Merge pull request moby#3831 from jedevc/build-repro-policy-docs
docs: fixup build repro doc with updated policy format
2 parents b0c05cd + e611992 commit e05d10f

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

docs/build-repro.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,19 @@ An example `policy.json`:
1515
"rules": [
1616
{
1717
"action": "CONVERT",
18-
"source": {
19-
"type": "docker-image",
20-
"identifier": "docker.io/library/alpine:latest"
18+
"selector": {
19+
"identifier": "docker-image://docker.io/library/alpine:latest"
2120
},
22-
"destination": {
21+
"updates": {
2322
"identifier": "docker-image://docker.io/library/alpine:latest@sha256:4edbd2beb5f78b1014028f4fbb99f3237d9561100b6881aabbf5acce2c4f9454"
2423
}
2524
},
2625
{
2726
"action": "CONVERT",
28-
"source": {
29-
"type": "http",
27+
"selector": {
3028
"identifier": "https://raw.githubusercontent.com/moby/buildkit/v0.10.1/README.md"
3129
},
32-
"destination": {
30+
"updates": {
3331
"attrs": {"http.checksum": "sha256:6e4b94fc270e708e1068be28bd3551dc6917a4fc5a61293d51bb36e6b75c4b53"}
3432
}
3533
}

0 commit comments

Comments
 (0)