pulumi-docker 4.6.0b1__py3-none-any.whl → 4.6.0b3__py3-none-any.whl

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 might be problematic. Click here for more details.

@@ -14,30 +14,30 @@ __all__ = [
14
14
  'BuildContextArgs',
15
15
  'BuilderConfigArgs',
16
16
  'CacheFromAzureBlobArgs',
17
- 'CacheFromEntryArgs',
18
17
  'CacheFromGitHubActionsArgs',
19
18
  'CacheFromLocalArgs',
20
19
  'CacheFromRegistryArgs',
21
20
  'CacheFromS3Args',
22
- 'CacheInlineArgs',
21
+ 'CacheFromArgs',
23
22
  'CacheToAzureBlobArgs',
24
- 'CacheToEntryArgs',
25
23
  'CacheToGitHubActionsArgs',
24
+ 'CacheToInlineArgs',
26
25
  'CacheToLocalArgs',
27
26
  'CacheToRegistryArgs',
28
27
  'CacheToS3Args',
28
+ 'CacheToArgs',
29
29
  'ContextArgs',
30
30
  'DockerfileArgs',
31
+ 'ExportCacheOnlyArgs',
31
32
  'ExportDockerArgs',
32
- 'ExportEntryArgs',
33
33
  'ExportImageArgs',
34
34
  'ExportLocalArgs',
35
35
  'ExportOCIArgs',
36
36
  'ExportRegistryArgs',
37
37
  'ExportTarArgs',
38
- 'ManifestPlatformArgs',
39
- 'ManifestArgs',
38
+ 'ExportArgs',
40
39
  'RegistryAuthArgs',
40
+ 'SSHArgs',
41
41
  ]
42
42
 
43
43
  @pulumi.input_type
@@ -111,6 +111,8 @@ class BuilderConfigArgs:
111
111
 
112
112
  Only `docker-container`, `kubernetes`, or `remote` drivers are
113
113
  supported. The legacy `docker` driver is not supported.
114
+
115
+ Equivalent to Docker's `--builder` flag.
114
116
  """
115
117
  if name is not None:
116
118
  pulumi.set(__self__, "name", name)
@@ -123,6 +125,8 @@ class BuilderConfigArgs:
123
125
 
124
126
  Only `docker-container`, `kubernetes`, or `remote` drivers are
125
127
  supported. The legacy `docker` driver is not supported.
128
+
129
+ Equivalent to Docker's `--builder` flag.
126
130
  """
127
131
  return pulumi.get(self, "name")
128
132
 
@@ -185,139 +189,6 @@ class CacheFromAzureBlobArgs:
185
189
  pulumi.set(self, "secret_access_key", value)
186
190
 
187
191
 
188
- @pulumi.input_type
189
- class CacheFromEntryArgs:
190
- def __init__(__self__, *,
191
- azblob: Optional[pulumi.Input['CacheFromAzureBlobArgs']] = None,
192
- gha: Optional[pulumi.Input['CacheFromGitHubActionsArgs']] = None,
193
- inline: Optional[pulumi.Input['CacheInlineArgs']] = None,
194
- local: Optional[pulumi.Input['CacheFromLocalArgs']] = None,
195
- raw: Optional[pulumi.Input[str]] = None,
196
- registry: Optional[pulumi.Input['CacheFromRegistryArgs']] = None,
197
- s3: Optional[pulumi.Input['CacheFromS3Args']] = None):
198
- """
199
- :param pulumi.Input['CacheFromAzureBlobArgs'] azblob: Upload build caches to Azure's blob storage service.
200
- :param pulumi.Input['CacheFromGitHubActionsArgs'] gha: Recommended for use with GitHub Actions workflows.
201
-
202
- An action like `crazy-max/ghaction-github-runtime` is recommended to
203
- expose appropriate credentials to your GitHub workflow.
204
- :param pulumi.Input['CacheInlineArgs'] inline: The inline cache storage backend is the simplest implementation to get
205
- started with, but it does not handle multi-stage builds. Consider the
206
- registry cache backend instead.
207
- :param pulumi.Input['CacheFromLocalArgs'] local: A simple backend which caches images on your local filesystem.
208
- :param pulumi.Input[str] raw: A raw string as you would provide it to the Docker CLI (e.g.,
209
- `type=inline`).
210
- :param pulumi.Input['CacheFromRegistryArgs'] registry: Upload build caches to remote registries.
211
- :param pulumi.Input['CacheFromS3Args'] s3: Upload build caches to AWS S3 or an S3-compatible services such as
212
- MinIO.
213
- """
214
- if azblob is not None:
215
- pulumi.set(__self__, "azblob", azblob)
216
- if gha is not None:
217
- pulumi.set(__self__, "gha", gha)
218
- if inline is not None:
219
- pulumi.set(__self__, "inline", inline)
220
- if local is not None:
221
- pulumi.set(__self__, "local", local)
222
- if raw is not None:
223
- pulumi.set(__self__, "raw", raw)
224
- if registry is not None:
225
- pulumi.set(__self__, "registry", registry)
226
- if s3 is not None:
227
- pulumi.set(__self__, "s3", s3)
228
-
229
- @property
230
- @pulumi.getter
231
- def azblob(self) -> Optional[pulumi.Input['CacheFromAzureBlobArgs']]:
232
- """
233
- Upload build caches to Azure's blob storage service.
234
- """
235
- return pulumi.get(self, "azblob")
236
-
237
- @azblob.setter
238
- def azblob(self, value: Optional[pulumi.Input['CacheFromAzureBlobArgs']]):
239
- pulumi.set(self, "azblob", value)
240
-
241
- @property
242
- @pulumi.getter
243
- def gha(self) -> Optional[pulumi.Input['CacheFromGitHubActionsArgs']]:
244
- """
245
- Recommended for use with GitHub Actions workflows.
246
-
247
- An action like `crazy-max/ghaction-github-runtime` is recommended to
248
- expose appropriate credentials to your GitHub workflow.
249
- """
250
- return pulumi.get(self, "gha")
251
-
252
- @gha.setter
253
- def gha(self, value: Optional[pulumi.Input['CacheFromGitHubActionsArgs']]):
254
- pulumi.set(self, "gha", value)
255
-
256
- @property
257
- @pulumi.getter
258
- def inline(self) -> Optional[pulumi.Input['CacheInlineArgs']]:
259
- """
260
- The inline cache storage backend is the simplest implementation to get
261
- started with, but it does not handle multi-stage builds. Consider the
262
- registry cache backend instead.
263
- """
264
- return pulumi.get(self, "inline")
265
-
266
- @inline.setter
267
- def inline(self, value: Optional[pulumi.Input['CacheInlineArgs']]):
268
- pulumi.set(self, "inline", value)
269
-
270
- @property
271
- @pulumi.getter
272
- def local(self) -> Optional[pulumi.Input['CacheFromLocalArgs']]:
273
- """
274
- A simple backend which caches images on your local filesystem.
275
- """
276
- return pulumi.get(self, "local")
277
-
278
- @local.setter
279
- def local(self, value: Optional[pulumi.Input['CacheFromLocalArgs']]):
280
- pulumi.set(self, "local", value)
281
-
282
- @property
283
- @pulumi.getter
284
- def raw(self) -> Optional[pulumi.Input[str]]:
285
- """
286
- A raw string as you would provide it to the Docker CLI (e.g.,
287
- `type=inline`).
288
- """
289
- return pulumi.get(self, "raw")
290
-
291
- @raw.setter
292
- def raw(self, value: Optional[pulumi.Input[str]]):
293
- pulumi.set(self, "raw", value)
294
-
295
- @property
296
- @pulumi.getter
297
- def registry(self) -> Optional[pulumi.Input['CacheFromRegistryArgs']]:
298
- """
299
- Upload build caches to remote registries.
300
- """
301
- return pulumi.get(self, "registry")
302
-
303
- @registry.setter
304
- def registry(self, value: Optional[pulumi.Input['CacheFromRegistryArgs']]):
305
- pulumi.set(self, "registry", value)
306
-
307
- @property
308
- @pulumi.getter
309
- def s3(self) -> Optional[pulumi.Input['CacheFromS3Args']]:
310
- """
311
- Upload build caches to AWS S3 or an S3-compatible services such as
312
- MinIO.
313
- """
314
- return pulumi.get(self, "s3")
315
-
316
- @s3.setter
317
- def s3(self, value: Optional[pulumi.Input['CacheFromS3Args']]):
318
- pulumi.set(self, "s3", value)
319
-
320
-
321
192
  @pulumi.input_type
322
193
  class CacheFromGitHubActionsArgs:
323
194
  def __init__(__self__, *,
@@ -637,133 +508,35 @@ class CacheFromS3Args:
637
508
 
638
509
 
639
510
  @pulumi.input_type
640
- class CacheInlineArgs:
641
- def __init__(__self__):
642
- pass
643
-
644
-
645
- @pulumi.input_type
646
- class CacheToAzureBlobArgs:
511
+ class CacheFromArgs:
647
512
  def __init__(__self__, *,
648
- name: pulumi.Input[str],
649
- account_url: Optional[pulumi.Input[str]] = None,
650
- ignore_error: Optional[pulumi.Input[bool]] = None,
651
- mode: Optional[pulumi.Input['CacheMode']] = None,
652
- secret_access_key: Optional[pulumi.Input[str]] = None):
653
- """
654
- :param pulumi.Input[str] name: The name of the cache image.
655
- :param pulumi.Input[str] account_url: Base URL of the storage account.
656
- :param pulumi.Input[bool] ignore_error: Ignore errors caused by failed cache exports.
657
- :param pulumi.Input['CacheMode'] mode: The cache mode to use. Defaults to `min`.
658
- :param pulumi.Input[str] secret_access_key: Blob storage account key.
659
- """
660
- pulumi.set(__self__, "name", name)
661
- if account_url is not None:
662
- pulumi.set(__self__, "account_url", account_url)
663
- if ignore_error is None:
664
- ignore_error = False
665
- if ignore_error is not None:
666
- pulumi.set(__self__, "ignore_error", ignore_error)
667
- if mode is None:
668
- mode = 'min'
669
- if mode is not None:
670
- pulumi.set(__self__, "mode", mode)
671
- if secret_access_key is not None:
672
- pulumi.set(__self__, "secret_access_key", secret_access_key)
673
-
674
- @property
675
- @pulumi.getter
676
- def name(self) -> pulumi.Input[str]:
677
- """
678
- The name of the cache image.
679
- """
680
- return pulumi.get(self, "name")
681
-
682
- @name.setter
683
- def name(self, value: pulumi.Input[str]):
684
- pulumi.set(self, "name", value)
685
-
686
- @property
687
- @pulumi.getter(name="accountUrl")
688
- def account_url(self) -> Optional[pulumi.Input[str]]:
689
- """
690
- Base URL of the storage account.
691
- """
692
- return pulumi.get(self, "account_url")
693
-
694
- @account_url.setter
695
- def account_url(self, value: Optional[pulumi.Input[str]]):
696
- pulumi.set(self, "account_url", value)
697
-
698
- @property
699
- @pulumi.getter(name="ignoreError")
700
- def ignore_error(self) -> Optional[pulumi.Input[bool]]:
701
- """
702
- Ignore errors caused by failed cache exports.
703
- """
704
- return pulumi.get(self, "ignore_error")
705
-
706
- @ignore_error.setter
707
- def ignore_error(self, value: Optional[pulumi.Input[bool]]):
708
- pulumi.set(self, "ignore_error", value)
709
-
710
- @property
711
- @pulumi.getter
712
- def mode(self) -> Optional[pulumi.Input['CacheMode']]:
713
- """
714
- The cache mode to use. Defaults to `min`.
715
- """
716
- return pulumi.get(self, "mode")
717
-
718
- @mode.setter
719
- def mode(self, value: Optional[pulumi.Input['CacheMode']]):
720
- pulumi.set(self, "mode", value)
721
-
722
- @property
723
- @pulumi.getter(name="secretAccessKey")
724
- def secret_access_key(self) -> Optional[pulumi.Input[str]]:
725
- """
726
- Blob storage account key.
727
- """
728
- return pulumi.get(self, "secret_access_key")
729
-
730
- @secret_access_key.setter
731
- def secret_access_key(self, value: Optional[pulumi.Input[str]]):
732
- pulumi.set(self, "secret_access_key", value)
733
-
734
-
735
- @pulumi.input_type
736
- class CacheToEntryArgs:
737
- def __init__(__self__, *,
738
- azblob: Optional[pulumi.Input['CacheToAzureBlobArgs']] = None,
739
- gha: Optional[pulumi.Input['CacheToGitHubActionsArgs']] = None,
740
- inline: Optional[pulumi.Input['CacheInlineArgs']] = None,
741
- local: Optional[pulumi.Input['CacheToLocalArgs']] = None,
513
+ azblob: Optional[pulumi.Input['CacheFromAzureBlobArgs']] = None,
514
+ disabled: Optional[pulumi.Input[bool]] = None,
515
+ gha: Optional[pulumi.Input['CacheFromGitHubActionsArgs']] = None,
516
+ local: Optional[pulumi.Input['CacheFromLocalArgs']] = None,
742
517
  raw: Optional[pulumi.Input[str]] = None,
743
- registry: Optional[pulumi.Input['CacheToRegistryArgs']] = None,
744
- s3: Optional[pulumi.Input['CacheToS3Args']] = None):
518
+ registry: Optional[pulumi.Input['CacheFromRegistryArgs']] = None,
519
+ s3: Optional[pulumi.Input['CacheFromS3Args']] = None):
745
520
  """
746
- :param pulumi.Input['CacheToAzureBlobArgs'] azblob: Push cache to Azure's blob storage service.
747
- :param pulumi.Input['CacheToGitHubActionsArgs'] gha: Recommended for use with GitHub Actions workflows.
521
+ :param pulumi.Input['CacheFromAzureBlobArgs'] azblob: Upload build caches to Azure's blob storage service.
522
+ :param pulumi.Input[bool] disabled: When `true` this entry will be excluded. Defaults to `false`.
523
+ :param pulumi.Input['CacheFromGitHubActionsArgs'] gha: Recommended for use with GitHub Actions workflows.
748
524
 
749
525
  An action like `crazy-max/ghaction-github-runtime` is recommended to
750
526
  expose appropriate credentials to your GitHub workflow.
751
- :param pulumi.Input['CacheInlineArgs'] inline: The inline cache storage backend is the simplest implementation to get
752
- started with, but it does not handle multi-stage builds. Consider the
753
- `registry` cache backend instead.
754
- :param pulumi.Input['CacheToLocalArgs'] local: A simple backend which caches imagines on your local filesystem.
527
+ :param pulumi.Input['CacheFromLocalArgs'] local: A simple backend which caches images on your local filesystem.
755
528
  :param pulumi.Input[str] raw: A raw string as you would provide it to the Docker CLI (e.g.,
756
- `type=inline`)
757
- :param pulumi.Input['CacheToRegistryArgs'] registry: Push caches to remote registries. Incompatible with the `docker` build
758
- driver.
759
- :param pulumi.Input['CacheToS3Args'] s3: Push cache to AWS S3 or S3-compatible services such as MinIO.
529
+ `type=inline`).
530
+ :param pulumi.Input['CacheFromRegistryArgs'] registry: Upload build caches to remote registries.
531
+ :param pulumi.Input['CacheFromS3Args'] s3: Upload build caches to AWS S3 or an S3-compatible services such as
532
+ MinIO.
760
533
  """
761
534
  if azblob is not None:
762
535
  pulumi.set(__self__, "azblob", azblob)
536
+ if disabled is not None:
537
+ pulumi.set(__self__, "disabled", disabled)
763
538
  if gha is not None:
764
539
  pulumi.set(__self__, "gha", gha)
765
- if inline is not None:
766
- pulumi.set(__self__, "inline", inline)
767
540
  if local is not None:
768
541
  pulumi.set(__self__, "local", local)
769
542
  if raw is not None:
@@ -775,19 +548,31 @@ class CacheToEntryArgs:
775
548
 
776
549
  @property
777
550
  @pulumi.getter
778
- def azblob(self) -> Optional[pulumi.Input['CacheToAzureBlobArgs']]:
551
+ def azblob(self) -> Optional[pulumi.Input['CacheFromAzureBlobArgs']]:
779
552
  """
780
- Push cache to Azure's blob storage service.
553
+ Upload build caches to Azure's blob storage service.
781
554
  """
782
555
  return pulumi.get(self, "azblob")
783
556
 
784
557
  @azblob.setter
785
- def azblob(self, value: Optional[pulumi.Input['CacheToAzureBlobArgs']]):
558
+ def azblob(self, value: Optional[pulumi.Input['CacheFromAzureBlobArgs']]):
786
559
  pulumi.set(self, "azblob", value)
787
560
 
788
561
  @property
789
562
  @pulumi.getter
790
- def gha(self) -> Optional[pulumi.Input['CacheToGitHubActionsArgs']]:
563
+ def disabled(self) -> Optional[pulumi.Input[bool]]:
564
+ """
565
+ When `true` this entry will be excluded. Defaults to `false`.
566
+ """
567
+ return pulumi.get(self, "disabled")
568
+
569
+ @disabled.setter
570
+ def disabled(self, value: Optional[pulumi.Input[bool]]):
571
+ pulumi.set(self, "disabled", value)
572
+
573
+ @property
574
+ @pulumi.getter
575
+ def gha(self) -> Optional[pulumi.Input['CacheFromGitHubActionsArgs']]:
791
576
  """
792
577
  Recommended for use with GitHub Actions workflows.
793
578
 
@@ -797,33 +582,19 @@ class CacheToEntryArgs:
797
582
  return pulumi.get(self, "gha")
798
583
 
799
584
  @gha.setter
800
- def gha(self, value: Optional[pulumi.Input['CacheToGitHubActionsArgs']]):
585
+ def gha(self, value: Optional[pulumi.Input['CacheFromGitHubActionsArgs']]):
801
586
  pulumi.set(self, "gha", value)
802
587
 
803
588
  @property
804
589
  @pulumi.getter
805
- def inline(self) -> Optional[pulumi.Input['CacheInlineArgs']]:
806
- """
807
- The inline cache storage backend is the simplest implementation to get
808
- started with, but it does not handle multi-stage builds. Consider the
809
- `registry` cache backend instead.
810
- """
811
- return pulumi.get(self, "inline")
812
-
813
- @inline.setter
814
- def inline(self, value: Optional[pulumi.Input['CacheInlineArgs']]):
815
- pulumi.set(self, "inline", value)
816
-
817
- @property
818
- @pulumi.getter
819
- def local(self) -> Optional[pulumi.Input['CacheToLocalArgs']]:
590
+ def local(self) -> Optional[pulumi.Input['CacheFromLocalArgs']]:
820
591
  """
821
- A simple backend which caches imagines on your local filesystem.
592
+ A simple backend which caches images on your local filesystem.
822
593
  """
823
594
  return pulumi.get(self, "local")
824
595
 
825
596
  @local.setter
826
- def local(self, value: Optional[pulumi.Input['CacheToLocalArgs']]):
597
+ def local(self, value: Optional[pulumi.Input['CacheFromLocalArgs']]):
827
598
  pulumi.set(self, "local", value)
828
599
 
829
600
  @property
@@ -831,7 +602,7 @@ class CacheToEntryArgs:
831
602
  def raw(self) -> Optional[pulumi.Input[str]]:
832
603
  """
833
604
  A raw string as you would provide it to the Docker CLI (e.g.,
834
- `type=inline`)
605
+ `type=inline`).
835
606
  """
836
607
  return pulumi.get(self, "raw")
837
608
 
@@ -841,30 +612,120 @@ class CacheToEntryArgs:
841
612
 
842
613
  @property
843
614
  @pulumi.getter
844
- def registry(self) -> Optional[pulumi.Input['CacheToRegistryArgs']]:
615
+ def registry(self) -> Optional[pulumi.Input['CacheFromRegistryArgs']]:
845
616
  """
846
- Push caches to remote registries. Incompatible with the `docker` build
847
- driver.
617
+ Upload build caches to remote registries.
848
618
  """
849
619
  return pulumi.get(self, "registry")
850
620
 
851
621
  @registry.setter
852
- def registry(self, value: Optional[pulumi.Input['CacheToRegistryArgs']]):
622
+ def registry(self, value: Optional[pulumi.Input['CacheFromRegistryArgs']]):
853
623
  pulumi.set(self, "registry", value)
854
624
 
855
625
  @property
856
626
  @pulumi.getter
857
- def s3(self) -> Optional[pulumi.Input['CacheToS3Args']]:
627
+ def s3(self) -> Optional[pulumi.Input['CacheFromS3Args']]:
858
628
  """
859
- Push cache to AWS S3 or S3-compatible services such as MinIO.
629
+ Upload build caches to AWS S3 or an S3-compatible services such as
630
+ MinIO.
860
631
  """
861
632
  return pulumi.get(self, "s3")
862
633
 
863
634
  @s3.setter
864
- def s3(self, value: Optional[pulumi.Input['CacheToS3Args']]):
635
+ def s3(self, value: Optional[pulumi.Input['CacheFromS3Args']]):
865
636
  pulumi.set(self, "s3", value)
866
637
 
867
638
 
639
+ @pulumi.input_type
640
+ class CacheToAzureBlobArgs:
641
+ def __init__(__self__, *,
642
+ name: pulumi.Input[str],
643
+ account_url: Optional[pulumi.Input[str]] = None,
644
+ ignore_error: Optional[pulumi.Input[bool]] = None,
645
+ mode: Optional[pulumi.Input['CacheMode']] = None,
646
+ secret_access_key: Optional[pulumi.Input[str]] = None):
647
+ """
648
+ :param pulumi.Input[str] name: The name of the cache image.
649
+ :param pulumi.Input[str] account_url: Base URL of the storage account.
650
+ :param pulumi.Input[bool] ignore_error: Ignore errors caused by failed cache exports.
651
+ :param pulumi.Input['CacheMode'] mode: The cache mode to use. Defaults to `min`.
652
+ :param pulumi.Input[str] secret_access_key: Blob storage account key.
653
+ """
654
+ pulumi.set(__self__, "name", name)
655
+ if account_url is not None:
656
+ pulumi.set(__self__, "account_url", account_url)
657
+ if ignore_error is None:
658
+ ignore_error = False
659
+ if ignore_error is not None:
660
+ pulumi.set(__self__, "ignore_error", ignore_error)
661
+ if mode is None:
662
+ mode = 'min'
663
+ if mode is not None:
664
+ pulumi.set(__self__, "mode", mode)
665
+ if secret_access_key is not None:
666
+ pulumi.set(__self__, "secret_access_key", secret_access_key)
667
+
668
+ @property
669
+ @pulumi.getter
670
+ def name(self) -> pulumi.Input[str]:
671
+ """
672
+ The name of the cache image.
673
+ """
674
+ return pulumi.get(self, "name")
675
+
676
+ @name.setter
677
+ def name(self, value: pulumi.Input[str]):
678
+ pulumi.set(self, "name", value)
679
+
680
+ @property
681
+ @pulumi.getter(name="accountUrl")
682
+ def account_url(self) -> Optional[pulumi.Input[str]]:
683
+ """
684
+ Base URL of the storage account.
685
+ """
686
+ return pulumi.get(self, "account_url")
687
+
688
+ @account_url.setter
689
+ def account_url(self, value: Optional[pulumi.Input[str]]):
690
+ pulumi.set(self, "account_url", value)
691
+
692
+ @property
693
+ @pulumi.getter(name="ignoreError")
694
+ def ignore_error(self) -> Optional[pulumi.Input[bool]]:
695
+ """
696
+ Ignore errors caused by failed cache exports.
697
+ """
698
+ return pulumi.get(self, "ignore_error")
699
+
700
+ @ignore_error.setter
701
+ def ignore_error(self, value: Optional[pulumi.Input[bool]]):
702
+ pulumi.set(self, "ignore_error", value)
703
+
704
+ @property
705
+ @pulumi.getter
706
+ def mode(self) -> Optional[pulumi.Input['CacheMode']]:
707
+ """
708
+ The cache mode to use. Defaults to `min`.
709
+ """
710
+ return pulumi.get(self, "mode")
711
+
712
+ @mode.setter
713
+ def mode(self, value: Optional[pulumi.Input['CacheMode']]):
714
+ pulumi.set(self, "mode", value)
715
+
716
+ @property
717
+ @pulumi.getter(name="secretAccessKey")
718
+ def secret_access_key(self) -> Optional[pulumi.Input[str]]:
719
+ """
720
+ Blob storage account key.
721
+ """
722
+ return pulumi.get(self, "secret_access_key")
723
+
724
+ @secret_access_key.setter
725
+ def secret_access_key(self, value: Optional[pulumi.Input[str]]):
726
+ pulumi.set(self, "secret_access_key", value)
727
+
728
+
868
729
  @pulumi.input_type
869
730
  class CacheToGitHubActionsArgs:
870
731
  def __init__(__self__, *,
@@ -986,6 +847,15 @@ class CacheToGitHubActionsArgs:
986
847
  pulumi.set(self, "url", value)
987
848
 
988
849
 
850
+ @pulumi.input_type
851
+ class CacheToInlineArgs:
852
+ def __init__(__self__):
853
+ """
854
+ Include an inline cache with the exported image.
855
+ """
856
+ pass
857
+
858
+
989
859
  @pulumi.input_type
990
860
  class CacheToLocalArgs:
991
861
  def __init__(__self__, *,
@@ -1116,11 +986,14 @@ class CacheToRegistryArgs:
1116
986
  :param pulumi.Input[bool] force_compression: Forcefully apply compression.
1117
987
  :param pulumi.Input[bool] ignore_error: Ignore errors caused by failed cache exports.
1118
988
  :param pulumi.Input[bool] image_manifest: Export cache manifest as an OCI-compatible image manifest instead of a
1119
- manifest list (requires OCI media types).
989
+ manifest list. Requires `ociMediaTypes` to also be `true`.
990
+
991
+ Some registries like AWS ECR will not work with caching if this is
992
+ `false`.
1120
993
 
1121
- Defaults to `false`.
994
+ Defaults to `false` to match Docker's default behavior.
1122
995
  :param pulumi.Input['CacheMode'] mode: The cache mode to use. Defaults to `min`.
1123
- :param pulumi.Input[bool] oci_media_types: Whether to use OCI mediatypes in exported manifests. Defaults to
996
+ :param pulumi.Input[bool] oci_media_types: Whether to use OCI media types in exported manifests. Defaults to
1124
997
  `true`.
1125
998
  """
1126
999
  pulumi.set(__self__, "ref", ref)
@@ -1218,9 +1091,12 @@ class CacheToRegistryArgs:
1218
1091
  def image_manifest(self) -> Optional[pulumi.Input[bool]]:
1219
1092
  """
1220
1093
  Export cache manifest as an OCI-compatible image manifest instead of a
1221
- manifest list (requires OCI media types).
1094
+ manifest list. Requires `ociMediaTypes` to also be `true`.
1095
+
1096
+ Some registries like AWS ECR will not work with caching if this is
1097
+ `false`.
1222
1098
 
1223
- Defaults to `false`.
1099
+ Defaults to `false` to match Docker's default behavior.
1224
1100
  """
1225
1101
  return pulumi.get(self, "image_manifest")
1226
1102
 
@@ -1244,7 +1120,7 @@ class CacheToRegistryArgs:
1244
1120
  @pulumi.getter(name="ociMediaTypes")
1245
1121
  def oci_media_types(self) -> Optional[pulumi.Input[bool]]:
1246
1122
  """
1247
- Whether to use OCI mediatypes in exported manifests. Defaults to
1123
+ Whether to use OCI media types in exported manifests. Defaults to
1248
1124
  `true`.
1249
1125
  """
1250
1126
  return pulumi.get(self, "oci_media_types")
@@ -1463,6 +1339,155 @@ class CacheToS3Args:
1463
1339
  pulumi.set(self, "use_path_style", value)
1464
1340
 
1465
1341
 
1342
+ @pulumi.input_type
1343
+ class CacheToArgs:
1344
+ def __init__(__self__, *,
1345
+ azblob: Optional[pulumi.Input['CacheToAzureBlobArgs']] = None,
1346
+ disabled: Optional[pulumi.Input[bool]] = None,
1347
+ gha: Optional[pulumi.Input['CacheToGitHubActionsArgs']] = None,
1348
+ inline: Optional[pulumi.Input['CacheToInlineArgs']] = None,
1349
+ local: Optional[pulumi.Input['CacheToLocalArgs']] = None,
1350
+ raw: Optional[pulumi.Input[str]] = None,
1351
+ registry: Optional[pulumi.Input['CacheToRegistryArgs']] = None,
1352
+ s3: Optional[pulumi.Input['CacheToS3Args']] = None):
1353
+ """
1354
+ :param pulumi.Input['CacheToAzureBlobArgs'] azblob: Push cache to Azure's blob storage service.
1355
+ :param pulumi.Input[bool] disabled: When `true` this entry will be excluded. Defaults to `false`.
1356
+ :param pulumi.Input['CacheToGitHubActionsArgs'] gha: Recommended for use with GitHub Actions workflows.
1357
+
1358
+ An action like `crazy-max/ghaction-github-runtime` is recommended to
1359
+ expose appropriate credentials to your GitHub workflow.
1360
+ :param pulumi.Input['CacheToInlineArgs'] inline: The inline cache storage backend is the simplest implementation to get
1361
+ started with, but it does not handle multi-stage builds. Consider the
1362
+ `registry` cache backend instead.
1363
+ :param pulumi.Input['CacheToLocalArgs'] local: A simple backend which caches imagines on your local filesystem.
1364
+ :param pulumi.Input[str] raw: A raw string as you would provide it to the Docker CLI (e.g.,
1365
+ `type=inline`)
1366
+ :param pulumi.Input['CacheToRegistryArgs'] registry: Push caches to remote registries. Incompatible with the `docker` build
1367
+ driver.
1368
+ :param pulumi.Input['CacheToS3Args'] s3: Push cache to AWS S3 or S3-compatible services such as MinIO.
1369
+ """
1370
+ if azblob is not None:
1371
+ pulumi.set(__self__, "azblob", azblob)
1372
+ if disabled is not None:
1373
+ pulumi.set(__self__, "disabled", disabled)
1374
+ if gha is not None:
1375
+ pulumi.set(__self__, "gha", gha)
1376
+ if inline is not None:
1377
+ pulumi.set(__self__, "inline", inline)
1378
+ if local is not None:
1379
+ pulumi.set(__self__, "local", local)
1380
+ if raw is not None:
1381
+ pulumi.set(__self__, "raw", raw)
1382
+ if registry is not None:
1383
+ pulumi.set(__self__, "registry", registry)
1384
+ if s3 is not None:
1385
+ pulumi.set(__self__, "s3", s3)
1386
+
1387
+ @property
1388
+ @pulumi.getter
1389
+ def azblob(self) -> Optional[pulumi.Input['CacheToAzureBlobArgs']]:
1390
+ """
1391
+ Push cache to Azure's blob storage service.
1392
+ """
1393
+ return pulumi.get(self, "azblob")
1394
+
1395
+ @azblob.setter
1396
+ def azblob(self, value: Optional[pulumi.Input['CacheToAzureBlobArgs']]):
1397
+ pulumi.set(self, "azblob", value)
1398
+
1399
+ @property
1400
+ @pulumi.getter
1401
+ def disabled(self) -> Optional[pulumi.Input[bool]]:
1402
+ """
1403
+ When `true` this entry will be excluded. Defaults to `false`.
1404
+ """
1405
+ return pulumi.get(self, "disabled")
1406
+
1407
+ @disabled.setter
1408
+ def disabled(self, value: Optional[pulumi.Input[bool]]):
1409
+ pulumi.set(self, "disabled", value)
1410
+
1411
+ @property
1412
+ @pulumi.getter
1413
+ def gha(self) -> Optional[pulumi.Input['CacheToGitHubActionsArgs']]:
1414
+ """
1415
+ Recommended for use with GitHub Actions workflows.
1416
+
1417
+ An action like `crazy-max/ghaction-github-runtime` is recommended to
1418
+ expose appropriate credentials to your GitHub workflow.
1419
+ """
1420
+ return pulumi.get(self, "gha")
1421
+
1422
+ @gha.setter
1423
+ def gha(self, value: Optional[pulumi.Input['CacheToGitHubActionsArgs']]):
1424
+ pulumi.set(self, "gha", value)
1425
+
1426
+ @property
1427
+ @pulumi.getter
1428
+ def inline(self) -> Optional[pulumi.Input['CacheToInlineArgs']]:
1429
+ """
1430
+ The inline cache storage backend is the simplest implementation to get
1431
+ started with, but it does not handle multi-stage builds. Consider the
1432
+ `registry` cache backend instead.
1433
+ """
1434
+ return pulumi.get(self, "inline")
1435
+
1436
+ @inline.setter
1437
+ def inline(self, value: Optional[pulumi.Input['CacheToInlineArgs']]):
1438
+ pulumi.set(self, "inline", value)
1439
+
1440
+ @property
1441
+ @pulumi.getter
1442
+ def local(self) -> Optional[pulumi.Input['CacheToLocalArgs']]:
1443
+ """
1444
+ A simple backend which caches imagines on your local filesystem.
1445
+ """
1446
+ return pulumi.get(self, "local")
1447
+
1448
+ @local.setter
1449
+ def local(self, value: Optional[pulumi.Input['CacheToLocalArgs']]):
1450
+ pulumi.set(self, "local", value)
1451
+
1452
+ @property
1453
+ @pulumi.getter
1454
+ def raw(self) -> Optional[pulumi.Input[str]]:
1455
+ """
1456
+ A raw string as you would provide it to the Docker CLI (e.g.,
1457
+ `type=inline`)
1458
+ """
1459
+ return pulumi.get(self, "raw")
1460
+
1461
+ @raw.setter
1462
+ def raw(self, value: Optional[pulumi.Input[str]]):
1463
+ pulumi.set(self, "raw", value)
1464
+
1465
+ @property
1466
+ @pulumi.getter
1467
+ def registry(self) -> Optional[pulumi.Input['CacheToRegistryArgs']]:
1468
+ """
1469
+ Push caches to remote registries. Incompatible with the `docker` build
1470
+ driver.
1471
+ """
1472
+ return pulumi.get(self, "registry")
1473
+
1474
+ @registry.setter
1475
+ def registry(self, value: Optional[pulumi.Input['CacheToRegistryArgs']]):
1476
+ pulumi.set(self, "registry", value)
1477
+
1478
+ @property
1479
+ @pulumi.getter
1480
+ def s3(self) -> Optional[pulumi.Input['CacheToS3Args']]:
1481
+ """
1482
+ Push cache to AWS S3 or S3-compatible services such as MinIO.
1483
+ """
1484
+ return pulumi.get(self, "s3")
1485
+
1486
+ @s3.setter
1487
+ def s3(self, value: Optional[pulumi.Input['CacheToS3Args']]):
1488
+ pulumi.set(self, "s3", value)
1489
+
1490
+
1466
1491
  @pulumi.input_type
1467
1492
  class ContextArgs:
1468
1493
  def __init__(__self__, *,
@@ -1508,10 +1533,14 @@ class DockerfileArgs:
1508
1533
  :param pulumi.Input[str] inline: Raw Dockerfile contents.
1509
1534
 
1510
1535
  Conflicts with `location`.
1536
+
1537
+ Equivalent to invoking Docker with `-f -`.
1511
1538
  :param pulumi.Input[str] location: Location of the Dockerfile to use.
1512
1539
 
1513
1540
  Can be a relative or absolute path to a local file, or a remote URL.
1514
1541
 
1542
+ Defaults to `${context.location}/Dockerfile` if context is on-disk.
1543
+
1515
1544
  Conflicts with `inline`.
1516
1545
  """
1517
1546
  if inline is not None:
@@ -1526,6 +1555,8 @@ class DockerfileArgs:
1526
1555
  Raw Dockerfile contents.
1527
1556
 
1528
1557
  Conflicts with `location`.
1558
+
1559
+ Equivalent to invoking Docker with `-f -`.
1529
1560
  """
1530
1561
  return pulumi.get(self, "inline")
1531
1562
 
@@ -1541,6 +1572,8 @@ class DockerfileArgs:
1541
1572
 
1542
1573
  Can be a relative or absolute path to a local file, or a remote URL.
1543
1574
 
1575
+ Defaults to `${context.location}/Dockerfile` if context is on-disk.
1576
+
1544
1577
  Conflicts with `inline`.
1545
1578
  """
1546
1579
  return pulumi.get(self, "location")
@@ -1550,6 +1583,12 @@ class DockerfileArgs:
1550
1583
  pulumi.set(self, "location", value)
1551
1584
 
1552
1585
 
1586
+ @pulumi.input_type
1587
+ class ExportCacheOnlyArgs:
1588
+ def __init__(__self__):
1589
+ pass
1590
+
1591
+
1553
1592
  @pulumi.input_type
1554
1593
  class ExportDockerArgs:
1555
1594
  def __init__(__self__, *,
@@ -1695,145 +1734,6 @@ class ExportDockerArgs:
1695
1734
  pulumi.set(self, "tar", value)
1696
1735
 
1697
1736
 
1698
- @pulumi.input_type
1699
- class ExportEntryArgs:
1700
- def __init__(__self__, *,
1701
- docker: Optional[pulumi.Input['ExportDockerArgs']] = None,
1702
- image: Optional[pulumi.Input['ExportImageArgs']] = None,
1703
- local: Optional[pulumi.Input['ExportLocalArgs']] = None,
1704
- manifests: Optional[pulumi.Input[Sequence[pulumi.Input['ManifestArgs']]]] = None,
1705
- oci: Optional[pulumi.Input['ExportOCIArgs']] = None,
1706
- raw: Optional[pulumi.Input[str]] = None,
1707
- registry: Optional[pulumi.Input['ExportRegistryArgs']] = None,
1708
- tar: Optional[pulumi.Input['ExportTarArgs']] = None):
1709
- """
1710
- :param pulumi.Input['ExportDockerArgs'] docker: Export as a Docker image layout.
1711
- :param pulumi.Input['ExportImageArgs'] image: Outputs the build result into a container image format.
1712
- :param pulumi.Input['ExportLocalArgs'] local: Export to a local directory as files and directories.
1713
- :param pulumi.Input[Sequence[pulumi.Input['ManifestArgs']]] manifests: An output property populated for exporters that pushed image
1714
- manifest(s) to a registry.
1715
- :param pulumi.Input['ExportOCIArgs'] oci: Identical to the Docker exporter but uses OCI media types by default.
1716
- :param pulumi.Input[str] raw: A raw string as you would provide it to the Docker CLI (e.g.,
1717
- `type=docker`)
1718
- :param pulumi.Input['ExportRegistryArgs'] registry: Identical to the Image exporter, but pushes by default.
1719
- :param pulumi.Input['ExportTarArgs'] tar: Export to a local directory as a tarball.
1720
- """
1721
- if docker is not None:
1722
- pulumi.set(__self__, "docker", docker)
1723
- if image is not None:
1724
- pulumi.set(__self__, "image", image)
1725
- if local is not None:
1726
- pulumi.set(__self__, "local", local)
1727
- if manifests is not None:
1728
- pulumi.set(__self__, "manifests", manifests)
1729
- if oci is not None:
1730
- pulumi.set(__self__, "oci", oci)
1731
- if raw is not None:
1732
- pulumi.set(__self__, "raw", raw)
1733
- if registry is not None:
1734
- pulumi.set(__self__, "registry", registry)
1735
- if tar is not None:
1736
- pulumi.set(__self__, "tar", tar)
1737
-
1738
- @property
1739
- @pulumi.getter
1740
- def docker(self) -> Optional[pulumi.Input['ExportDockerArgs']]:
1741
- """
1742
- Export as a Docker image layout.
1743
- """
1744
- return pulumi.get(self, "docker")
1745
-
1746
- @docker.setter
1747
- def docker(self, value: Optional[pulumi.Input['ExportDockerArgs']]):
1748
- pulumi.set(self, "docker", value)
1749
-
1750
- @property
1751
- @pulumi.getter
1752
- def image(self) -> Optional[pulumi.Input['ExportImageArgs']]:
1753
- """
1754
- Outputs the build result into a container image format.
1755
- """
1756
- return pulumi.get(self, "image")
1757
-
1758
- @image.setter
1759
- def image(self, value: Optional[pulumi.Input['ExportImageArgs']]):
1760
- pulumi.set(self, "image", value)
1761
-
1762
- @property
1763
- @pulumi.getter
1764
- def local(self) -> Optional[pulumi.Input['ExportLocalArgs']]:
1765
- """
1766
- Export to a local directory as files and directories.
1767
- """
1768
- return pulumi.get(self, "local")
1769
-
1770
- @local.setter
1771
- def local(self, value: Optional[pulumi.Input['ExportLocalArgs']]):
1772
- pulumi.set(self, "local", value)
1773
-
1774
- @property
1775
- @pulumi.getter
1776
- def manifests(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ManifestArgs']]]]:
1777
- """
1778
- An output property populated for exporters that pushed image
1779
- manifest(s) to a registry.
1780
- """
1781
- return pulumi.get(self, "manifests")
1782
-
1783
- @manifests.setter
1784
- def manifests(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ManifestArgs']]]]):
1785
- pulumi.set(self, "manifests", value)
1786
-
1787
- @property
1788
- @pulumi.getter
1789
- def oci(self) -> Optional[pulumi.Input['ExportOCIArgs']]:
1790
- """
1791
- Identical to the Docker exporter but uses OCI media types by default.
1792
- """
1793
- return pulumi.get(self, "oci")
1794
-
1795
- @oci.setter
1796
- def oci(self, value: Optional[pulumi.Input['ExportOCIArgs']]):
1797
- pulumi.set(self, "oci", value)
1798
-
1799
- @property
1800
- @pulumi.getter
1801
- def raw(self) -> Optional[pulumi.Input[str]]:
1802
- """
1803
- A raw string as you would provide it to the Docker CLI (e.g.,
1804
- `type=docker`)
1805
- """
1806
- return pulumi.get(self, "raw")
1807
-
1808
- @raw.setter
1809
- def raw(self, value: Optional[pulumi.Input[str]]):
1810
- pulumi.set(self, "raw", value)
1811
-
1812
- @property
1813
- @pulumi.getter
1814
- def registry(self) -> Optional[pulumi.Input['ExportRegistryArgs']]:
1815
- """
1816
- Identical to the Image exporter, but pushes by default.
1817
- """
1818
- return pulumi.get(self, "registry")
1819
-
1820
- @registry.setter
1821
- def registry(self, value: Optional[pulumi.Input['ExportRegistryArgs']]):
1822
- pulumi.set(self, "registry", value)
1823
-
1824
- @property
1825
- @pulumi.getter
1826
- def tar(self) -> Optional[pulumi.Input['ExportTarArgs']]:
1827
- """
1828
- Export to a local directory as a tarball.
1829
- """
1830
- return pulumi.get(self, "tar")
1831
-
1832
- @tar.setter
1833
- def tar(self, value: Optional[pulumi.Input['ExportTarArgs']]):
1834
- pulumi.set(self, "tar", value)
1835
-
1836
-
1837
1737
  @pulumi.input_type
1838
1738
  class ExportImageArgs:
1839
1739
  def __init__(__self__, *,
@@ -1863,7 +1763,7 @@ class ExportImageArgs:
1863
1763
  :param pulumi.Input[bool] push: Push after creating the image.
1864
1764
  :param pulumi.Input[bool] push_by_digest: Push image without name.
1865
1765
  :param pulumi.Input[bool] store: Store resulting images to the worker's image store and ensure all of
1866
- its blobs are in the content store.
1766
+ its blobs are in the content store.
1867
1767
 
1868
1768
  Defaults to `true`.
1869
1769
 
@@ -2046,7 +1946,7 @@ class ExportImageArgs:
2046
1946
  def store(self) -> Optional[pulumi.Input[bool]]:
2047
1947
  """
2048
1948
  Store resulting images to the worker's image store and ensure all of
2049
- its blobs are in the content store.
1949
+ its blobs are in the content store.
2050
1950
 
2051
1951
  Defaults to `true`.
2052
1952
 
@@ -2269,7 +2169,7 @@ class ExportRegistryArgs:
2269
2169
  :param pulumi.Input[bool] push: Push after creating the image.
2270
2170
  :param pulumi.Input[bool] push_by_digest: Push image without name.
2271
2171
  :param pulumi.Input[bool] store: Store resulting images to the worker's image store and ensure all of
2272
- its blobs are in the content store.
2172
+ its blobs are in the content store.
2273
2173
 
2274
2174
  Defaults to `true`.
2275
2175
 
@@ -2454,7 +2354,7 @@ class ExportRegistryArgs:
2454
2354
  def store(self) -> Optional[pulumi.Input[bool]]:
2455
2355
  """
2456
2356
  Store resulting images to the worker's image store and ensure all of
2457
- its blobs are in the content store.
2357
+ its blobs are in the content store.
2458
2358
 
2459
2359
  Defaults to `true`.
2460
2360
 
@@ -2504,107 +2404,158 @@ class ExportTarArgs:
2504
2404
 
2505
2405
 
2506
2406
  @pulumi.input_type
2507
- class ManifestPlatformArgs:
2407
+ class ExportArgs:
2508
2408
  def __init__(__self__, *,
2509
- architecture: pulumi.Input[str],
2510
- os: pulumi.Input[str]):
2409
+ cacheonly: Optional[pulumi.Input['ExportCacheOnlyArgs']] = None,
2410
+ disabled: Optional[pulumi.Input[bool]] = None,
2411
+ docker: Optional[pulumi.Input['ExportDockerArgs']] = None,
2412
+ image: Optional[pulumi.Input['ExportImageArgs']] = None,
2413
+ local: Optional[pulumi.Input['ExportLocalArgs']] = None,
2414
+ oci: Optional[pulumi.Input['ExportOCIArgs']] = None,
2415
+ raw: Optional[pulumi.Input[str]] = None,
2416
+ registry: Optional[pulumi.Input['ExportRegistryArgs']] = None,
2417
+ tar: Optional[pulumi.Input['ExportTarArgs']] = None):
2511
2418
  """
2512
- :param pulumi.Input[str] architecture: The manifest's architecture.
2513
- :param pulumi.Input[str] os: The manifest's operating systen.
2419
+ :param pulumi.Input['ExportCacheOnlyArgs'] cacheonly: A no-op export. Helpful for silencing the 'no exports' warning if you
2420
+ just want to populate caches.
2421
+ :param pulumi.Input[bool] disabled: When `true` this entry will be excluded. Defaults to `false`.
2422
+ :param pulumi.Input['ExportDockerArgs'] docker: Export as a Docker image layout.
2423
+ :param pulumi.Input['ExportImageArgs'] image: Outputs the build result into a container image format.
2424
+ :param pulumi.Input['ExportLocalArgs'] local: Export to a local directory as files and directories.
2425
+ :param pulumi.Input['ExportOCIArgs'] oci: Identical to the Docker exporter but uses OCI media types by default.
2426
+ :param pulumi.Input[str] raw: A raw string as you would provide it to the Docker CLI (e.g.,
2427
+ `type=docker`)
2428
+ :param pulumi.Input['ExportRegistryArgs'] registry: Identical to the Image exporter, but pushes by default.
2429
+ :param pulumi.Input['ExportTarArgs'] tar: Export to a local directory as a tarball.
2514
2430
  """
2515
- pulumi.set(__self__, "architecture", architecture)
2516
- pulumi.set(__self__, "os", os)
2431
+ if cacheonly is not None:
2432
+ pulumi.set(__self__, "cacheonly", cacheonly)
2433
+ if disabled is not None:
2434
+ pulumi.set(__self__, "disabled", disabled)
2435
+ if docker is not None:
2436
+ pulumi.set(__self__, "docker", docker)
2437
+ if image is not None:
2438
+ pulumi.set(__self__, "image", image)
2439
+ if local is not None:
2440
+ pulumi.set(__self__, "local", local)
2441
+ if oci is not None:
2442
+ pulumi.set(__self__, "oci", oci)
2443
+ if raw is not None:
2444
+ pulumi.set(__self__, "raw", raw)
2445
+ if registry is not None:
2446
+ pulumi.set(__self__, "registry", registry)
2447
+ if tar is not None:
2448
+ pulumi.set(__self__, "tar", tar)
2517
2449
 
2518
2450
  @property
2519
2451
  @pulumi.getter
2520
- def architecture(self) -> pulumi.Input[str]:
2452
+ def cacheonly(self) -> Optional[pulumi.Input['ExportCacheOnlyArgs']]:
2521
2453
  """
2522
- The manifest's architecture.
2454
+ A no-op export. Helpful for silencing the 'no exports' warning if you
2455
+ just want to populate caches.
2523
2456
  """
2524
- return pulumi.get(self, "architecture")
2457
+ return pulumi.get(self, "cacheonly")
2525
2458
 
2526
- @architecture.setter
2527
- def architecture(self, value: pulumi.Input[str]):
2528
- pulumi.set(self, "architecture", value)
2459
+ @cacheonly.setter
2460
+ def cacheonly(self, value: Optional[pulumi.Input['ExportCacheOnlyArgs']]):
2461
+ pulumi.set(self, "cacheonly", value)
2529
2462
 
2530
2463
  @property
2531
2464
  @pulumi.getter
2532
- def os(self) -> pulumi.Input[str]:
2465
+ def disabled(self) -> Optional[pulumi.Input[bool]]:
2533
2466
  """
2534
- The manifest's operating systen.
2467
+ When `true` this entry will be excluded. Defaults to `false`.
2535
2468
  """
2536
- return pulumi.get(self, "os")
2469
+ return pulumi.get(self, "disabled")
2537
2470
 
2538
- @os.setter
2539
- def os(self, value: pulumi.Input[str]):
2540
- pulumi.set(self, "os", value)
2471
+ @disabled.setter
2472
+ def disabled(self, value: Optional[pulumi.Input[bool]]):
2473
+ pulumi.set(self, "disabled", value)
2541
2474
 
2475
+ @property
2476
+ @pulumi.getter
2477
+ def docker(self) -> Optional[pulumi.Input['ExportDockerArgs']]:
2478
+ """
2479
+ Export as a Docker image layout.
2480
+ """
2481
+ return pulumi.get(self, "docker")
2542
2482
 
2543
- @pulumi.input_type
2544
- class ManifestArgs:
2545
- def __init__(__self__, *,
2546
- digest: pulumi.Input[str],
2547
- platform: pulumi.Input['ManifestPlatformArgs'],
2548
- ref: pulumi.Input[str],
2549
- size: pulumi.Input[int]):
2483
+ @docker.setter
2484
+ def docker(self, value: Optional[pulumi.Input['ExportDockerArgs']]):
2485
+ pulumi.set(self, "docker", value)
2486
+
2487
+ @property
2488
+ @pulumi.getter
2489
+ def image(self) -> Optional[pulumi.Input['ExportImageArgs']]:
2550
2490
  """
2551
- :param pulumi.Input[str] digest: The SHA256 digest of the manifest.
2552
- :param pulumi.Input['ManifestPlatformArgs'] platform: The manifest's platform.
2553
- :param pulumi.Input[str] ref: The manifest's canonical ref.
2554
- :param pulumi.Input[int] size: The size of the manifest in bytes.
2491
+ Outputs the build result into a container image format.
2555
2492
  """
2556
- pulumi.set(__self__, "digest", digest)
2557
- pulumi.set(__self__, "platform", platform)
2558
- pulumi.set(__self__, "ref", ref)
2559
- pulumi.set(__self__, "size", size)
2493
+ return pulumi.get(self, "image")
2494
+
2495
+ @image.setter
2496
+ def image(self, value: Optional[pulumi.Input['ExportImageArgs']]):
2497
+ pulumi.set(self, "image", value)
2560
2498
 
2561
2499
  @property
2562
2500
  @pulumi.getter
2563
- def digest(self) -> pulumi.Input[str]:
2501
+ def local(self) -> Optional[pulumi.Input['ExportLocalArgs']]:
2564
2502
  """
2565
- The SHA256 digest of the manifest.
2503
+ Export to a local directory as files and directories.
2566
2504
  """
2567
- return pulumi.get(self, "digest")
2505
+ return pulumi.get(self, "local")
2568
2506
 
2569
- @digest.setter
2570
- def digest(self, value: pulumi.Input[str]):
2571
- pulumi.set(self, "digest", value)
2507
+ @local.setter
2508
+ def local(self, value: Optional[pulumi.Input['ExportLocalArgs']]):
2509
+ pulumi.set(self, "local", value)
2572
2510
 
2573
2511
  @property
2574
2512
  @pulumi.getter
2575
- def platform(self) -> pulumi.Input['ManifestPlatformArgs']:
2513
+ def oci(self) -> Optional[pulumi.Input['ExportOCIArgs']]:
2576
2514
  """
2577
- The manifest's platform.
2515
+ Identical to the Docker exporter but uses OCI media types by default.
2578
2516
  """
2579
- return pulumi.get(self, "platform")
2517
+ return pulumi.get(self, "oci")
2580
2518
 
2581
- @platform.setter
2582
- def platform(self, value: pulumi.Input['ManifestPlatformArgs']):
2583
- pulumi.set(self, "platform", value)
2519
+ @oci.setter
2520
+ def oci(self, value: Optional[pulumi.Input['ExportOCIArgs']]):
2521
+ pulumi.set(self, "oci", value)
2584
2522
 
2585
2523
  @property
2586
2524
  @pulumi.getter
2587
- def ref(self) -> pulumi.Input[str]:
2525
+ def raw(self) -> Optional[pulumi.Input[str]]:
2588
2526
  """
2589
- The manifest's canonical ref.
2527
+ A raw string as you would provide it to the Docker CLI (e.g.,
2528
+ `type=docker`)
2590
2529
  """
2591
- return pulumi.get(self, "ref")
2530
+ return pulumi.get(self, "raw")
2592
2531
 
2593
- @ref.setter
2594
- def ref(self, value: pulumi.Input[str]):
2595
- pulumi.set(self, "ref", value)
2532
+ @raw.setter
2533
+ def raw(self, value: Optional[pulumi.Input[str]]):
2534
+ pulumi.set(self, "raw", value)
2535
+
2536
+ @property
2537
+ @pulumi.getter
2538
+ def registry(self) -> Optional[pulumi.Input['ExportRegistryArgs']]:
2539
+ """
2540
+ Identical to the Image exporter, but pushes by default.
2541
+ """
2542
+ return pulumi.get(self, "registry")
2543
+
2544
+ @registry.setter
2545
+ def registry(self, value: Optional[pulumi.Input['ExportRegistryArgs']]):
2546
+ pulumi.set(self, "registry", value)
2596
2547
 
2597
2548
  @property
2598
2549
  @pulumi.getter
2599
- def size(self) -> pulumi.Input[int]:
2550
+ def tar(self) -> Optional[pulumi.Input['ExportTarArgs']]:
2600
2551
  """
2601
- The size of the manifest in bytes.
2552
+ Export to a local directory as a tarball.
2602
2553
  """
2603
- return pulumi.get(self, "size")
2554
+ return pulumi.get(self, "tar")
2604
2555
 
2605
- @size.setter
2606
- def size(self, value: pulumi.Input[int]):
2607
- pulumi.set(self, "size", value)
2556
+ @tar.setter
2557
+ def tar(self, value: Optional[pulumi.Input['ExportTarArgs']]):
2558
+ pulumi.set(self, "tar", value)
2608
2559
 
2609
2560
 
2610
2561
  @pulumi.input_type
@@ -2661,3 +2612,61 @@ class RegistryAuthArgs:
2661
2612
  pulumi.set(self, "username", value)
2662
2613
 
2663
2614
 
2615
+ @pulumi.input_type
2616
+ class SSHArgs:
2617
+ def __init__(__self__, *,
2618
+ id: pulumi.Input[str],
2619
+ paths: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
2620
+ """
2621
+ :param pulumi.Input[str] id: Useful for distinguishing different servers that are part of the same
2622
+ build.
2623
+
2624
+ A value of `default` is appropriate if only dealing with a single host.
2625
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] paths: SSH agent socket or private keys to expose to the build under the given
2626
+ identifier.
2627
+
2628
+ Defaults to `[$SSH_AUTH_SOCK]`.
2629
+
2630
+ Note that your keys are **not** automatically added when using an
2631
+ agent. Run `ssh-add -l` locally to confirm which public keys are
2632
+ visible to the agent; these will be exposed to your build.
2633
+ """
2634
+ pulumi.set(__self__, "id", id)
2635
+ if paths is not None:
2636
+ pulumi.set(__self__, "paths", paths)
2637
+
2638
+ @property
2639
+ @pulumi.getter
2640
+ def id(self) -> pulumi.Input[str]:
2641
+ """
2642
+ Useful for distinguishing different servers that are part of the same
2643
+ build.
2644
+
2645
+ A value of `default` is appropriate if only dealing with a single host.
2646
+ """
2647
+ return pulumi.get(self, "id")
2648
+
2649
+ @id.setter
2650
+ def id(self, value: pulumi.Input[str]):
2651
+ pulumi.set(self, "id", value)
2652
+
2653
+ @property
2654
+ @pulumi.getter
2655
+ def paths(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
2656
+ """
2657
+ SSH agent socket or private keys to expose to the build under the given
2658
+ identifier.
2659
+
2660
+ Defaults to `[$SSH_AUTH_SOCK]`.
2661
+
2662
+ Note that your keys are **not** automatically added when using an
2663
+ agent. Run `ssh-add -l` locally to confirm which public keys are
2664
+ visible to the agent; these will be exposed to your build.
2665
+ """
2666
+ return pulumi.get(self, "paths")
2667
+
2668
+ @paths.setter
2669
+ def paths(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
2670
+ pulumi.set(self, "paths", value)
2671
+
2672
+