pulumi-docker-build 0.1.0a1723160793__tar.gz → 0.1.0a1723582330__tar.gz

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.

Potentially problematic release.


This version of pulumi-docker-build might be problematic. Click here for more details.

Files changed (22) hide show
  1. {pulumi_docker_build-0.1.0a1723160793 → pulumi_docker_build-0.1.0a1723582330}/PKG-INFO +1 -1
  2. {pulumi_docker_build-0.1.0a1723160793 → pulumi_docker_build-0.1.0a1723582330}/pulumi_docker_build/image.py +174 -174
  3. {pulumi_docker_build-0.1.0a1723160793 → pulumi_docker_build-0.1.0a1723582330}/pulumi_docker_build/index.py +56 -56
  4. {pulumi_docker_build-0.1.0a1723160793 → pulumi_docker_build-0.1.0a1723582330}/pulumi_docker_build/pulumi-plugin.json +1 -1
  5. {pulumi_docker_build-0.1.0a1723160793 → pulumi_docker_build-0.1.0a1723582330}/pulumi_docker_build.egg-info/PKG-INFO +1 -1
  6. {pulumi_docker_build-0.1.0a1723160793 → pulumi_docker_build-0.1.0a1723582330}/pyproject.toml +1 -1
  7. {pulumi_docker_build-0.1.0a1723160793 → pulumi_docker_build-0.1.0a1723582330}/README.md +0 -0
  8. {pulumi_docker_build-0.1.0a1723160793 → pulumi_docker_build-0.1.0a1723582330}/pulumi_docker_build/__init__.py +0 -0
  9. {pulumi_docker_build-0.1.0a1723160793 → pulumi_docker_build-0.1.0a1723582330}/pulumi_docker_build/_enums.py +0 -0
  10. {pulumi_docker_build-0.1.0a1723160793 → pulumi_docker_build-0.1.0a1723582330}/pulumi_docker_build/_inputs.py +0 -0
  11. {pulumi_docker_build-0.1.0a1723160793 → pulumi_docker_build-0.1.0a1723582330}/pulumi_docker_build/_utilities.py +0 -0
  12. {pulumi_docker_build-0.1.0a1723160793 → pulumi_docker_build-0.1.0a1723582330}/pulumi_docker_build/config/__init__.py +0 -0
  13. {pulumi_docker_build-0.1.0a1723160793 → pulumi_docker_build-0.1.0a1723582330}/pulumi_docker_build/config/__init__.pyi +0 -0
  14. {pulumi_docker_build-0.1.0a1723160793 → pulumi_docker_build-0.1.0a1723582330}/pulumi_docker_build/config/vars.py +0 -0
  15. {pulumi_docker_build-0.1.0a1723160793 → pulumi_docker_build-0.1.0a1723582330}/pulumi_docker_build/outputs.py +0 -0
  16. {pulumi_docker_build-0.1.0a1723160793 → pulumi_docker_build-0.1.0a1723582330}/pulumi_docker_build/provider.py +0 -0
  17. {pulumi_docker_build-0.1.0a1723160793 → pulumi_docker_build-0.1.0a1723582330}/pulumi_docker_build/py.typed +0 -0
  18. {pulumi_docker_build-0.1.0a1723160793 → pulumi_docker_build-0.1.0a1723582330}/pulumi_docker_build.egg-info/SOURCES.txt +0 -0
  19. {pulumi_docker_build-0.1.0a1723160793 → pulumi_docker_build-0.1.0a1723582330}/pulumi_docker_build.egg-info/dependency_links.txt +0 -0
  20. {pulumi_docker_build-0.1.0a1723160793 → pulumi_docker_build-0.1.0a1723582330}/pulumi_docker_build.egg-info/requires.txt +0 -0
  21. {pulumi_docker_build-0.1.0a1723160793 → pulumi_docker_build-0.1.0a1723582330}/pulumi_docker_build.egg-info/top_level.txt +0 -0
  22. {pulumi_docker_build-0.1.0a1723160793 → pulumi_docker_build-0.1.0a1723582330}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_docker_build
3
- Version: 0.1.0a1723160793
3
+ Version: 0.1.0a1723582330
4
4
  Summary: A Pulumi provider for building modern Docker images with buildx and BuildKit.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.com
@@ -718,27 +718,27 @@ class Image(pulumi.CustomResource):
718
718
  ecr_repository = aws.ecr.Repository("ecr-repository")
719
719
  auth_token = aws.ecr.get_authorization_token_output(registry_id=ecr_repository.registry_id)
720
720
  my_image = docker_build.Image("my-image",
721
- cache_from=[docker_build.CacheFromArgs(
722
- registry=docker_build.CacheFromRegistryArgs(
723
- ref=ecr_repository.repository_url.apply(lambda repository_url: f"{repository_url}:cache"),
724
- ),
725
- )],
726
- cache_to=[docker_build.CacheToArgs(
727
- registry=docker_build.CacheToRegistryArgs(
728
- image_manifest=True,
729
- oci_media_types=True,
730
- ref=ecr_repository.repository_url.apply(lambda repository_url: f"{repository_url}:cache"),
731
- ),
732
- )],
733
- context=docker_build.BuildContextArgs(
734
- location="./app",
735
- ),
721
+ cache_from=[{
722
+ "registry": {
723
+ "ref": ecr_repository.repository_url.apply(lambda repository_url: f"{repository_url}:cache"),
724
+ },
725
+ }],
726
+ cache_to=[{
727
+ "registry": {
728
+ "image_manifest": True,
729
+ "oci_media_types": True,
730
+ "ref": ecr_repository.repository_url.apply(lambda repository_url: f"{repository_url}:cache"),
731
+ },
732
+ }],
733
+ context={
734
+ "location": "./app",
735
+ },
736
736
  push=True,
737
- registries=[docker_build.RegistryArgs(
738
- address=ecr_repository.repository_url,
739
- password=auth_token.password,
740
- username=auth_token.user_name,
741
- )],
737
+ registries=[{
738
+ "address": ecr_repository.repository_url,
739
+ "password": auth_token.password,
740
+ "username": auth_token.user_name,
741
+ }],
742
742
  tags=[ecr_repository.repository_url.apply(lambda repository_url: f"{repository_url}:latest")])
743
743
  pulumi.export("ref", my_image.ref)
744
744
  ```
@@ -748,9 +748,9 @@ class Image(pulumi.CustomResource):
748
748
  import pulumi_docker_build as docker_build
749
749
 
750
750
  image = docker_build.Image("image",
751
- context=docker_build.BuildContextArgs(
752
- location="app",
753
- ),
751
+ context={
752
+ "location": "app",
753
+ },
754
754
  platforms=[
755
755
  docker_build.Platform.PLAN9_AMD64,
756
756
  docker_build.Platform.PLAN9_386,
@@ -763,15 +763,15 @@ class Image(pulumi.CustomResource):
763
763
  import pulumi_docker_build as docker_build
764
764
 
765
765
  image = docker_build.Image("image",
766
- context=docker_build.BuildContextArgs(
767
- location="app",
768
- ),
766
+ context={
767
+ "location": "app",
768
+ },
769
769
  push=True,
770
- registries=[docker_build.RegistryArgs(
771
- address="docker.io",
772
- password=docker_hub_password,
773
- username="pulumibot",
774
- )],
770
+ registries=[{
771
+ "address": "docker.io",
772
+ "password": docker_hub_password,
773
+ "username": "pulumibot",
774
+ }],
775
775
  tags=["docker.io/pulumi/pulumi:3.107.0"])
776
776
  pulumi.export("ref", my_image["ref"])
777
777
  ```
@@ -781,20 +781,20 @@ class Image(pulumi.CustomResource):
781
781
  import pulumi_docker_build as docker_build
782
782
 
783
783
  image = docker_build.Image("image",
784
- cache_from=[docker_build.CacheFromArgs(
785
- local=docker_build.CacheFromLocalArgs(
786
- src="tmp/cache",
787
- ),
788
- )],
789
- cache_to=[docker_build.CacheToArgs(
790
- local=docker_build.CacheToLocalArgs(
791
- dest="tmp/cache",
792
- mode=docker_build.CacheMode.MAX,
793
- ),
794
- )],
795
- context=docker_build.BuildContextArgs(
796
- location="app",
797
- ),
784
+ cache_from=[{
785
+ "local": {
786
+ "src": "tmp/cache",
787
+ },
788
+ }],
789
+ cache_to=[{
790
+ "local": {
791
+ "dest": "tmp/cache",
792
+ "mode": docker_build.CacheMode.MAX,
793
+ },
794
+ }],
795
+ context={
796
+ "location": "app",
797
+ },
798
798
  push=False)
799
799
  ```
800
800
  ### Docker Build Cloud
@@ -803,12 +803,12 @@ class Image(pulumi.CustomResource):
803
803
  import pulumi_docker_build as docker_build
804
804
 
805
805
  image = docker_build.Image("image",
806
- builder=docker_build.BuilderConfigArgs(
807
- name="cloud-builder-name",
808
- ),
809
- context=docker_build.BuildContextArgs(
810
- location="app",
811
- ),
806
+ builder={
807
+ "name": "cloud-builder-name",
808
+ },
809
+ context={
810
+ "location": "app",
811
+ },
812
812
  exec_=True,
813
813
  push=False)
814
814
  ```
@@ -821,9 +821,9 @@ class Image(pulumi.CustomResource):
821
821
  build_args={
822
822
  "SET_ME_TO_TRUE": "true",
823
823
  },
824
- context=docker_build.BuildContextArgs(
825
- location="app",
826
- ),
824
+ context={
825
+ "location": "app",
826
+ },
827
827
  push=False)
828
828
  ```
829
829
  ### Build target
@@ -832,9 +832,9 @@ class Image(pulumi.CustomResource):
832
832
  import pulumi_docker_build as docker_build
833
833
 
834
834
  image = docker_build.Image("image",
835
- context=docker_build.BuildContextArgs(
836
- location="app",
837
- ),
835
+ context={
836
+ "location": "app",
837
+ },
838
838
  push=False,
839
839
  target="build-me")
840
840
  ```
@@ -844,14 +844,14 @@ class Image(pulumi.CustomResource):
844
844
  import pulumi_docker_build as docker_build
845
845
 
846
846
  image = docker_build.Image("image",
847
- context=docker_build.BuildContextArgs(
848
- location="app",
849
- named={
850
- "golang:latest": docker_build.ContextArgs(
851
- location="docker-image://golang@sha256:b8e62cf593cdaff36efd90aa3a37de268e6781a2e68c6610940c48f7cdf36984",
852
- ),
847
+ context={
848
+ "location": "app",
849
+ "named": {
850
+ "golang_latest": {
851
+ "location": "docker-image://golang@sha256:b8e62cf593cdaff36efd90aa3a37de268e6781a2e68c6610940c48f7cdf36984",
852
+ },
853
853
  },
854
- ),
854
+ },
855
855
  push=False)
856
856
  ```
857
857
  ### Remote context
@@ -860,9 +860,9 @@ class Image(pulumi.CustomResource):
860
860
  import pulumi_docker_build as docker_build
861
861
 
862
862
  image = docker_build.Image("image",
863
- context=docker_build.BuildContextArgs(
864
- location="https://raw.githubusercontent.com/pulumi/pulumi-docker/api-types/provider/testdata/Dockerfile",
865
- ),
863
+ context={
864
+ "location": "https://raw.githubusercontent.com/pulumi/pulumi-docker/api-types/provider/testdata/Dockerfile",
865
+ },
866
866
  push=False)
867
867
  ```
868
868
  ### Inline Dockerfile
@@ -871,14 +871,14 @@ class Image(pulumi.CustomResource):
871
871
  import pulumi_docker_build as docker_build
872
872
 
873
873
  image = docker_build.Image("image",
874
- context=docker_build.BuildContextArgs(
875
- location="app",
876
- ),
877
- dockerfile=docker_build.DockerfileArgs(
878
- inline=\"\"\"FROM busybox
874
+ context={
875
+ "location": "app",
876
+ },
877
+ dockerfile={
878
+ "inline": \"\"\"FROM busybox
879
879
  COPY hello.c ./
880
880
  \"\"\",
881
- ),
881
+ },
882
882
  push=False)
883
883
  ```
884
884
  ### Remote context
@@ -887,12 +887,12 @@ class Image(pulumi.CustomResource):
887
887
  import pulumi_docker_build as docker_build
888
888
 
889
889
  image = docker_build.Image("image",
890
- context=docker_build.BuildContextArgs(
891
- location="https://github.com/docker-library/hello-world.git",
892
- ),
893
- dockerfile=docker_build.DockerfileArgs(
894
- location="app/Dockerfile",
895
- ),
890
+ context={
891
+ "location": "https://github.com/docker-library/hello-world.git",
892
+ },
893
+ dockerfile={
894
+ "location": "app/Dockerfile",
895
+ },
896
896
  push=False)
897
897
  ```
898
898
  ### Local export
@@ -901,14 +901,14 @@ class Image(pulumi.CustomResource):
901
901
  import pulumi_docker_build as docker_build
902
902
 
903
903
  image = docker_build.Image("image",
904
- context=docker_build.BuildContextArgs(
905
- location="app",
906
- ),
907
- exports=[docker_build.ExportArgs(
908
- docker=docker_build.ExportDockerArgs(
909
- tar=True,
910
- ),
911
- )],
904
+ context={
905
+ "location": "app",
906
+ },
907
+ exports=[{
908
+ "docker": {
909
+ "tar": True,
910
+ },
911
+ }],
912
912
  push=False)
913
913
  ```
914
914
 
@@ -1156,27 +1156,27 @@ class Image(pulumi.CustomResource):
1156
1156
  ecr_repository = aws.ecr.Repository("ecr-repository")
1157
1157
  auth_token = aws.ecr.get_authorization_token_output(registry_id=ecr_repository.registry_id)
1158
1158
  my_image = docker_build.Image("my-image",
1159
- cache_from=[docker_build.CacheFromArgs(
1160
- registry=docker_build.CacheFromRegistryArgs(
1161
- ref=ecr_repository.repository_url.apply(lambda repository_url: f"{repository_url}:cache"),
1162
- ),
1163
- )],
1164
- cache_to=[docker_build.CacheToArgs(
1165
- registry=docker_build.CacheToRegistryArgs(
1166
- image_manifest=True,
1167
- oci_media_types=True,
1168
- ref=ecr_repository.repository_url.apply(lambda repository_url: f"{repository_url}:cache"),
1169
- ),
1170
- )],
1171
- context=docker_build.BuildContextArgs(
1172
- location="./app",
1173
- ),
1159
+ cache_from=[{
1160
+ "registry": {
1161
+ "ref": ecr_repository.repository_url.apply(lambda repository_url: f"{repository_url}:cache"),
1162
+ },
1163
+ }],
1164
+ cache_to=[{
1165
+ "registry": {
1166
+ "image_manifest": True,
1167
+ "oci_media_types": True,
1168
+ "ref": ecr_repository.repository_url.apply(lambda repository_url: f"{repository_url}:cache"),
1169
+ },
1170
+ }],
1171
+ context={
1172
+ "location": "./app",
1173
+ },
1174
1174
  push=True,
1175
- registries=[docker_build.RegistryArgs(
1176
- address=ecr_repository.repository_url,
1177
- password=auth_token.password,
1178
- username=auth_token.user_name,
1179
- )],
1175
+ registries=[{
1176
+ "address": ecr_repository.repository_url,
1177
+ "password": auth_token.password,
1178
+ "username": auth_token.user_name,
1179
+ }],
1180
1180
  tags=[ecr_repository.repository_url.apply(lambda repository_url: f"{repository_url}:latest")])
1181
1181
  pulumi.export("ref", my_image.ref)
1182
1182
  ```
@@ -1186,9 +1186,9 @@ class Image(pulumi.CustomResource):
1186
1186
  import pulumi_docker_build as docker_build
1187
1187
 
1188
1188
  image = docker_build.Image("image",
1189
- context=docker_build.BuildContextArgs(
1190
- location="app",
1191
- ),
1189
+ context={
1190
+ "location": "app",
1191
+ },
1192
1192
  platforms=[
1193
1193
  docker_build.Platform.PLAN9_AMD64,
1194
1194
  docker_build.Platform.PLAN9_386,
@@ -1201,15 +1201,15 @@ class Image(pulumi.CustomResource):
1201
1201
  import pulumi_docker_build as docker_build
1202
1202
 
1203
1203
  image = docker_build.Image("image",
1204
- context=docker_build.BuildContextArgs(
1205
- location="app",
1206
- ),
1204
+ context={
1205
+ "location": "app",
1206
+ },
1207
1207
  push=True,
1208
- registries=[docker_build.RegistryArgs(
1209
- address="docker.io",
1210
- password=docker_hub_password,
1211
- username="pulumibot",
1212
- )],
1208
+ registries=[{
1209
+ "address": "docker.io",
1210
+ "password": docker_hub_password,
1211
+ "username": "pulumibot",
1212
+ }],
1213
1213
  tags=["docker.io/pulumi/pulumi:3.107.0"])
1214
1214
  pulumi.export("ref", my_image["ref"])
1215
1215
  ```
@@ -1219,20 +1219,20 @@ class Image(pulumi.CustomResource):
1219
1219
  import pulumi_docker_build as docker_build
1220
1220
 
1221
1221
  image = docker_build.Image("image",
1222
- cache_from=[docker_build.CacheFromArgs(
1223
- local=docker_build.CacheFromLocalArgs(
1224
- src="tmp/cache",
1225
- ),
1226
- )],
1227
- cache_to=[docker_build.CacheToArgs(
1228
- local=docker_build.CacheToLocalArgs(
1229
- dest="tmp/cache",
1230
- mode=docker_build.CacheMode.MAX,
1231
- ),
1232
- )],
1233
- context=docker_build.BuildContextArgs(
1234
- location="app",
1235
- ),
1222
+ cache_from=[{
1223
+ "local": {
1224
+ "src": "tmp/cache",
1225
+ },
1226
+ }],
1227
+ cache_to=[{
1228
+ "local": {
1229
+ "dest": "tmp/cache",
1230
+ "mode": docker_build.CacheMode.MAX,
1231
+ },
1232
+ }],
1233
+ context={
1234
+ "location": "app",
1235
+ },
1236
1236
  push=False)
1237
1237
  ```
1238
1238
  ### Docker Build Cloud
@@ -1241,12 +1241,12 @@ class Image(pulumi.CustomResource):
1241
1241
  import pulumi_docker_build as docker_build
1242
1242
 
1243
1243
  image = docker_build.Image("image",
1244
- builder=docker_build.BuilderConfigArgs(
1245
- name="cloud-builder-name",
1246
- ),
1247
- context=docker_build.BuildContextArgs(
1248
- location="app",
1249
- ),
1244
+ builder={
1245
+ "name": "cloud-builder-name",
1246
+ },
1247
+ context={
1248
+ "location": "app",
1249
+ },
1250
1250
  exec_=True,
1251
1251
  push=False)
1252
1252
  ```
@@ -1259,9 +1259,9 @@ class Image(pulumi.CustomResource):
1259
1259
  build_args={
1260
1260
  "SET_ME_TO_TRUE": "true",
1261
1261
  },
1262
- context=docker_build.BuildContextArgs(
1263
- location="app",
1264
- ),
1262
+ context={
1263
+ "location": "app",
1264
+ },
1265
1265
  push=False)
1266
1266
  ```
1267
1267
  ### Build target
@@ -1270,9 +1270,9 @@ class Image(pulumi.CustomResource):
1270
1270
  import pulumi_docker_build as docker_build
1271
1271
 
1272
1272
  image = docker_build.Image("image",
1273
- context=docker_build.BuildContextArgs(
1274
- location="app",
1275
- ),
1273
+ context={
1274
+ "location": "app",
1275
+ },
1276
1276
  push=False,
1277
1277
  target="build-me")
1278
1278
  ```
@@ -1282,14 +1282,14 @@ class Image(pulumi.CustomResource):
1282
1282
  import pulumi_docker_build as docker_build
1283
1283
 
1284
1284
  image = docker_build.Image("image",
1285
- context=docker_build.BuildContextArgs(
1286
- location="app",
1287
- named={
1288
- "golang:latest": docker_build.ContextArgs(
1289
- location="docker-image://golang@sha256:b8e62cf593cdaff36efd90aa3a37de268e6781a2e68c6610940c48f7cdf36984",
1290
- ),
1285
+ context={
1286
+ "location": "app",
1287
+ "named": {
1288
+ "golang_latest": {
1289
+ "location": "docker-image://golang@sha256:b8e62cf593cdaff36efd90aa3a37de268e6781a2e68c6610940c48f7cdf36984",
1290
+ },
1291
1291
  },
1292
- ),
1292
+ },
1293
1293
  push=False)
1294
1294
  ```
1295
1295
  ### Remote context
@@ -1298,9 +1298,9 @@ class Image(pulumi.CustomResource):
1298
1298
  import pulumi_docker_build as docker_build
1299
1299
 
1300
1300
  image = docker_build.Image("image",
1301
- context=docker_build.BuildContextArgs(
1302
- location="https://raw.githubusercontent.com/pulumi/pulumi-docker/api-types/provider/testdata/Dockerfile",
1303
- ),
1301
+ context={
1302
+ "location": "https://raw.githubusercontent.com/pulumi/pulumi-docker/api-types/provider/testdata/Dockerfile",
1303
+ },
1304
1304
  push=False)
1305
1305
  ```
1306
1306
  ### Inline Dockerfile
@@ -1309,14 +1309,14 @@ class Image(pulumi.CustomResource):
1309
1309
  import pulumi_docker_build as docker_build
1310
1310
 
1311
1311
  image = docker_build.Image("image",
1312
- context=docker_build.BuildContextArgs(
1313
- location="app",
1314
- ),
1315
- dockerfile=docker_build.DockerfileArgs(
1316
- inline=\"\"\"FROM busybox
1312
+ context={
1313
+ "location": "app",
1314
+ },
1315
+ dockerfile={
1316
+ "inline": \"\"\"FROM busybox
1317
1317
  COPY hello.c ./
1318
1318
  \"\"\",
1319
- ),
1319
+ },
1320
1320
  push=False)
1321
1321
  ```
1322
1322
  ### Remote context
@@ -1325,12 +1325,12 @@ class Image(pulumi.CustomResource):
1325
1325
  import pulumi_docker_build as docker_build
1326
1326
 
1327
1327
  image = docker_build.Image("image",
1328
- context=docker_build.BuildContextArgs(
1329
- location="https://github.com/docker-library/hello-world.git",
1330
- ),
1331
- dockerfile=docker_build.DockerfileArgs(
1332
- location="app/Dockerfile",
1333
- ),
1328
+ context={
1329
+ "location": "https://github.com/docker-library/hello-world.git",
1330
+ },
1331
+ dockerfile={
1332
+ "location": "app/Dockerfile",
1333
+ },
1334
1334
  push=False)
1335
1335
  ```
1336
1336
  ### Local export
@@ -1339,14 +1339,14 @@ class Image(pulumi.CustomResource):
1339
1339
  import pulumi_docker_build as docker_build
1340
1340
 
1341
1341
  image = docker_build.Image("image",
1342
- context=docker_build.BuildContextArgs(
1343
- location="app",
1344
- ),
1345
- exports=[docker_build.ExportArgs(
1346
- docker=docker_build.ExportDockerArgs(
1347
- tar=True,
1348
- ),
1349
- )],
1342
+ context={
1343
+ "location": "app",
1344
+ },
1345
+ exports=[{
1346
+ "docker": {
1347
+ "tar": True,
1348
+ },
1349
+ }],
1350
1350
  push=False)
1351
1351
  ```
1352
1352
 
@@ -131,37 +131,37 @@ class Index(pulumi.CustomResource):
131
131
  import pulumi_docker_build as docker_build
132
132
 
133
133
  amd64 = docker_build.Image("amd64",
134
- cache_from=[docker_build.CacheFromArgs(
135
- registry=docker_build.CacheFromRegistryArgs(
136
- ref="docker.io/pulumi/pulumi:cache-amd64",
137
- ),
138
- )],
139
- cache_to=[docker_build.CacheToArgs(
140
- registry=docker_build.CacheToRegistryArgs(
141
- mode=docker_build.CacheMode.MAX,
142
- ref="docker.io/pulumi/pulumi:cache-amd64",
143
- ),
144
- )],
145
- context=docker_build.BuildContextArgs(
146
- location="app",
147
- ),
134
+ cache_from=[{
135
+ "registry": {
136
+ "ref": "docker.io/pulumi/pulumi:cache-amd64",
137
+ },
138
+ }],
139
+ cache_to=[{
140
+ "registry": {
141
+ "mode": docker_build.CacheMode.MAX,
142
+ "ref": "docker.io/pulumi/pulumi:cache-amd64",
143
+ },
144
+ }],
145
+ context={
146
+ "location": "app",
147
+ },
148
148
  platforms=[docker_build.Platform.LINUX_AMD64],
149
149
  tags=["docker.io/pulumi/pulumi:3.107.0-amd64"])
150
150
  arm64 = docker_build.Image("arm64",
151
- cache_from=[docker_build.CacheFromArgs(
152
- registry=docker_build.CacheFromRegistryArgs(
153
- ref="docker.io/pulumi/pulumi:cache-arm64",
154
- ),
155
- )],
156
- cache_to=[docker_build.CacheToArgs(
157
- registry=docker_build.CacheToRegistryArgs(
158
- mode=docker_build.CacheMode.MAX,
159
- ref="docker.io/pulumi/pulumi:cache-arm64",
160
- ),
161
- )],
162
- context=docker_build.BuildContextArgs(
163
- location="app",
164
- ),
151
+ cache_from=[{
152
+ "registry": {
153
+ "ref": "docker.io/pulumi/pulumi:cache-arm64",
154
+ },
155
+ }],
156
+ cache_to=[{
157
+ "registry": {
158
+ "mode": docker_build.CacheMode.MAX,
159
+ "ref": "docker.io/pulumi/pulumi:cache-arm64",
160
+ },
161
+ }],
162
+ context={
163
+ "location": "app",
164
+ },
165
165
  platforms=[docker_build.Platform.LINUX_ARM64],
166
166
  tags=["docker.io/pulumi/pulumi:3.107.0-arm64"])
167
167
  index = docker_build.Index("index",
@@ -218,37 +218,37 @@ class Index(pulumi.CustomResource):
218
218
  import pulumi_docker_build as docker_build
219
219
 
220
220
  amd64 = docker_build.Image("amd64",
221
- cache_from=[docker_build.CacheFromArgs(
222
- registry=docker_build.CacheFromRegistryArgs(
223
- ref="docker.io/pulumi/pulumi:cache-amd64",
224
- ),
225
- )],
226
- cache_to=[docker_build.CacheToArgs(
227
- registry=docker_build.CacheToRegistryArgs(
228
- mode=docker_build.CacheMode.MAX,
229
- ref="docker.io/pulumi/pulumi:cache-amd64",
230
- ),
231
- )],
232
- context=docker_build.BuildContextArgs(
233
- location="app",
234
- ),
221
+ cache_from=[{
222
+ "registry": {
223
+ "ref": "docker.io/pulumi/pulumi:cache-amd64",
224
+ },
225
+ }],
226
+ cache_to=[{
227
+ "registry": {
228
+ "mode": docker_build.CacheMode.MAX,
229
+ "ref": "docker.io/pulumi/pulumi:cache-amd64",
230
+ },
231
+ }],
232
+ context={
233
+ "location": "app",
234
+ },
235
235
  platforms=[docker_build.Platform.LINUX_AMD64],
236
236
  tags=["docker.io/pulumi/pulumi:3.107.0-amd64"])
237
237
  arm64 = docker_build.Image("arm64",
238
- cache_from=[docker_build.CacheFromArgs(
239
- registry=docker_build.CacheFromRegistryArgs(
240
- ref="docker.io/pulumi/pulumi:cache-arm64",
241
- ),
242
- )],
243
- cache_to=[docker_build.CacheToArgs(
244
- registry=docker_build.CacheToRegistryArgs(
245
- mode=docker_build.CacheMode.MAX,
246
- ref="docker.io/pulumi/pulumi:cache-arm64",
247
- ),
248
- )],
249
- context=docker_build.BuildContextArgs(
250
- location="app",
251
- ),
238
+ cache_from=[{
239
+ "registry": {
240
+ "ref": "docker.io/pulumi/pulumi:cache-arm64",
241
+ },
242
+ }],
243
+ cache_to=[{
244
+ "registry": {
245
+ "mode": docker_build.CacheMode.MAX,
246
+ "ref": "docker.io/pulumi/pulumi:cache-arm64",
247
+ },
248
+ }],
249
+ context={
250
+ "location": "app",
251
+ },
252
252
  platforms=[docker_build.Platform.LINUX_ARM64],
253
253
  tags=["docker.io/pulumi/pulumi:3.107.0-arm64"])
254
254
  index = docker_build.Index("index",
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "docker-build",
4
- "version": "0.1.0-alpha.1723160793"
4
+ "version": "0.1.0-alpha.1723582330"
5
5
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_docker_build
3
- Version: 0.1.0a1723160793
3
+ Version: 0.1.0a1723582330
4
4
  Summary: A Pulumi provider for building modern Docker images with buildx and BuildKit.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.com
@@ -5,7 +5,7 @@
5
5
  keywords = ["docker", "buildkit", "buildx", "kind/native"]
6
6
  readme = "README.md"
7
7
  requires-python = ">=3.8"
8
- version = "0.1.0a1723160793"
8
+ version = "0.1.0a1723582330"
9
9
  [project.license]
10
10
  text = "Apache-2.0"
11
11
  [project.urls]