pulumi-docker-build 0.1.0a1760593959__tar.gz → 0.1.0a1760766758__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.
- {pulumi_docker_build-0.1.0a1760593959 → pulumi_docker_build-0.1.0a1760766758}/PKG-INFO +1 -1
- {pulumi_docker_build-0.1.0a1760593959 → pulumi_docker_build-0.1.0a1760766758}/pulumi_docker_build/_inputs.py +22 -144
- {pulumi_docker_build-0.1.0a1760593959 → pulumi_docker_build-0.1.0a1760766758}/pulumi_docker_build/outputs.py +22 -94
- {pulumi_docker_build-0.1.0a1760593959 → pulumi_docker_build-0.1.0a1760766758}/pulumi_docker_build/pulumi-plugin.json +1 -1
- {pulumi_docker_build-0.1.0a1760593959 → pulumi_docker_build-0.1.0a1760766758}/pulumi_docker_build.egg-info/PKG-INFO +1 -1
- {pulumi_docker_build-0.1.0a1760593959 → pulumi_docker_build-0.1.0a1760766758}/pyproject.toml +1 -1
- {pulumi_docker_build-0.1.0a1760593959 → pulumi_docker_build-0.1.0a1760766758}/README.md +0 -0
- {pulumi_docker_build-0.1.0a1760593959 → pulumi_docker_build-0.1.0a1760766758}/pulumi_docker_build/__init__.py +0 -0
- {pulumi_docker_build-0.1.0a1760593959 → pulumi_docker_build-0.1.0a1760766758}/pulumi_docker_build/_enums.py +0 -0
- {pulumi_docker_build-0.1.0a1760593959 → pulumi_docker_build-0.1.0a1760766758}/pulumi_docker_build/_utilities.py +0 -0
- {pulumi_docker_build-0.1.0a1760593959 → pulumi_docker_build-0.1.0a1760766758}/pulumi_docker_build/config/__init__.py +0 -0
- {pulumi_docker_build-0.1.0a1760593959 → pulumi_docker_build-0.1.0a1760766758}/pulumi_docker_build/config/__init__.pyi +0 -0
- {pulumi_docker_build-0.1.0a1760593959 → pulumi_docker_build-0.1.0a1760766758}/pulumi_docker_build/config/vars.py +0 -0
- {pulumi_docker_build-0.1.0a1760593959 → pulumi_docker_build-0.1.0a1760766758}/pulumi_docker_build/image.py +0 -0
- {pulumi_docker_build-0.1.0a1760593959 → pulumi_docker_build-0.1.0a1760766758}/pulumi_docker_build/index.py +0 -0
- {pulumi_docker_build-0.1.0a1760593959 → pulumi_docker_build-0.1.0a1760766758}/pulumi_docker_build/provider.py +0 -0
- {pulumi_docker_build-0.1.0a1760593959 → pulumi_docker_build-0.1.0a1760766758}/pulumi_docker_build/py.typed +0 -0
- {pulumi_docker_build-0.1.0a1760593959 → pulumi_docker_build-0.1.0a1760766758}/pulumi_docker_build.egg-info/SOURCES.txt +0 -0
- {pulumi_docker_build-0.1.0a1760593959 → pulumi_docker_build-0.1.0a1760766758}/pulumi_docker_build.egg-info/dependency_links.txt +0 -0
- {pulumi_docker_build-0.1.0a1760593959 → pulumi_docker_build-0.1.0a1760766758}/pulumi_docker_build.egg-info/requires.txt +0 -0
- {pulumi_docker_build-0.1.0a1760593959 → pulumi_docker_build-0.1.0a1760766758}/pulumi_docker_build.egg-info/top_level.txt +0 -0
- {pulumi_docker_build-0.1.0a1760593959 → pulumi_docker_build-0.1.0a1760766758}/setup.cfg +0 -0
|
@@ -281,6 +281,12 @@ class CacheFromAzureBlobArgs:
|
|
|
281
281
|
|
|
282
282
|
if not MYPY:
|
|
283
283
|
class CacheFromGitHubActionsArgsDict(TypedDict):
|
|
284
|
+
"""
|
|
285
|
+
Recommended for use with GitHub Actions workflows.
|
|
286
|
+
|
|
287
|
+
An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
|
288
|
+
appropriate credentials to your GitHub workflow.
|
|
289
|
+
"""
|
|
284
290
|
scope: NotRequired[pulumi.Input[_builtins.str]]
|
|
285
291
|
"""
|
|
286
292
|
The scope to use for cache keys. Defaults to `buildkit`.
|
|
@@ -288,61 +294,27 @@ if not MYPY:
|
|
|
288
294
|
This should be set if building and caching multiple images in one
|
|
289
295
|
workflow, otherwise caches will overwrite each other.
|
|
290
296
|
"""
|
|
291
|
-
token: NotRequired[pulumi.Input[_builtins.str]]
|
|
292
|
-
"""
|
|
293
|
-
The GitHub Actions token to use. This is not a personal access tokens
|
|
294
|
-
and is typically generated automatically as part of each job.
|
|
295
|
-
|
|
296
|
-
Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
|
297
|
-
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
298
|
-
environment variable to your jobs.
|
|
299
|
-
"""
|
|
300
|
-
url: NotRequired[pulumi.Input[_builtins.str]]
|
|
301
|
-
"""
|
|
302
|
-
The cache server URL to use for artifacts.
|
|
303
|
-
|
|
304
|
-
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
|
305
|
-
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
306
|
-
environment variable to your jobs.
|
|
307
|
-
"""
|
|
308
297
|
elif False:
|
|
309
298
|
CacheFromGitHubActionsArgsDict: TypeAlias = Mapping[str, Any]
|
|
310
299
|
|
|
311
300
|
@pulumi.input_type
|
|
312
301
|
class CacheFromGitHubActionsArgs:
|
|
313
302
|
def __init__(__self__, *,
|
|
314
|
-
scope: Optional[pulumi.Input[_builtins.str]] = None
|
|
315
|
-
token: Optional[pulumi.Input[_builtins.str]] = None,
|
|
316
|
-
url: Optional[pulumi.Input[_builtins.str]] = None):
|
|
303
|
+
scope: Optional[pulumi.Input[_builtins.str]] = None):
|
|
317
304
|
"""
|
|
305
|
+
Recommended for use with GitHub Actions workflows.
|
|
306
|
+
|
|
307
|
+
An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
|
308
|
+
appropriate credentials to your GitHub workflow.
|
|
318
309
|
:param pulumi.Input[_builtins.str] scope: The scope to use for cache keys. Defaults to `buildkit`.
|
|
319
310
|
|
|
320
311
|
This should be set if building and caching multiple images in one
|
|
321
312
|
workflow, otherwise caches will overwrite each other.
|
|
322
|
-
:param pulumi.Input[_builtins.str] token: The GitHub Actions token to use. This is not a personal access tokens
|
|
323
|
-
and is typically generated automatically as part of each job.
|
|
324
|
-
|
|
325
|
-
Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
|
326
|
-
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
327
|
-
environment variable to your jobs.
|
|
328
|
-
:param pulumi.Input[_builtins.str] url: The cache server URL to use for artifacts.
|
|
329
|
-
|
|
330
|
-
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
|
331
|
-
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
332
|
-
environment variable to your jobs.
|
|
333
313
|
"""
|
|
334
314
|
if scope is None:
|
|
335
315
|
scope = 'buildkit'
|
|
336
316
|
if scope is not None:
|
|
337
317
|
pulumi.set(__self__, "scope", scope)
|
|
338
|
-
if token is None:
|
|
339
|
-
token = (_utilities.get_env('ACTIONS_RUNTIME_TOKEN') or '')
|
|
340
|
-
if token is not None:
|
|
341
|
-
pulumi.set(__self__, "token", token)
|
|
342
|
-
if url is None:
|
|
343
|
-
url = (_utilities.get_env('ACTIONS_CACHE_URL') or '')
|
|
344
|
-
if url is not None:
|
|
345
|
-
pulumi.set(__self__, "url", url)
|
|
346
318
|
|
|
347
319
|
@_builtins.property
|
|
348
320
|
@pulumi.getter
|
|
@@ -359,39 +331,6 @@ class CacheFromGitHubActionsArgs:
|
|
|
359
331
|
def scope(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
360
332
|
pulumi.set(self, "scope", value)
|
|
361
333
|
|
|
362
|
-
@_builtins.property
|
|
363
|
-
@pulumi.getter
|
|
364
|
-
def token(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
365
|
-
"""
|
|
366
|
-
The GitHub Actions token to use. This is not a personal access tokens
|
|
367
|
-
and is typically generated automatically as part of each job.
|
|
368
|
-
|
|
369
|
-
Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
|
370
|
-
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
371
|
-
environment variable to your jobs.
|
|
372
|
-
"""
|
|
373
|
-
return pulumi.get(self, "token")
|
|
374
|
-
|
|
375
|
-
@token.setter
|
|
376
|
-
def token(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
377
|
-
pulumi.set(self, "token", value)
|
|
378
|
-
|
|
379
|
-
@_builtins.property
|
|
380
|
-
@pulumi.getter
|
|
381
|
-
def url(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
382
|
-
"""
|
|
383
|
-
The cache server URL to use for artifacts.
|
|
384
|
-
|
|
385
|
-
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
|
386
|
-
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
387
|
-
environment variable to your jobs.
|
|
388
|
-
"""
|
|
389
|
-
return pulumi.get(self, "url")
|
|
390
|
-
|
|
391
|
-
@url.setter
|
|
392
|
-
def url(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
393
|
-
pulumi.set(self, "url", value)
|
|
394
|
-
|
|
395
334
|
|
|
396
335
|
if not MYPY:
|
|
397
336
|
class CacheFromLocalArgsDict(TypedDict):
|
|
@@ -977,6 +916,12 @@ class CacheToAzureBlobArgs:
|
|
|
977
916
|
|
|
978
917
|
if not MYPY:
|
|
979
918
|
class CacheToGitHubActionsArgsDict(TypedDict):
|
|
919
|
+
"""
|
|
920
|
+
Recommended for use with GitHub Actions workflows.
|
|
921
|
+
|
|
922
|
+
An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
|
923
|
+
appropriate credentials to your GitHub workflow.
|
|
924
|
+
"""
|
|
980
925
|
ignore_error: NotRequired[pulumi.Input[_builtins.bool]]
|
|
981
926
|
"""
|
|
982
927
|
Ignore errors caused by failed cache exports.
|
|
@@ -992,23 +937,6 @@ if not MYPY:
|
|
|
992
937
|
This should be set if building and caching multiple images in one
|
|
993
938
|
workflow, otherwise caches will overwrite each other.
|
|
994
939
|
"""
|
|
995
|
-
token: NotRequired[pulumi.Input[_builtins.str]]
|
|
996
|
-
"""
|
|
997
|
-
The GitHub Actions token to use. This is not a personal access tokens
|
|
998
|
-
and is typically generated automatically as part of each job.
|
|
999
|
-
|
|
1000
|
-
Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
|
1001
|
-
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
1002
|
-
environment variable to your jobs.
|
|
1003
|
-
"""
|
|
1004
|
-
url: NotRequired[pulumi.Input[_builtins.str]]
|
|
1005
|
-
"""
|
|
1006
|
-
The cache server URL to use for artifacts.
|
|
1007
|
-
|
|
1008
|
-
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
|
1009
|
-
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
1010
|
-
environment variable to your jobs.
|
|
1011
|
-
"""
|
|
1012
940
|
elif False:
|
|
1013
941
|
CacheToGitHubActionsArgsDict: TypeAlias = Mapping[str, Any]
|
|
1014
942
|
|
|
@@ -1017,27 +945,18 @@ class CacheToGitHubActionsArgs:
|
|
|
1017
945
|
def __init__(__self__, *,
|
|
1018
946
|
ignore_error: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1019
947
|
mode: Optional[pulumi.Input['CacheMode']] = None,
|
|
1020
|
-
scope: Optional[pulumi.Input[_builtins.str]] = None
|
|
1021
|
-
token: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1022
|
-
url: Optional[pulumi.Input[_builtins.str]] = None):
|
|
948
|
+
scope: Optional[pulumi.Input[_builtins.str]] = None):
|
|
1023
949
|
"""
|
|
950
|
+
Recommended for use with GitHub Actions workflows.
|
|
951
|
+
|
|
952
|
+
An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
|
953
|
+
appropriate credentials to your GitHub workflow.
|
|
1024
954
|
:param pulumi.Input[_builtins.bool] ignore_error: Ignore errors caused by failed cache exports.
|
|
1025
955
|
:param pulumi.Input['CacheMode'] mode: The cache mode to use. Defaults to `min`.
|
|
1026
956
|
:param pulumi.Input[_builtins.str] scope: The scope to use for cache keys. Defaults to `buildkit`.
|
|
1027
957
|
|
|
1028
958
|
This should be set if building and caching multiple images in one
|
|
1029
959
|
workflow, otherwise caches will overwrite each other.
|
|
1030
|
-
:param pulumi.Input[_builtins.str] token: The GitHub Actions token to use. This is not a personal access tokens
|
|
1031
|
-
and is typically generated automatically as part of each job.
|
|
1032
|
-
|
|
1033
|
-
Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
|
1034
|
-
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
1035
|
-
environment variable to your jobs.
|
|
1036
|
-
:param pulumi.Input[_builtins.str] url: The cache server URL to use for artifacts.
|
|
1037
|
-
|
|
1038
|
-
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
|
1039
|
-
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
1040
|
-
environment variable to your jobs.
|
|
1041
960
|
"""
|
|
1042
961
|
if ignore_error is None:
|
|
1043
962
|
ignore_error = False
|
|
@@ -1051,14 +970,6 @@ class CacheToGitHubActionsArgs:
|
|
|
1051
970
|
scope = 'buildkit'
|
|
1052
971
|
if scope is not None:
|
|
1053
972
|
pulumi.set(__self__, "scope", scope)
|
|
1054
|
-
if token is None:
|
|
1055
|
-
token = (_utilities.get_env('ACTIONS_RUNTIME_TOKEN') or '')
|
|
1056
|
-
if token is not None:
|
|
1057
|
-
pulumi.set(__self__, "token", token)
|
|
1058
|
-
if url is None:
|
|
1059
|
-
url = (_utilities.get_env('ACTIONS_CACHE_URL') or '')
|
|
1060
|
-
if url is not None:
|
|
1061
|
-
pulumi.set(__self__, "url", url)
|
|
1062
973
|
|
|
1063
974
|
@_builtins.property
|
|
1064
975
|
@pulumi.getter(name="ignoreError")
|
|
@@ -1099,39 +1010,6 @@ class CacheToGitHubActionsArgs:
|
|
|
1099
1010
|
def scope(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
1100
1011
|
pulumi.set(self, "scope", value)
|
|
1101
1012
|
|
|
1102
|
-
@_builtins.property
|
|
1103
|
-
@pulumi.getter
|
|
1104
|
-
def token(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
1105
|
-
"""
|
|
1106
|
-
The GitHub Actions token to use. This is not a personal access tokens
|
|
1107
|
-
and is typically generated automatically as part of each job.
|
|
1108
|
-
|
|
1109
|
-
Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
|
1110
|
-
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
1111
|
-
environment variable to your jobs.
|
|
1112
|
-
"""
|
|
1113
|
-
return pulumi.get(self, "token")
|
|
1114
|
-
|
|
1115
|
-
@token.setter
|
|
1116
|
-
def token(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
1117
|
-
pulumi.set(self, "token", value)
|
|
1118
|
-
|
|
1119
|
-
@_builtins.property
|
|
1120
|
-
@pulumi.getter
|
|
1121
|
-
def url(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
1122
|
-
"""
|
|
1123
|
-
The cache server URL to use for artifacts.
|
|
1124
|
-
|
|
1125
|
-
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
|
1126
|
-
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
1127
|
-
environment variable to your jobs.
|
|
1128
|
-
"""
|
|
1129
|
-
return pulumi.get(self, "url")
|
|
1130
|
-
|
|
1131
|
-
@url.setter
|
|
1132
|
-
def url(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
1133
|
-
pulumi.set(self, "url", value)
|
|
1134
|
-
|
|
1135
1013
|
|
|
1136
1014
|
if not MYPY:
|
|
1137
1015
|
class CacheToInlineArgsDict(TypedDict):
|
|
@@ -293,39 +293,28 @@ class CacheFromAzureBlob(dict):
|
|
|
293
293
|
|
|
294
294
|
@pulumi.output_type
|
|
295
295
|
class CacheFromGitHubActions(dict):
|
|
296
|
+
"""
|
|
297
|
+
Recommended for use with GitHub Actions workflows.
|
|
298
|
+
|
|
299
|
+
An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
|
300
|
+
appropriate credentials to your GitHub workflow.
|
|
301
|
+
"""
|
|
296
302
|
def __init__(__self__, *,
|
|
297
|
-
scope: Optional[_builtins.str] = None
|
|
298
|
-
token: Optional[_builtins.str] = None,
|
|
299
|
-
url: Optional[_builtins.str] = None):
|
|
303
|
+
scope: Optional[_builtins.str] = None):
|
|
300
304
|
"""
|
|
305
|
+
Recommended for use with GitHub Actions workflows.
|
|
306
|
+
|
|
307
|
+
An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
|
308
|
+
appropriate credentials to your GitHub workflow.
|
|
301
309
|
:param _builtins.str scope: The scope to use for cache keys. Defaults to `buildkit`.
|
|
302
310
|
|
|
303
311
|
This should be set if building and caching multiple images in one
|
|
304
312
|
workflow, otherwise caches will overwrite each other.
|
|
305
|
-
:param _builtins.str token: The GitHub Actions token to use. This is not a personal access tokens
|
|
306
|
-
and is typically generated automatically as part of each job.
|
|
307
|
-
|
|
308
|
-
Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
|
309
|
-
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
310
|
-
environment variable to your jobs.
|
|
311
|
-
:param _builtins.str url: The cache server URL to use for artifacts.
|
|
312
|
-
|
|
313
|
-
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
|
314
|
-
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
315
|
-
environment variable to your jobs.
|
|
316
313
|
"""
|
|
317
314
|
if scope is None:
|
|
318
315
|
scope = 'buildkit'
|
|
319
316
|
if scope is not None:
|
|
320
317
|
pulumi.set(__self__, "scope", scope)
|
|
321
|
-
if token is None:
|
|
322
|
-
token = (_utilities.get_env('ACTIONS_RUNTIME_TOKEN') or '')
|
|
323
|
-
if token is not None:
|
|
324
|
-
pulumi.set(__self__, "token", token)
|
|
325
|
-
if url is None:
|
|
326
|
-
url = (_utilities.get_env('ACTIONS_CACHE_URL') or '')
|
|
327
|
-
if url is not None:
|
|
328
|
-
pulumi.set(__self__, "url", url)
|
|
329
318
|
|
|
330
319
|
@_builtins.property
|
|
331
320
|
@pulumi.getter
|
|
@@ -338,31 +327,6 @@ class CacheFromGitHubActions(dict):
|
|
|
338
327
|
"""
|
|
339
328
|
return pulumi.get(self, "scope")
|
|
340
329
|
|
|
341
|
-
@_builtins.property
|
|
342
|
-
@pulumi.getter
|
|
343
|
-
def token(self) -> Optional[_builtins.str]:
|
|
344
|
-
"""
|
|
345
|
-
The GitHub Actions token to use. This is not a personal access tokens
|
|
346
|
-
and is typically generated automatically as part of each job.
|
|
347
|
-
|
|
348
|
-
Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
|
349
|
-
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
350
|
-
environment variable to your jobs.
|
|
351
|
-
"""
|
|
352
|
-
return pulumi.get(self, "token")
|
|
353
|
-
|
|
354
|
-
@_builtins.property
|
|
355
|
-
@pulumi.getter
|
|
356
|
-
def url(self) -> Optional[_builtins.str]:
|
|
357
|
-
"""
|
|
358
|
-
The cache server URL to use for artifacts.
|
|
359
|
-
|
|
360
|
-
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
|
361
|
-
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
362
|
-
environment variable to your jobs.
|
|
363
|
-
"""
|
|
364
|
-
return pulumi.get(self, "url")
|
|
365
|
-
|
|
366
330
|
|
|
367
331
|
@pulumi.output_type
|
|
368
332
|
class CacheFromLocal(dict):
|
|
@@ -784,6 +748,12 @@ class CacheToAzureBlob(dict):
|
|
|
784
748
|
|
|
785
749
|
@pulumi.output_type
|
|
786
750
|
class CacheToGitHubActions(dict):
|
|
751
|
+
"""
|
|
752
|
+
Recommended for use with GitHub Actions workflows.
|
|
753
|
+
|
|
754
|
+
An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
|
755
|
+
appropriate credentials to your GitHub workflow.
|
|
756
|
+
"""
|
|
787
757
|
@staticmethod
|
|
788
758
|
def __key_warning(key: str):
|
|
789
759
|
suggest = None
|
|
@@ -804,27 +774,18 @@ class CacheToGitHubActions(dict):
|
|
|
804
774
|
def __init__(__self__, *,
|
|
805
775
|
ignore_error: Optional[_builtins.bool] = None,
|
|
806
776
|
mode: Optional['CacheMode'] = None,
|
|
807
|
-
scope: Optional[_builtins.str] = None
|
|
808
|
-
token: Optional[_builtins.str] = None,
|
|
809
|
-
url: Optional[_builtins.str] = None):
|
|
777
|
+
scope: Optional[_builtins.str] = None):
|
|
810
778
|
"""
|
|
779
|
+
Recommended for use with GitHub Actions workflows.
|
|
780
|
+
|
|
781
|
+
An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
|
782
|
+
appropriate credentials to your GitHub workflow.
|
|
811
783
|
:param _builtins.bool ignore_error: Ignore errors caused by failed cache exports.
|
|
812
784
|
:param 'CacheMode' mode: The cache mode to use. Defaults to `min`.
|
|
813
785
|
:param _builtins.str scope: The scope to use for cache keys. Defaults to `buildkit`.
|
|
814
786
|
|
|
815
787
|
This should be set if building and caching multiple images in one
|
|
816
788
|
workflow, otherwise caches will overwrite each other.
|
|
817
|
-
:param _builtins.str token: The GitHub Actions token to use. This is not a personal access tokens
|
|
818
|
-
and is typically generated automatically as part of each job.
|
|
819
|
-
|
|
820
|
-
Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
|
821
|
-
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
822
|
-
environment variable to your jobs.
|
|
823
|
-
:param _builtins.str url: The cache server URL to use for artifacts.
|
|
824
|
-
|
|
825
|
-
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
|
826
|
-
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
827
|
-
environment variable to your jobs.
|
|
828
789
|
"""
|
|
829
790
|
if ignore_error is None:
|
|
830
791
|
ignore_error = False
|
|
@@ -838,14 +799,6 @@ class CacheToGitHubActions(dict):
|
|
|
838
799
|
scope = 'buildkit'
|
|
839
800
|
if scope is not None:
|
|
840
801
|
pulumi.set(__self__, "scope", scope)
|
|
841
|
-
if token is None:
|
|
842
|
-
token = (_utilities.get_env('ACTIONS_RUNTIME_TOKEN') or '')
|
|
843
|
-
if token is not None:
|
|
844
|
-
pulumi.set(__self__, "token", token)
|
|
845
|
-
if url is None:
|
|
846
|
-
url = (_utilities.get_env('ACTIONS_CACHE_URL') or '')
|
|
847
|
-
if url is not None:
|
|
848
|
-
pulumi.set(__self__, "url", url)
|
|
849
802
|
|
|
850
803
|
@_builtins.property
|
|
851
804
|
@pulumi.getter(name="ignoreError")
|
|
@@ -874,31 +827,6 @@ class CacheToGitHubActions(dict):
|
|
|
874
827
|
"""
|
|
875
828
|
return pulumi.get(self, "scope")
|
|
876
829
|
|
|
877
|
-
@_builtins.property
|
|
878
|
-
@pulumi.getter
|
|
879
|
-
def token(self) -> Optional[_builtins.str]:
|
|
880
|
-
"""
|
|
881
|
-
The GitHub Actions token to use. This is not a personal access tokens
|
|
882
|
-
and is typically generated automatically as part of each job.
|
|
883
|
-
|
|
884
|
-
Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
|
885
|
-
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
886
|
-
environment variable to your jobs.
|
|
887
|
-
"""
|
|
888
|
-
return pulumi.get(self, "token")
|
|
889
|
-
|
|
890
|
-
@_builtins.property
|
|
891
|
-
@pulumi.getter
|
|
892
|
-
def url(self) -> Optional[_builtins.str]:
|
|
893
|
-
"""
|
|
894
|
-
The cache server URL to use for artifacts.
|
|
895
|
-
|
|
896
|
-
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
|
897
|
-
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
898
|
-
environment variable to your jobs.
|
|
899
|
-
"""
|
|
900
|
-
return pulumi.get(self, "url")
|
|
901
|
-
|
|
902
830
|
|
|
903
831
|
@pulumi.output_type
|
|
904
832
|
class CacheToInline(dict):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|