You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cloud Native Buildpacks set a `io.buildpacks.build.metadata` label on the images they create.
85
+
This labels points to json description of the [Bill-of-Materials, aka BOM](https://github.com/buildpacks/spec/blob/master/buildpack.md#bill-of-materials-toml) of the build.
86
+
In the BOM, under the `metadata.devmode.sync` key, Buildpacks that want to collaborate with Skaffold
87
+
have to output the sync rules based on their exploration of the source and the build process they had to apply to it.
88
+
Those sync rules will then be used by Skaffold without the user having to configure them manually.
56
89
57
-
- The first rule synchronizes the file `.filebaserc` to the `/etc` folder in the container.
58
-
- The second rule synchronizes all `html` files in the `static-html` folder into the `<WORKDIR>/static` folder in the container.
59
-
Note that this pattern does not match files in sub-folders below `static-html` (e.g. `static-html/a.html` but not `static-html/sub/a.html`).
60
-
- The third rule synchronizes all `png` files from any sub-folder into the `assets` folder on the container.
61
-
For example, `img.png` ↷ `assets/img.png` or `sub/img.png` ↷ `assets/sub/img.png`.
62
-
- The last rule synchronizes all `md` files below the `content/en` directory into the `content` folder on the container.
63
-
The `strip` directive ensures that only the directory hierarchy below `content/en` is re-created at the destination.
64
-
For example, `content/en/index.md` ↷ `content/index.md` or `content/en/sub/index.md` ↷ `content/sub/index.md`.
90
+
Another thing the Buildpacks have to do is support the `GOOGLE_DEVMODE` environment variable. Skaffold will
91
+
set it to `1` when running `skaffold dev` with sync configured to `auto: {}`. The Buildpacks can then use that
92
+
signal to change the way the application is built so that it reloads the changes or rebuilds the app on each change.
Copy file name to clipboardExpand all lines: docs/content/en/schemas/v2beta3.json
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1947,16 +1947,16 @@
1947
1947
"properties": {
1948
1948
"auto": {
1949
1949
"$ref": "#/definitions/Auto",
1950
-
"description": "delegates discovery of sync rules to the build system. Currently only available for jib.",
1951
-
"x-intellij-html-description": "delegates discovery of sync rules to the build system. Currently only available for jib."
1950
+
"description": "delegates discovery of sync rules to the build system. Only available for jib and buildpacks.",
1951
+
"x-intellij-html-description": "delegates discovery of sync rules to the build system. Only available for jib and buildpacks."
1952
1952
},
1953
1953
"infer": {
1954
1954
"items": {
1955
1955
"type": "string"
1956
1956
},
1957
1957
"type": "array",
1958
-
"description": "file patterns which may be synced into the container. The container destination is inferred by the builder. Currently only available for docker artifacts.",
1959
-
"x-intellij-html-description": "file patterns which may be synced into the container. The container destination is inferred by the builder. Currently only available for docker artifacts.",
1958
+
"description": "file patterns which may be synced into the container The container destination is inferred by the builder based on the instructions of a Dockerfile. Available for docker and kaniko artifacts and custom artifacts that declare dependencies on a dockerfile.",
1959
+
"x-intellij-html-description": "file patterns which may be synced into the container The container destination is inferred by the builder based on the instructions of a Dockerfile. Available for docker and kaniko artifacts and custom artifacts that declare dependencies on a dockerfile.",
0 commit comments