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:
@@ -65,7 +65,7 @@ public final class CacheFromGitHubActionsArgs extends com.pulumi.resources.Resou
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
@@ -76,7 +76,7 @@ public final class CacheFromGitHubActionsArgs extends com.pulumi.resources.Resou
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
@@ -172,7 +172,7 @@ public final class CacheFromGitHubActionsArgs extends com.pulumi.resources.Resou
|
||||
/**
|
||||
* @param 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.
|
||||
*
|
||||
@@ -187,7 +187,7 @@ public final class CacheFromGitHubActionsArgs extends com.pulumi.resources.Resou
|
||||
/**
|
||||
* @param 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.
|
||||
*
|
||||
@@ -201,7 +201,7 @@ public final class CacheFromGitHubActionsArgs extends com.pulumi.resources.Resou
|
||||
public CacheFromGitHubActionsArgs build() {
|
||||
$.scope = Codegen.stringProp("scope").output().arg($.scope).env("buildkit").def("").getNullable();
|
||||
$.token = Codegen.stringProp("token").secret().arg($.token).env("ACTIONS_RUNTIME_TOKEN").def("").getNullable();
|
||||
$.url = Codegen.stringProp("url").output().arg($.url).env("ACTIONS_RUNTIME_URL").def("").getNullable();
|
||||
$.url = Codegen.stringProp("url").output().arg($.url).env("ACTIONS_CACHE_URL").def("").getNullable();
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ public final class CacheToGitHubActionsArgs extends com.pulumi.resources.Resourc
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
@@ -108,7 +108,7 @@ public final class CacheToGitHubActionsArgs extends com.pulumi.resources.Resourc
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
@@ -248,7 +248,7 @@ public final class CacheToGitHubActionsArgs extends com.pulumi.resources.Resourc
|
||||
/**
|
||||
* @param 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.
|
||||
*
|
||||
@@ -263,7 +263,7 @@ public final class CacheToGitHubActionsArgs extends com.pulumi.resources.Resourc
|
||||
/**
|
||||
* @param 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.
|
||||
*
|
||||
@@ -279,7 +279,7 @@ public final class CacheToGitHubActionsArgs extends com.pulumi.resources.Resourc
|
||||
$.mode = Codegen.objectProp("mode", CacheMode.class).output().arg($.mode).def(CacheMode.Min).getNullable();
|
||||
$.scope = Codegen.stringProp("scope").output().arg($.scope).env("buildkit").def("").getNullable();
|
||||
$.token = Codegen.stringProp("token").secret().arg($.token).env("ACTIONS_RUNTIME_TOKEN").def("").getNullable();
|
||||
$.url = Codegen.stringProp("url").output().arg($.url).env("ACTIONS_RUNTIME_URL").def("").getNullable();
|
||||
$.url = Codegen.stringProp("url").output().arg($.url).env("ACTIONS_CACHE_URL").def("").getNullable();
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ public final class CacheFromGitHubActions {
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
@@ -65,7 +65,7 @@ public final class CacheFromGitHubActions {
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
|
||||
@@ -44,7 +44,7 @@ public final class CacheToGitHubActions {
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
@@ -91,7 +91,7 @@ public final class CacheToGitHubActions {
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user