Fix GitHub action URL (#80)

Our docs and default value for the GitHub action cache URL were
referring to the
[wrong](https://github.com/tonistiigi/go-actions-cache/blob/master/api.md)
environment variable.

I was under the impression that the underlying library ends up checking
for the correct variable later so this would be only cosmetic, but a
user
[confirmed](https://github.com/pulumi/pulumi-docker-build/issues/77#issuecomment-2135621983)
this does appear to break things.

I brought over an old test I had written while this was still in the
pulumi-docker repo, but unfortunately it doesn't currently test GHA due
to ci-mgmt limitations
https://github.com/pulumi/pulumi-docker-build/issues/82.

Fixes https://github.com/pulumi/pulumi-docker-build/issues/77.
This commit is contained in:
Bryce Lampe
2024-05-29 05:29:58 -07:00
committed by GitHub
parent c9e5913af1
commit f0aaf7095d
22 changed files with 2228 additions and 64 deletions

View File

@@ -208,7 +208,7 @@ class CacheFromGitHubActionsArgs:
environment variable to your jobs.
:param pulumi.Input[str] url: The cache server URL to use for artifacts.
Defaults to `$ACTIONS_RUNTIME_URL`, although a separate action like
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
`crazy-max/ghaction-github-runtime` is recommended to expose this
environment variable to your jobs.
"""
@@ -221,7 +221,7 @@ class CacheFromGitHubActionsArgs:
if token is not None:
pulumi.set(__self__, "token", token)
if url is None:
url = (_utilities.get_env('ACTIONS_RUNTIME_URL') or '')
url = (_utilities.get_env('ACTIONS_CACHE_URL') or '')
if url is not None:
pulumi.set(__self__, "url", url)
@@ -263,7 +263,7 @@ class CacheFromGitHubActionsArgs:
"""
The cache server URL to use for artifacts.
Defaults to `$ACTIONS_RUNTIME_URL`, although a separate action like
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
`crazy-max/ghaction-github-runtime` is recommended to expose this
environment variable to your jobs.
"""
@@ -749,7 +749,7 @@ class CacheToGitHubActionsArgs:
environment variable to your jobs.
:param pulumi.Input[str] url: The cache server URL to use for artifacts.
Defaults to `$ACTIONS_RUNTIME_URL`, although a separate action like
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
`crazy-max/ghaction-github-runtime` is recommended to expose this
environment variable to your jobs.
"""
@@ -770,7 +770,7 @@ class CacheToGitHubActionsArgs:
if token is not None:
pulumi.set(__self__, "token", token)
if url is None:
url = (_utilities.get_env('ACTIONS_RUNTIME_URL') or '')
url = (_utilities.get_env('ACTIONS_CACHE_URL') or '')
if url is not None:
pulumi.set(__self__, "url", url)
@@ -836,7 +836,7 @@ class CacheToGitHubActionsArgs:
"""
The cache server URL to use for artifacts.
Defaults to `$ACTIONS_RUNTIME_URL`, although a separate action like
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
`crazy-max/ghaction-github-runtime` is recommended to expose this
environment variable to your jobs.
"""

View File

@@ -305,7 +305,7 @@ class CacheFromGitHubActions(dict):
environment variable to your jobs.
:param str url: The cache server URL to use for artifacts.
Defaults to `$ACTIONS_RUNTIME_URL`, although a separate action like
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
`crazy-max/ghaction-github-runtime` is recommended to expose this
environment variable to your jobs.
"""
@@ -318,7 +318,7 @@ class CacheFromGitHubActions(dict):
if token is not None:
pulumi.set(__self__, "token", token)
if url is None:
url = (_utilities.get_env('ACTIONS_RUNTIME_URL') or '')
url = (_utilities.get_env('ACTIONS_CACHE_URL') or '')
if url is not None:
pulumi.set(__self__, "url", url)
@@ -352,7 +352,7 @@ class CacheFromGitHubActions(dict):
"""
The cache server URL to use for artifacts.
Defaults to `$ACTIONS_RUNTIME_URL`, although a separate action like
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
`crazy-max/ghaction-github-runtime` is recommended to expose this
environment variable to your jobs.
"""
@@ -817,7 +817,7 @@ class CacheToGitHubActions(dict):
environment variable to your jobs.
:param str url: The cache server URL to use for artifacts.
Defaults to `$ACTIONS_RUNTIME_URL`, although a separate action like
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
`crazy-max/ghaction-github-runtime` is recommended to expose this
environment variable to your jobs.
"""
@@ -838,7 +838,7 @@ class CacheToGitHubActions(dict):
if token is not None:
pulumi.set(__self__, "token", token)
if url is None:
url = (_utilities.get_env('ACTIONS_RUNTIME_URL') or '')
url = (_utilities.get_env('ACTIONS_CACHE_URL') or '')
if url is not None:
pulumi.set(__self__, "url", url)
@@ -888,7 +888,7 @@ class CacheToGitHubActions(dict):
"""
The cache server URL to use for artifacts.
Defaults to `$ACTIONS_RUNTIME_URL`, although a separate action like
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
`crazy-max/ghaction-github-runtime` is recommended to expose this
environment variable to your jobs.
"""