Compare commits
2 Commits
update-git
...
update-pul
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
67ab6f8128 | ||
|
|
5f6e3320c7 |
@@ -3,7 +3,6 @@
|
||||
|
||||
[env]
|
||||
_.source = "{{config_root}}/scripts/get-versions.sh"
|
||||
PULUMI_HOME = "{{config_root}}/.pulumi"
|
||||
|
||||
[tools]
|
||||
|
||||
|
||||
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
@@ -16,7 +16,9 @@ on:
|
||||
workflow_dispatch: {}
|
||||
env:
|
||||
PROVIDER: docker-build
|
||||
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
|
||||
TRAVIS_OS_NAME: linux
|
||||
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
|
||||
GOVERSION: "1.21.x"
|
||||
NODEVERSION: "20.x"
|
||||
PYTHONVERSION: "3.11.8"
|
||||
@@ -253,7 +255,7 @@ jobs:
|
||||
- name: Install Pulumi CLI
|
||||
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
||||
with:
|
||||
node-version: ${{ env.NODEVERSION }}
|
||||
registry-url: https://registry.npmjs.org
|
||||
@@ -454,7 +456,7 @@ jobs:
|
||||
- name: Install Pulumi CLI
|
||||
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
||||
with:
|
||||
node-version: ${{ env.NODEVERSION }}
|
||||
registry-url: https://registry.npmjs.org
|
||||
@@ -681,7 +683,7 @@ jobs:
|
||||
- name: Install Pulumi CLI
|
||||
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
||||
with:
|
||||
node-version: ${{ env.NODEVERSION }}
|
||||
registry-url: https://registry.npmjs.org
|
||||
@@ -762,7 +764,8 @@ jobs:
|
||||
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
|
||||
with:
|
||||
version: ${{ env.GOLANGCI_LINT_VERSION }}
|
||||
working-directory: .
|
||||
args: -c ../.golangci.yml
|
||||
working-directory: provider
|
||||
name: lint
|
||||
if: github.event_name == 'repository_dispatch' ||
|
||||
github.event.pull_request.head.repo.full_name == github.repository
|
||||
|
||||
8
.github/workflows/prerelease.yml
vendored
8
.github/workflows/prerelease.yml
vendored
@@ -7,7 +7,9 @@ on:
|
||||
- v*.*.*-**
|
||||
env:
|
||||
PROVIDER: docker-build
|
||||
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
|
||||
TRAVIS_OS_NAME: linux
|
||||
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
|
||||
GOVERSION: "1.21.x"
|
||||
NODEVERSION: "20.x"
|
||||
PYTHONVERSION: "3.11.8"
|
||||
@@ -242,7 +244,7 @@ jobs:
|
||||
- name: Install Pulumi CLI
|
||||
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
||||
with:
|
||||
node-version: ${{ env.NODEVERSION }}
|
||||
registry-url: https://registry.npmjs.org
|
||||
@@ -407,7 +409,7 @@ jobs:
|
||||
- name: Install Pulumi CLI
|
||||
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
||||
with:
|
||||
node-version: ${{ env.NODEVERSION }}
|
||||
registry-url: https://registry.npmjs.org
|
||||
@@ -634,7 +636,7 @@ jobs:
|
||||
- name: Install Pulumi CLI
|
||||
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
||||
with:
|
||||
node-version: ${{ env.NODEVERSION }}
|
||||
registry-url: https://registry.npmjs.org
|
||||
|
||||
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
@@ -8,7 +8,9 @@ on:
|
||||
- "!v*.*.*-**"
|
||||
env:
|
||||
PROVIDER: docker-build
|
||||
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
|
||||
TRAVIS_OS_NAME: linux
|
||||
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
|
||||
GOVERSION: "1.21.x"
|
||||
NODEVERSION: "20.x"
|
||||
PYTHONVERSION: "3.11.8"
|
||||
@@ -245,7 +247,7 @@ jobs:
|
||||
- name: Install Pulumi CLI
|
||||
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
||||
with:
|
||||
node-version: ${{ env.NODEVERSION }}
|
||||
registry-url: https://registry.npmjs.org
|
||||
@@ -410,7 +412,7 @@ jobs:
|
||||
- name: Install Pulumi CLI
|
||||
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
||||
with:
|
||||
node-version: ${{ env.NODEVERSION }}
|
||||
registry-url: https://registry.npmjs.org
|
||||
@@ -637,7 +639,7 @@ jobs:
|
||||
- name: Install Pulumi CLI
|
||||
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
||||
with:
|
||||
node-version: ${{ env.NODEVERSION }}
|
||||
registry-url: https://registry.npmjs.org
|
||||
|
||||
9
.github/workflows/run-acceptance-tests.yml
vendored
9
.github/workflows/run-acceptance-tests.yml
vendored
@@ -11,7 +11,9 @@ on:
|
||||
workflow_dispatch: {}
|
||||
env:
|
||||
PROVIDER: docker-build
|
||||
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
|
||||
TRAVIS_OS_NAME: linux
|
||||
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
|
||||
GOVERSION: "1.21.x"
|
||||
NODEVERSION: "20.x"
|
||||
PYTHONVERSION: "3.11.8"
|
||||
@@ -277,7 +279,7 @@ jobs:
|
||||
- name: Install Pulumi CLI
|
||||
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
||||
with:
|
||||
node-version: ${{ env.NODEVERSION }}
|
||||
registry-url: https://registry.npmjs.org
|
||||
@@ -446,7 +448,7 @@ jobs:
|
||||
- name: Install Pulumi CLI
|
||||
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
||||
with:
|
||||
node-version: ${{ env.NODEVERSION }}
|
||||
registry-url: https://registry.npmjs.org
|
||||
@@ -606,7 +608,8 @@ jobs:
|
||||
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
|
||||
with:
|
||||
version: ${{ env.GOLANGCI_LINT_VERSION }}
|
||||
working-directory: .
|
||||
args: -c ../.golangci.yml
|
||||
working-directory: provider
|
||||
name: lint
|
||||
if: github.event_name == 'repository_dispatch' ||
|
||||
github.event.pull_request.head.repo.full_name == github.repository
|
||||
|
||||
4
.github/workflows/weekly-pulumi-update.yml
vendored
4
.github/workflows/weekly-pulumi-update.yml
vendored
@@ -8,7 +8,9 @@ on:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
|
||||
PROVIDER: docker-build
|
||||
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
|
||||
TRAVIS_OS_NAME: linux
|
||||
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
|
||||
GOVERSION: "1.21.x"
|
||||
NODEVERSION: "20.x"
|
||||
PYTHONVERSION: "3.11.8"
|
||||
@@ -62,7 +64,7 @@ jobs:
|
||||
with:
|
||||
dotnet-version: ${{ env.DOTNETVERSION }}
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
||||
with:
|
||||
node-version: ${{ env.NODEVERSION }}
|
||||
registry-url: https://registry.npmjs.org
|
||||
|
||||
@@ -1 +1 @@
|
||||
3.192.0
|
||||
3.203.0
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
## Unreleased
|
||||
|
||||
## Changed
|
||||
|
||||
- Arguments `CacheFromGitHubActions.URL` and `CacheFromGitHubActions.Token` have been removed. If the previous behaviour is desired, set the `ACTIONS_CACHE_URL` and `ACTIONS_RUNTIME_TOKEN` environment variables. (https://github.com/pulumi/pulumi-docker-build/issues/75)
|
||||
|
||||
## 0.0.14 (2025-09-30)
|
||||
|
||||
### Fixed
|
||||
|
||||
5
Makefile
5
Makefile
@@ -19,7 +19,6 @@ TESTPARALLELISM := 4
|
||||
|
||||
PULUMI := pulumi
|
||||
GOGLANGCILINT := golangci-lint
|
||||
GOTEST := go test
|
||||
|
||||
# Override during CI using `make [TARGET] PROVIDER_VERSION=""` or by setting a PROVIDER_VERSION environment variable
|
||||
# Local & branch builds will just used this fixed default version unless specified
|
||||
@@ -47,10 +46,10 @@ provider_debug::
|
||||
(cd provider && go build -o $(WORKING_DIR)/bin/${PROVIDER} -gcflags="all=-N -l" -ldflags "-X ${PROJECT}/${VERSION_PATH}=${VERSION_GENERIC}" $(PROJECT)/${PROVIDER_PATH}/cmd/$(PROVIDER))
|
||||
|
||||
test_provider:: # Required by CI
|
||||
${GOTEST} -short -v -coverprofile="coverage.txt" -coverpkg=./provider/... -timeout 2h -parallel ${TESTPARALLELISM} ./provider/...
|
||||
go test -short -v -coverprofile="coverage.txt" -coverpkg=./provider/... -timeout 2h -parallel ${TESTPARALLELISM} ./provider/...
|
||||
|
||||
test_examples: install_nodejs_sdk install_dotnet_sdk
|
||||
${GOTEST} -short -v -cover -tags=all -timeout 2h -parallel ${TESTPARALLELISM} ./examples/...
|
||||
go test -short -v -cover -tags=all -timeout 2h -parallel ${TESTPARALLELISM} ./examples/...
|
||||
|
||||
test_all:: test_provider test_examples
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
module provider-docker-build
|
||||
|
||||
go 1.24.1
|
||||
go 1.24.7
|
||||
|
||||
toolchain go1.24.5
|
||||
toolchain go1.24.9
|
||||
|
||||
require (
|
||||
github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild v0.0.12
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.192.0
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.203.0
|
||||
)
|
||||
|
||||
require (
|
||||
@@ -58,6 +58,7 @@ require (
|
||||
github.com/opentracing/basictracer-go v1.1.0 // indirect
|
||||
github.com/opentracing/opentracing-go v1.2.0 // indirect
|
||||
github.com/pgavlin/fx v0.1.6 // indirect
|
||||
github.com/pgavlin/fx/v2 v2.0.10 // indirect
|
||||
github.com/pjbgf/sha1cd v0.3.2 // indirect
|
||||
github.com/pkg/errors v0.9.1 // indirect
|
||||
github.com/pkg/term v1.1.0 // indirect
|
||||
@@ -65,13 +66,12 @@ require (
|
||||
github.com/pulumi/esc v0.17.0 // indirect
|
||||
github.com/rivo/uniseg v0.4.7 // indirect
|
||||
github.com/rogpeppe/go-internal v1.14.1 // indirect
|
||||
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect
|
||||
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 // indirect
|
||||
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
|
||||
github.com/sergi/go-diff v1.4.0 // indirect
|
||||
github.com/skeema/knownhosts v1.3.1 // indirect
|
||||
github.com/spf13/cast v1.5.0 // indirect
|
||||
github.com/spf13/cobra v1.9.1 // indirect
|
||||
github.com/spf13/pflag v1.0.6 // indirect
|
||||
github.com/spf13/cobra v1.10.1 // indirect
|
||||
github.com/spf13/pflag v1.0.9 // indirect
|
||||
github.com/texttheater/golang-levenshtein v1.0.1 // indirect
|
||||
github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect
|
||||
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
|
||||
@@ -84,12 +84,12 @@ require (
|
||||
golang.org/x/crypto v0.39.0 // indirect
|
||||
golang.org/x/exp v0.0.0-20250408133849-7e4ce0ab07d0 // indirect
|
||||
golang.org/x/mod v0.25.0 // indirect
|
||||
golang.org/x/net v0.40.0 // indirect
|
||||
golang.org/x/net v0.41.0 // indirect
|
||||
golang.org/x/sync v0.15.0 // indirect
|
||||
golang.org/x/sys v0.33.0 // indirect
|
||||
golang.org/x/term v0.32.0 // indirect
|
||||
golang.org/x/text v0.26.0 // indirect
|
||||
golang.org/x/tools v0.33.0 // indirect
|
||||
golang.org/x/tools v0.34.0 // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20250519155744-55703ea1f237 // indirect
|
||||
google.golang.org/grpc v1.72.1 // indirect
|
||||
google.golang.org/protobuf v1.36.6 // indirect
|
||||
|
||||
@@ -146,8 +146,8 @@ github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+
|
||||
github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc=
|
||||
github.com/pgavlin/fx v0.1.6 h1:r9jEg69DhNoCd3Xh0+5mIbdbS3PqWrVWujkY76MFRTU=
|
||||
github.com/pgavlin/fx v0.1.6/go.mod h1:KWZJ6fqBBSh8GxHYqwYCf3rYE7Gp2p0N8tJp8xv9u9M=
|
||||
github.com/pgavlin/fx/v2 v2.0.3 h1:ZBVklTFjxcWvBVPE+ti5qwnmTIQ0Gq6nuj3J5RKDtKk=
|
||||
github.com/pgavlin/fx/v2 v2.0.3/go.mod h1:Cvnwqq0BopdHUJ7CU50h1XPeKrF4ZwdFj1nJLXbAjCE=
|
||||
github.com/pgavlin/fx/v2 v2.0.10 h1:ggyQ6pB+lEQEbEae48Wh/X221eLOamMD7i01ISe88u4=
|
||||
github.com/pgavlin/fx/v2 v2.0.10/go.mod h1:M/nF/ooAOy+NUBooYYXl2REARzJ/giPJxfMs8fINfKc=
|
||||
github.com/pjbgf/sha1cd v0.3.2 h1:a9wb0bp1oC2TGwStyn0Umc/IGKQnEgF0vVaZ8QF8eo4=
|
||||
github.com/pjbgf/sha1cd v0.3.2/go.mod h1:zQWigSxVmsHEZow5qaLtPYxpcKMMQpa09ixqBxuCS6A=
|
||||
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
|
||||
@@ -163,29 +163,27 @@ github.com/pulumi/esc v0.17.0 h1:oaVOIyFTENlYDuqc3pW75lQT9jb2cd6ie/4/Twxn66w=
|
||||
github.com/pulumi/esc v0.17.0/go.mod h1:XnSxlt5NkmuAj304l/gK4pRErFbtqq6XpfX1tYT9Jbc=
|
||||
github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild v0.0.12 h1:uzmw+0iic764m0Yvh4I/jRV1x3q49dVh5Ctq9RllsQ8=
|
||||
github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild v0.0.12/go.mod h1:6zFMe786NvFDO03BVJwdw1R/Yms4F6vAU49iBHo8zbQ=
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.192.0 h1:sfHuR3P02wSbV3xdSMEQ0+uC/HzlMz0YfKrVAXy1hSQ=
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.192.0/go.mod h1:aV0+c5xpSYccWKmOjTZS9liYCqh7+peu3cQgSXu7CJw=
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.203.0 h1:naNpZOkGf1QaIcfB47MAh2UHW7DUh37Tg1zOdDmxx5I=
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.203.0/go.mod h1:aV0+c5xpSYccWKmOjTZS9liYCqh7+peu3cQgSXu7CJw=
|
||||
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
|
||||
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
|
||||
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
|
||||
github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=
|
||||
github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc=
|
||||
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
||||
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
|
||||
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
|
||||
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 h1:lZUw3E0/J3roVtGQ+SCrUrg3ON6NgVqpn3+iol9aGu4=
|
||||
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1/go.mod h1:uToXkOrWAZ6/Oc07xWQrPOhJotwFIyu2bBVN41fcDUY=
|
||||
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8=
|
||||
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4=
|
||||
github.com/sergi/go-diff v1.4.0 h1:n/SP9D5ad1fORl+llWyN+D6qoUETXNZARKjyY2/KVCw=
|
||||
github.com/sergi/go-diff v1.4.0/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4=
|
||||
github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
|
||||
github.com/skeema/knownhosts v1.3.1 h1:X2osQ+RAjK76shCbvhHHHVl3ZlgDm8apHEHFqRjnBY8=
|
||||
github.com/skeema/knownhosts v1.3.1/go.mod h1:r7KTdC8l4uxWRyK2TpQZ/1o5HaSzh06ePQNxPwTcfiY=
|
||||
github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w=
|
||||
github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU=
|
||||
github.com/spf13/cobra v1.9.1 h1:CXSaggrXdbHK9CF+8ywj8Amf7PBRmPCOJugH954Nnlo=
|
||||
github.com/spf13/cobra v1.9.1/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0=
|
||||
github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o=
|
||||
github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||
github.com/spf13/cobra v1.10.1 h1:lJeBwCfmrnXthfAupyUTzJ/J4Nc1RsHC/mSRU2dll/s=
|
||||
github.com/spf13/cobra v1.10.1/go.mod h1:7SmJGaTHFVBY0jW4NXGluQoLvhqFQM+6XSKD+P4XaB0=
|
||||
github.com/spf13/pflag v1.0.9 h1:9exaQaMOCwffKiiiYk6/BndUBv+iRViNW+4lEMi0PvY=
|
||||
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
|
||||
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
|
||||
@@ -193,7 +191,6 @@ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXf
|
||||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
||||
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
|
||||
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
|
||||
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
|
||||
github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U=
|
||||
@@ -244,8 +241,8 @@ golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLL
|
||||
golang.org/x/net v0.0.0-20200421231249-e086a090c8fd/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||
golang.org/x/net v0.40.0 h1:79Xs7wF06Gbdcg4kdCCIQArK11Z1hr5POQ6+fIYHNuY=
|
||||
golang.org/x/net v0.40.0/go.mod h1:y0hY0exeL2Pku80/zKK7tpntoX23cqL3Oa6njdgRtds=
|
||||
golang.org/x/net v0.41.0 h1:vBTly1HeNPEn3wtREYfy4GZ/NECgw2Cnl+nK6Nz3uvw=
|
||||
golang.org/x/net v0.41.0/go.mod h1:B/K4NNqkfmg07DQYrbwvSluqCJOOXwUjeb/5lOisjbA=
|
||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
@@ -282,8 +279,8 @@ golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtn
|
||||
golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.33.0 h1:4qz2S3zmRxbGIhDIAgjxvFutSvH5EfnsYrRBj0UI0bc=
|
||||
golang.org/x/tools v0.33.0/go.mod h1:CIJMaWEY88juyUfo7UbgPqbC8rU2OqfAV1h2Qp0oMYI=
|
||||
golang.org/x/tools v0.34.0 h1:qIpSLOxeCYGg9TrcJokLBG4KFA6d795g0xkBkiESGlo=
|
||||
golang.org/x/tools v0.34.0/go.mod h1:pAP9OwEaY1CAW3HOmg3hLZC5Z0CCmzjAF2UQMSqNARg=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
@@ -303,7 +300,6 @@ gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRN
|
||||
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
|
||||
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
||||
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
lukechampine.com/frand v1.5.1 h1:fg0eRtdmGFIxhP5zQJzM1lFDbD6CUfu/f+7WgAZd5/w=
|
||||
|
||||
21
go.mod
21
go.mod
@@ -1,6 +1,8 @@
|
||||
module github.com/pulumi/pulumi-docker-build
|
||||
|
||||
go 1.24.1
|
||||
go 1.24.7
|
||||
|
||||
toolchain go1.24.9
|
||||
|
||||
require (
|
||||
github.com/aws/aws-sdk-go v1.55.5
|
||||
@@ -19,11 +21,11 @@ require (
|
||||
github.com/pulumi/pulumi-go-provider v1.1.2
|
||||
github.com/pulumi/pulumi-java/pkg v1.16.0
|
||||
github.com/pulumi/pulumi-yaml v1.21.2
|
||||
github.com/pulumi/pulumi/pkg/v3 v3.192.0
|
||||
github.com/pulumi/pulumi/pkg/v3 v3.203.0
|
||||
github.com/pulumi/pulumi/sdk/go/pulumi-language-go/v3 v3.0.0-20250806165243-bee5e4fa4815
|
||||
github.com/pulumi/pulumi/sdk/nodejs/cmd/pulumi-language-nodejs/v3 v3.0.0-20250806165243-bee5e4fa4815
|
||||
github.com/pulumi/pulumi/sdk/python/cmd/pulumi-language-python/v3 v3.0.0-20250806165243-bee5e4fa4815
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.192.0
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.203.0
|
||||
github.com/regclient/regclient v0.7.1
|
||||
github.com/sirupsen/logrus v1.9.3
|
||||
github.com/spf13/afero v1.14.0
|
||||
@@ -191,6 +193,7 @@ require (
|
||||
github.com/go-openapi/jsonpointer v0.19.6 // indirect
|
||||
github.com/go-openapi/jsonreference v0.20.2 // indirect
|
||||
github.com/go-openapi/swag v0.22.4 // indirect
|
||||
github.com/go-test/deep v1.0.3 // indirect
|
||||
github.com/go-toolsmith/astcast v1.1.0 // indirect
|
||||
github.com/go-toolsmith/astcopy v1.1.0 // indirect
|
||||
github.com/go-toolsmith/astequal v1.2.0 // indirect
|
||||
@@ -252,7 +255,6 @@ require (
|
||||
github.com/hashicorp/vault/api v1.12.0 // indirect
|
||||
github.com/hexops/gotextdiff v1.0.3 // indirect
|
||||
github.com/iancoleman/strcase v0.3.0 // indirect
|
||||
github.com/ijc/Gotty v0.0.0-20170406111628-a8b993ba6abd // indirect
|
||||
github.com/imdario/mergo v0.3.16 // indirect
|
||||
github.com/in-toto/in-toto-golang v0.5.0 // indirect
|
||||
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
||||
@@ -342,6 +344,7 @@ require (
|
||||
github.com/pgavlin/aho-corasick v0.5.1 // indirect
|
||||
github.com/pgavlin/diff v0.0.0-20230503175810-113847418e2e // indirect
|
||||
github.com/pgavlin/fx v0.1.6 // indirect
|
||||
github.com/pgavlin/fx/v2 v2.0.10 // indirect
|
||||
github.com/pgavlin/goldmark v1.1.33-0.20200616210433-b5eb04559386 // indirect
|
||||
github.com/pgavlin/text v0.0.0-20240821195002-b51d0990e284 // indirect
|
||||
github.com/pjbgf/sha1cd v0.3.2 // indirect
|
||||
@@ -379,7 +382,7 @@ require (
|
||||
github.com/securego/gosec/v2 v2.20.1-0.20240525090044-5f0084eb01a9 // indirect
|
||||
github.com/segmentio/asm v1.2.0 // indirect
|
||||
github.com/segmentio/encoding v0.4.1 // indirect
|
||||
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
|
||||
github.com/sergi/go-diff v1.4.0 // indirect
|
||||
github.com/serialx/hashring v0.0.0-20200727003509-22c0c7ab6b1b // indirect
|
||||
github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c // indirect
|
||||
github.com/shibumi/go-pathspec v1.3.0 // indirect
|
||||
@@ -394,9 +397,9 @@ require (
|
||||
github.com/sourcegraph/appdash-data v0.0.0-20151005221446-73f23eafcf67 // indirect
|
||||
github.com/sourcegraph/go-diff v0.7.0 // indirect
|
||||
github.com/spf13/cast v1.5.0 // indirect
|
||||
github.com/spf13/cobra v1.9.1 // indirect
|
||||
github.com/spf13/cobra v1.10.1 // indirect
|
||||
github.com/spf13/jwalterweatherman v1.1.0 // indirect
|
||||
github.com/spf13/pflag v1.0.6 // indirect
|
||||
github.com/spf13/pflag v1.0.9 // indirect
|
||||
github.com/spf13/viper v1.12.0 // indirect
|
||||
github.com/ssgreg/nlreturn/v2 v2.2.1 // indirect
|
||||
github.com/stbenjam/no-sprintf-host-port v0.1.1 // indirect
|
||||
@@ -461,14 +464,14 @@ require (
|
||||
gocloud.dev/secrets/hashivault v0.37.0 // indirect
|
||||
golang.org/x/exp/typeparams v0.0.0-20240314144324-c7f7c6466f7f // indirect
|
||||
golang.org/x/mod v0.25.0 // indirect
|
||||
golang.org/x/net v0.40.0 // indirect
|
||||
golang.org/x/net v0.41.0 // indirect
|
||||
golang.org/x/oauth2 v0.30.0 // indirect
|
||||
golang.org/x/sync v0.15.0 // indirect
|
||||
golang.org/x/sys v0.33.0 // indirect
|
||||
golang.org/x/term v0.32.0 // indirect
|
||||
golang.org/x/text v0.26.0 // indirect
|
||||
golang.org/x/time v0.6.0 // indirect
|
||||
golang.org/x/tools v0.33.0 // indirect
|
||||
golang.org/x/tools v0.34.0 // indirect
|
||||
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
|
||||
google.golang.org/api v0.169.0 // indirect
|
||||
google.golang.org/genproto v0.0.0-20240311173647-c811ad7063a7 // indirect
|
||||
|
||||
34
go.sum
34
go.sum
@@ -589,8 +589,6 @@ github.com/hinshun/vt10x v0.0.0-20220301184237-5011da428d02 h1:AgcIVYPa6XJnU3phs
|
||||
github.com/hinshun/vt10x v0.0.0-20220301184237-5011da428d02/go.mod h1:Q48J4R4DvxnHolD5P8pOtXigYlRuPLGl6moFx3ulM68=
|
||||
github.com/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI=
|
||||
github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho=
|
||||
github.com/ijc/Gotty v0.0.0-20170406111628-a8b993ba6abd h1:anPrsicrIi2ColgWTVPk+TrN42hJIWlfPHSBP9S0ZkM=
|
||||
github.com/ijc/Gotty v0.0.0-20170406111628-a8b993ba6abd/go.mod h1:3LVOLeyx9XVvwPgrt2be44XgSqndprz1G18rSk8KD84=
|
||||
github.com/imdario/mergo v0.3.16 h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4=
|
||||
github.com/imdario/mergo v0.3.16/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY=
|
||||
github.com/in-toto/in-toto-golang v0.5.0 h1:hb8bgwr0M2hGdDsLjkJ3ZqJ8JFLL/tgYdAxF/XEFBbY=
|
||||
@@ -841,8 +839,8 @@ github.com/pgavlin/diff v0.0.0-20230503175810-113847418e2e h1:Or25BtWLCyWKjnLyuM
|
||||
github.com/pgavlin/diff v0.0.0-20230503175810-113847418e2e/go.mod h1:WGwlmuPAiQTGQUjxyAfP7j4JgbgiFvFpI/qRtsQtS/4=
|
||||
github.com/pgavlin/fx v0.1.6 h1:r9jEg69DhNoCd3Xh0+5mIbdbS3PqWrVWujkY76MFRTU=
|
||||
github.com/pgavlin/fx v0.1.6/go.mod h1:KWZJ6fqBBSh8GxHYqwYCf3rYE7Gp2p0N8tJp8xv9u9M=
|
||||
github.com/pgavlin/fx/v2 v2.0.3 h1:ZBVklTFjxcWvBVPE+ti5qwnmTIQ0Gq6nuj3J5RKDtKk=
|
||||
github.com/pgavlin/fx/v2 v2.0.3/go.mod h1:Cvnwqq0BopdHUJ7CU50h1XPeKrF4ZwdFj1nJLXbAjCE=
|
||||
github.com/pgavlin/fx/v2 v2.0.10 h1:ggyQ6pB+lEQEbEae48Wh/X221eLOamMD7i01ISe88u4=
|
||||
github.com/pgavlin/fx/v2 v2.0.10/go.mod h1:M/nF/ooAOy+NUBooYYXl2REARzJ/giPJxfMs8fINfKc=
|
||||
github.com/pgavlin/goldmark v1.1.33-0.20200616210433-b5eb04559386 h1:LoCV5cscNVWyK5ChN/uCoIFJz8jZD63VQiGJIRgr6uo=
|
||||
github.com/pgavlin/goldmark v1.1.33-0.20200616210433-b5eb04559386/go.mod h1:MRxHTJrf9FhdfNQ8Hdeh9gmHevC9RJE/fu8M3JIGjoE=
|
||||
github.com/pgavlin/text v0.0.0-20240821195002-b51d0990e284 h1:qpLdAFg3kyV/mEsuMPBgLzFo3xRpKBdOff8m0up9eAs=
|
||||
@@ -902,16 +900,16 @@ github.com/pulumi/pulumi-java/pkg v1.16.0 h1:8KCiIXWv2uxfIks0SdgOezyXg4HZIoPfHID
|
||||
github.com/pulumi/pulumi-java/pkg v1.16.0/go.mod h1:VeMZ1s9LfXBypao4A1tRF3EB7fYnYZ1LwImyg6FBX0c=
|
||||
github.com/pulumi/pulumi-yaml v1.21.2 h1:czqC5AazinfX6Bj0nqAAQ6x/Cr8/3oUz3HUjJg6tJ4o=
|
||||
github.com/pulumi/pulumi-yaml v1.21.2/go.mod h1:KOqDnuJksfIq8belFVFN3IEI4r0NgW69M0QPSj54On4=
|
||||
github.com/pulumi/pulumi/pkg/v3 v3.192.0 h1:gZRMPaNpW+VN3ng3h9r8De8wI0keWC9fIP0rcUDatMA=
|
||||
github.com/pulumi/pulumi/pkg/v3 v3.192.0/go.mod h1:+Zp3EzjzGW4PlcW8oITZgeOfFzIVbLWvHtUVixvGQcs=
|
||||
github.com/pulumi/pulumi/pkg/v3 v3.203.0 h1:n4n1mvumcb33LaEPwzoodL5s68y0KIFH6BKlsmMC2xM=
|
||||
github.com/pulumi/pulumi/pkg/v3 v3.203.0/go.mod h1:U0BRLDbyScfNdP22SBCi3pqghDD/wD8FiEILDcN7Blk=
|
||||
github.com/pulumi/pulumi/sdk/go/pulumi-language-go/v3 v3.0.0-20250806165243-bee5e4fa4815 h1:tipGG4aEPejP424igQYxJ6TOtWVtZJa0z679oIv00ho=
|
||||
github.com/pulumi/pulumi/sdk/go/pulumi-language-go/v3 v3.0.0-20250806165243-bee5e4fa4815/go.mod h1:V2MMs29cFeGBdZyFKxNqTGVfBgDLhIOGfrXOxheieuI=
|
||||
github.com/pulumi/pulumi/sdk/nodejs/cmd/pulumi-language-nodejs/v3 v3.0.0-20250806165243-bee5e4fa4815 h1:+QJTFK7UcOFTYCg3XaSTrRZHWJ6Hqza8w9oADa4pPcM=
|
||||
github.com/pulumi/pulumi/sdk/nodejs/cmd/pulumi-language-nodejs/v3 v3.0.0-20250806165243-bee5e4fa4815/go.mod h1:0kA9b5LsaXLEKQzo0o9UUsHtZkACthHYLyBVUDUVMxc=
|
||||
github.com/pulumi/pulumi/sdk/python/cmd/pulumi-language-python/v3 v3.0.0-20250806165243-bee5e4fa4815 h1:bkvtySMos0ij3fWZWZaU5sVrvGvU0dZCusoxpgEtX6I=
|
||||
github.com/pulumi/pulumi/sdk/python/cmd/pulumi-language-python/v3 v3.0.0-20250806165243-bee5e4fa4815/go.mod h1:SJtr0N/XFyelI7M7U0UbJXr15pgEdSmpN40cglTsRTA=
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.192.0 h1:sfHuR3P02wSbV3xdSMEQ0+uC/HzlMz0YfKrVAXy1hSQ=
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.192.0/go.mod h1:aV0+c5xpSYccWKmOjTZS9liYCqh7+peu3cQgSXu7CJw=
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.203.0 h1:naNpZOkGf1QaIcfB47MAh2UHW7DUh37Tg1zOdDmxx5I=
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.203.0/go.mod h1:aV0+c5xpSYccWKmOjTZS9liYCqh7+peu3cQgSXu7CJw=
|
||||
github.com/quasilyte/go-ruleguard v0.4.2 h1:htXcXDK6/rO12kiTHKfHuqR4kr3Y4M0J0rOL6CH/BYs=
|
||||
github.com/quasilyte/go-ruleguard v0.4.2/go.mod h1:GJLgqsLeo4qgavUoL8JeGFNS7qcisx3awV/w9eWTmNI=
|
||||
github.com/quasilyte/go-ruleguard/dsl v0.3.22 h1:wd8zkOhSNr+I+8Qeciml08ivDt1pSXe60+5DqOpCjPE=
|
||||
@@ -958,8 +956,8 @@ github.com/segmentio/asm v1.2.0 h1:9BQrFxC+YOHJlTlHGkTrFWf59nbL3XnCoFLTwDCI7ys=
|
||||
github.com/segmentio/asm v1.2.0/go.mod h1:BqMnlJP91P8d+4ibuonYZw9mfnzI9HfxselHZr5aAcs=
|
||||
github.com/segmentio/encoding v0.4.1 h1:KLGaLSW0jrmhB58Nn4+98spfvPvmo4Ci1P/WIQ9wn7w=
|
||||
github.com/segmentio/encoding v0.4.1/go.mod h1:/d03Cd8PoaDeceuhUUUQWjU0KhWjrmYrWPgtJHYZSnI=
|
||||
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8=
|
||||
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4=
|
||||
github.com/sergi/go-diff v1.4.0 h1:n/SP9D5ad1fORl+llWyN+D6qoUETXNZARKjyY2/KVCw=
|
||||
github.com/sergi/go-diff v1.4.0/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4=
|
||||
github.com/serialx/hashring v0.0.0-20200727003509-22c0c7ab6b1b h1:h+3JX2VoWTFuyQEo87pStk/a99dzIO1mM9KxIyLPGTU=
|
||||
github.com/serialx/hashring v0.0.0-20200727003509-22c0c7ab6b1b/go.mod h1:/yeG0My1xr/u+HZrFQ1tOQQQQrOawfyMUH13ai5brBc=
|
||||
github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c h1:W65qqJCIOVP4jpqPQ0YvHYKwcMEMVWIzWC5iNQQfBTU=
|
||||
@@ -1000,13 +998,13 @@ github.com/spf13/afero v1.14.0 h1:9tH6MapGnn/j0eb0yIXiLjERO8RB6xIVZRDCX7PtqWA=
|
||||
github.com/spf13/afero v1.14.0/go.mod h1:acJQ8t0ohCGuMN3O+Pv0V0hgMxNYDlvdk+VTfyZmbYo=
|
||||
github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w=
|
||||
github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU=
|
||||
github.com/spf13/cobra v1.9.1 h1:CXSaggrXdbHK9CF+8ywj8Amf7PBRmPCOJugH954Nnlo=
|
||||
github.com/spf13/cobra v1.9.1/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0=
|
||||
github.com/spf13/cobra v1.10.1 h1:lJeBwCfmrnXthfAupyUTzJ/J4Nc1RsHC/mSRU2dll/s=
|
||||
github.com/spf13/cobra v1.10.1/go.mod h1:7SmJGaTHFVBY0jW4NXGluQoLvhqFQM+6XSKD+P4XaB0=
|
||||
github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk=
|
||||
github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo=
|
||||
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||
github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o=
|
||||
github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||
github.com/spf13/pflag v1.0.9 h1:9exaQaMOCwffKiiiYk6/BndUBv+iRViNW+4lEMi0PvY=
|
||||
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||
github.com/spf13/viper v1.12.0 h1:CZ7eSOd3kZoaYDLbXnmzgQI5RlciuXBMA+18HwHRfZQ=
|
||||
github.com/spf13/viper v1.12.0/go.mod h1:b6COn30jlNxbm/V2IqWiNWkJ+vZNiMNksliPCiuKtSI=
|
||||
github.com/ssgreg/nlreturn/v2 v2.2.1 h1:X4XDI7jstt3ySqGU86YGAURbxw3oTDPK9sPEi6YEwQ0=
|
||||
@@ -1258,8 +1256,8 @@ golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
|
||||
golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
|
||||
golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk=
|
||||
golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY=
|
||||
golang.org/x/net v0.40.0 h1:79Xs7wF06Gbdcg4kdCCIQArK11Z1hr5POQ6+fIYHNuY=
|
||||
golang.org/x/net v0.40.0/go.mod h1:y0hY0exeL2Pku80/zKK7tpntoX23cqL3Oa6njdgRtds=
|
||||
golang.org/x/net v0.41.0 h1:vBTly1HeNPEn3wtREYfy4GZ/NECgw2Cnl+nK6Nz3uvw=
|
||||
golang.org/x/net v0.41.0/go.mod h1:B/K4NNqkfmg07DQYrbwvSluqCJOOXwUjeb/5lOisjbA=
|
||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||
golang.org/x/oauth2 v0.30.0 h1:dnDm7JmhM45NNpd8FDDeLhK6FwqbOf4MLCM9zb1BOHI=
|
||||
golang.org/x/oauth2 v0.30.0/go.mod h1:B++QgG3ZKulg6sRPGD/mqlHQs5rB3Ml9erfeDY7xKlU=
|
||||
@@ -1381,8 +1379,8 @@ golang.org/x/tools v0.5.0/go.mod h1:N+Kgy78s5I24c24dU8OfWNEotWjutIs8SnJvn5IDq+k=
|
||||
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
|
||||
golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58=
|
||||
golang.org/x/tools v0.17.0/go.mod h1:xsh6VxdV005rRVaS6SSAf9oiAqljS7UZUacMZ8Bnsps=
|
||||
golang.org/x/tools v0.33.0 h1:4qz2S3zmRxbGIhDIAgjxvFutSvH5EfnsYrRBj0UI0bc=
|
||||
golang.org/x/tools v0.33.0/go.mod h1:CIJMaWEY88juyUfo7UbgPqbC8rU2OqfAV1h2Qp0oMYI=
|
||||
golang.org/x/tools v0.34.0 h1:qIpSLOxeCYGg9TrcJokLBG4KFA6d795g0xkBkiESGlo=
|
||||
golang.org/x/tools v0.34.0/go.mod h1:pAP9OwEaY1CAW3HOmg3hLZC5Z0CCmzjAF2UQMSqNARg=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
|
||||
@@ -155,12 +155,32 @@
|
||||
]
|
||||
},
|
||||
"docker-build:index:CacheFromGitHubActions": {
|
||||
"description": "Recommended for use with GitHub Actions workflows.\n\nAn action like `crazy-max/ghaction-github-runtime` is recommended to expose\nappropriate credentials to your GitHub workflow.",
|
||||
"properties": {
|
||||
"scope": {
|
||||
"type": "string",
|
||||
"description": "The scope to use for cache keys. Defaults to `buildkit`.\n\nThis should be set if building and caching multiple images in one\nworkflow, otherwise caches will overwrite each other.",
|
||||
"default": "buildkit"
|
||||
},
|
||||
"token": {
|
||||
"type": "string",
|
||||
"description": "The GitHub Actions token to use. This is not a personal access tokens\nand is typically generated automatically as part of each job.\n\nDefaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like\n`crazy-max/ghaction-github-runtime` is recommended to expose this\nenvironment variable to your jobs.",
|
||||
"default": "",
|
||||
"defaultInfo": {
|
||||
"environment": [
|
||||
"ACTIONS_RUNTIME_TOKEN"
|
||||
]
|
||||
},
|
||||
"secret": true
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"description": "The cache server URL to use for artifacts.\n\nDefaults to `$ACTIONS_CACHE_URL`, although a separate action like\n`crazy-max/ghaction-github-runtime` is recommended to expose this\nenvironment variable to your jobs.",
|
||||
"default": "",
|
||||
"defaultInfo": {
|
||||
"environment": [
|
||||
"ACTIONS_CACHE_URL"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -350,7 +370,6 @@
|
||||
]
|
||||
},
|
||||
"docker-build:index:CacheToGitHubActions": {
|
||||
"description": "Recommended for use with GitHub Actions workflows.\n\nAn action like `crazy-max/ghaction-github-runtime` is recommended to expose\nappropriate credentials to your GitHub workflow.",
|
||||
"properties": {
|
||||
"ignoreError": {
|
||||
"type": "boolean",
|
||||
@@ -366,6 +385,27 @@
|
||||
"type": "string",
|
||||
"description": "The scope to use for cache keys. Defaults to `buildkit`.\n\nThis should be set if building and caching multiple images in one\nworkflow, otherwise caches will overwrite each other.",
|
||||
"default": "buildkit"
|
||||
},
|
||||
"token": {
|
||||
"type": "string",
|
||||
"description": "The GitHub Actions token to use. This is not a personal access tokens\nand is typically generated automatically as part of each job.\n\nDefaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like\n`crazy-max/ghaction-github-runtime` is recommended to expose this\nenvironment variable to your jobs.",
|
||||
"default": "",
|
||||
"defaultInfo": {
|
||||
"environment": [
|
||||
"ACTIONS_RUNTIME_TOKEN"
|
||||
]
|
||||
},
|
||||
"secret": true
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"description": "The cache server URL to use for artifacts.\n\nDefaults to `$ACTIONS_CACHE_URL`, although a separate action like\n`crazy-max/ghaction-github-runtime` is recommended to expose this\nenvironment variable to your jobs.",
|
||||
"default": "",
|
||||
"defaultInfo": {
|
||||
"environment": [
|
||||
"ACTIONS_CACHE_URL"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
||||
@@ -17,7 +17,6 @@ package internal
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
controllerapi "github.com/docker/buildx/controller/pb"
|
||||
@@ -149,20 +148,33 @@ func (c CacheWithOCI) String() string {
|
||||
|
||||
// CacheFromGitHubActions pulls cache manifests from the GitHub actions cache.
|
||||
type CacheFromGitHubActions struct {
|
||||
URL string `pulumi:"url,optional"`
|
||||
Token string `pulumi:"token,optional" provider:"secret"`
|
||||
Scope string `pulumi:"scope,optional"`
|
||||
}
|
||||
|
||||
// Annotate sets docstrings on CacheFromGitHubActions.
|
||||
func (c *CacheFromGitHubActions) Annotate(a infer.Annotator) {
|
||||
a.Describe(&c, dedent(`
|
||||
Recommended for use with GitHub Actions workflows.
|
||||
|
||||
An action like "crazy-max/ghaction-github-runtime" is recommended to expose
|
||||
appropriate credentials to your GitHub workflow.
|
||||
`))
|
||||
|
||||
a.SetDefault(&c.URL, "", "ACTIONS_CACHE_URL")
|
||||
a.SetDefault(&c.Token, "", "ACTIONS_RUNTIME_TOKEN")
|
||||
a.SetDefault(&c.Scope, "buildkit")
|
||||
|
||||
a.Describe(&c.URL, dedent(`
|
||||
The cache server URL to use for artifacts.
|
||||
|
||||
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.
|
||||
`))
|
||||
a.Describe(&c.Token, dedent(`
|
||||
The GitHub Actions token to use. This is not a personal access tokens
|
||||
and is typically generated automatically as part of each job.
|
||||
|
||||
Defaults to "$ACTIONS_RUNTIME_TOKEN", although a separate action like
|
||||
"crazy-max/ghaction-github-runtime" is recommended to expose this
|
||||
environment variable to your jobs.
|
||||
|
||||
`))
|
||||
a.Describe(&c.Scope, dedent(`
|
||||
The scope to use for cache keys. Defaults to "buildkit".
|
||||
|
||||
@@ -179,12 +191,11 @@ func (c *CacheFromGitHubActions) String() string {
|
||||
if c.Scope != "" {
|
||||
parts = append(parts, "scope="+c.Scope)
|
||||
}
|
||||
// Preserving backwards compatibility with the old behaviour.
|
||||
if token := os.Getenv("ACTIONS_RUNTIME_TOKEN"); token != "" {
|
||||
parts = append(parts, "token="+token)
|
||||
if c.Token != "" {
|
||||
parts = append(parts, "token="+c.Token)
|
||||
}
|
||||
if url := os.Getenv("ACTIONS_CACHE_URL"); url != "" {
|
||||
parts = append(parts, "url="+url)
|
||||
if c.URL != "" {
|
||||
parts = append(parts, "url="+c.URL)
|
||||
}
|
||||
return strings.Join(parts, ",")
|
||||
}
|
||||
|
||||
@@ -24,15 +24,14 @@ import (
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
//nolint:paralleltest // We don't call t.Parallel here to prevent environment corruption.
|
||||
func TestCacheString(t *testing.T) {
|
||||
t.Parallel()
|
||||
gzip := Gzip
|
||||
|
||||
tests := []struct {
|
||||
name string
|
||||
arrange func(t *testing.T)
|
||||
given fmt.Stringer
|
||||
want string
|
||||
name string
|
||||
given fmt.Stringer
|
||||
want string
|
||||
}{
|
||||
{
|
||||
name: "s3",
|
||||
@@ -56,37 +55,7 @@ func TestCacheString(t *testing.T) {
|
||||
{
|
||||
name: "gha",
|
||||
given: CacheTo{GHA: &CacheToGitHubActions{}},
|
||||
arrange: func(t *testing.T) {
|
||||
t.Setenv("ACTIONS_CACHE_URL", "")
|
||||
t.Setenv("ACTIONS_RUNTIME_TOKEN", "")
|
||||
},
|
||||
want: "type=gha",
|
||||
},
|
||||
{
|
||||
name: "gha-default-envs",
|
||||
arrange: func(t *testing.T) {
|
||||
t.Setenv("ACTIONS_CACHE_URL", "https://example.com")
|
||||
t.Setenv("ACTIONS_RUNTIME_TOKEN", "token")
|
||||
},
|
||||
given: CacheTo{GHA: &CacheToGitHubActions{
|
||||
CacheFromGitHubActions: CacheFromGitHubActions{
|
||||
Scope: "scope",
|
||||
},
|
||||
}},
|
||||
want: "type=gha,scope=scope,token=token,url=https://example.com",
|
||||
},
|
||||
{
|
||||
name: "gha-with-scope",
|
||||
arrange: func(t *testing.T) {
|
||||
t.Setenv("ACTIONS_CACHE_URL", "")
|
||||
t.Setenv("ACTIONS_RUNTIME_TOKEN", "")
|
||||
},
|
||||
given: CacheTo{GHA: &CacheToGitHubActions{
|
||||
CacheFromGitHubActions: CacheFromGitHubActions{
|
||||
Scope: "scope",
|
||||
},
|
||||
}},
|
||||
want: "type=gha,scope=scope",
|
||||
want: "type=gha",
|
||||
},
|
||||
{
|
||||
name: "from-local",
|
||||
@@ -152,12 +121,9 @@ func TestCacheString(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
//nolint:paralleltest // We don't call t.Parallel here to prevent environment corruption.
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
if tt.arrange != nil {
|
||||
tt.arrange(t)
|
||||
}
|
||||
t.Parallel()
|
||||
|
||||
actual := tt.given.String()
|
||||
assert.Equal(t, tt.want, actual)
|
||||
|
||||
@@ -917,10 +917,8 @@ func TestValidateImageArgs(t *testing.T) {
|
||||
{
|
||||
name: "gha environment",
|
||||
envs: map[string]string{
|
||||
"ACTIONS_CACHE_URL": "test-cache-url",
|
||||
"ACTIONS_RUNTIME_TOKEN": "test-runtime-token",
|
||||
"ACTIONS_RESULTS_URL": "test-results-url",
|
||||
"ACTIONS_CACHE_SERVICE_V2": "true",
|
||||
"ACTIONS_CACHE_URL": "test-cache-url",
|
||||
"ACTIONS_RUNTIME_TOKEN": "test-runtime-token",
|
||||
},
|
||||
args: ImageArgs{
|
||||
Context: &BuildContext{Context: Context{Location: "testdata/noop"}},
|
||||
@@ -932,17 +930,15 @@ func TestValidateImageArgs(t *testing.T) {
|
||||
wantCacheFrom: &pb.CacheOptionsEntry{
|
||||
Type: "gha",
|
||||
Attrs: map[string]string{
|
||||
"token": "test-runtime-token",
|
||||
"url": "test-cache-url",
|
||||
"url_v2": "test-results-url",
|
||||
"token": "test-runtime-token",
|
||||
"url": "test-cache-url",
|
||||
},
|
||||
},
|
||||
wantCacheTo: &pb.CacheOptionsEntry{
|
||||
Type: "gha",
|
||||
Attrs: map[string]string{
|
||||
"token": "test-runtime-token",
|
||||
"url": "test-cache-url",
|
||||
"url_v2": "test-results-url",
|
||||
"token": "test-runtime-token",
|
||||
"url": "test-cache-url",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
39
sdk/dotnet/Inputs/CacheFromGitHubActionsArgs.cs
generated
39
sdk/dotnet/Inputs/CacheFromGitHubActionsArgs.cs
generated
@@ -10,12 +10,6 @@ using Pulumi.Serialization;
|
||||
namespace Pulumi.DockerBuild.Inputs
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Recommended for use with GitHub Actions workflows.
|
||||
///
|
||||
/// An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
/// appropriate credentials to your GitHub workflow.
|
||||
/// </summary>
|
||||
public sealed class CacheFromGitHubActionsArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
@@ -27,9 +21,42 @@ namespace Pulumi.DockerBuild.Inputs
|
||||
[Input("scope")]
|
||||
public Input<string>? Scope { get; set; }
|
||||
|
||||
[Input("token")]
|
||||
private Input<string>? _token;
|
||||
|
||||
/// <summary>
|
||||
/// The GitHub Actions token to use. This is not a personal access tokens
|
||||
/// and is typically generated automatically as part of each job.
|
||||
///
|
||||
/// Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
/// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
/// environment variable to your jobs.
|
||||
/// </summary>
|
||||
public Input<string>? Token
|
||||
{
|
||||
get => _token;
|
||||
set
|
||||
{
|
||||
var emptySecret = Output.CreateSecret(0);
|
||||
_token = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The cache server URL to use for artifacts.
|
||||
///
|
||||
/// 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.
|
||||
/// </summary>
|
||||
[Input("url")]
|
||||
public Input<string>? Url { get; set; }
|
||||
|
||||
public CacheFromGitHubActionsArgs()
|
||||
{
|
||||
Scope = "buildkit";
|
||||
Token = Utilities.GetEnv("ACTIONS_RUNTIME_TOKEN") ?? "";
|
||||
Url = Utilities.GetEnv("ACTIONS_CACHE_URL") ?? "";
|
||||
}
|
||||
public static new CacheFromGitHubActionsArgs Empty => new CacheFromGitHubActionsArgs();
|
||||
}
|
||||
|
||||
39
sdk/dotnet/Inputs/CacheToGitHubActionsArgs.cs
generated
39
sdk/dotnet/Inputs/CacheToGitHubActionsArgs.cs
generated
@@ -10,12 +10,6 @@ using Pulumi.Serialization;
|
||||
namespace Pulumi.DockerBuild.Inputs
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Recommended for use with GitHub Actions workflows.
|
||||
///
|
||||
/// An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
/// appropriate credentials to your GitHub workflow.
|
||||
/// </summary>
|
||||
public sealed class CacheToGitHubActionsArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
@@ -39,11 +33,44 @@ namespace Pulumi.DockerBuild.Inputs
|
||||
[Input("scope")]
|
||||
public Input<string>? Scope { get; set; }
|
||||
|
||||
[Input("token")]
|
||||
private Input<string>? _token;
|
||||
|
||||
/// <summary>
|
||||
/// The GitHub Actions token to use. This is not a personal access tokens
|
||||
/// and is typically generated automatically as part of each job.
|
||||
///
|
||||
/// Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
/// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
/// environment variable to your jobs.
|
||||
/// </summary>
|
||||
public Input<string>? Token
|
||||
{
|
||||
get => _token;
|
||||
set
|
||||
{
|
||||
var emptySecret = Output.CreateSecret(0);
|
||||
_token = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The cache server URL to use for artifacts.
|
||||
///
|
||||
/// 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.
|
||||
/// </summary>
|
||||
[Input("url")]
|
||||
public Input<string>? Url { get; set; }
|
||||
|
||||
public CacheToGitHubActionsArgs()
|
||||
{
|
||||
IgnoreError = false;
|
||||
Mode = Pulumi.DockerBuild.CacheMode.Min;
|
||||
Scope = "buildkit";
|
||||
Token = Utilities.GetEnv("ACTIONS_RUNTIME_TOKEN") ?? "";
|
||||
Url = Utilities.GetEnv("ACTIONS_CACHE_URL") ?? "";
|
||||
}
|
||||
public static new CacheToGitHubActionsArgs Empty => new CacheToGitHubActionsArgs();
|
||||
}
|
||||
|
||||
32
sdk/dotnet/Outputs/CacheFromGitHubActions.cs
generated
32
sdk/dotnet/Outputs/CacheFromGitHubActions.cs
generated
@@ -10,12 +10,6 @@ using Pulumi.Serialization;
|
||||
namespace Pulumi.DockerBuild.Outputs
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Recommended for use with GitHub Actions workflows.
|
||||
///
|
||||
/// An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
/// appropriate credentials to your GitHub workflow.
|
||||
/// </summary>
|
||||
[OutputType]
|
||||
public sealed class CacheFromGitHubActions
|
||||
{
|
||||
@@ -26,11 +20,35 @@ namespace Pulumi.DockerBuild.Outputs
|
||||
/// workflow, otherwise caches will overwrite each other.
|
||||
/// </summary>
|
||||
public readonly string? Scope;
|
||||
/// <summary>
|
||||
/// The GitHub Actions token to use. This is not a personal access tokens
|
||||
/// and is typically generated automatically as part of each job.
|
||||
///
|
||||
/// Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
/// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
/// environment variable to your jobs.
|
||||
/// </summary>
|
||||
public readonly string? Token;
|
||||
/// <summary>
|
||||
/// The cache server URL to use for artifacts.
|
||||
///
|
||||
/// 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.
|
||||
/// </summary>
|
||||
public readonly string? Url;
|
||||
|
||||
[OutputConstructor]
|
||||
private CacheFromGitHubActions(string? scope)
|
||||
private CacheFromGitHubActions(
|
||||
string? scope,
|
||||
|
||||
string? token,
|
||||
|
||||
string? url)
|
||||
{
|
||||
Scope = scope;
|
||||
Token = token;
|
||||
Url = url;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
31
sdk/dotnet/Outputs/CacheToGitHubActions.cs
generated
31
sdk/dotnet/Outputs/CacheToGitHubActions.cs
generated
@@ -10,12 +10,6 @@ using Pulumi.Serialization;
|
||||
namespace Pulumi.DockerBuild.Outputs
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Recommended for use with GitHub Actions workflows.
|
||||
///
|
||||
/// An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
/// appropriate credentials to your GitHub workflow.
|
||||
/// </summary>
|
||||
[OutputType]
|
||||
public sealed class CacheToGitHubActions
|
||||
{
|
||||
@@ -34,6 +28,23 @@ namespace Pulumi.DockerBuild.Outputs
|
||||
/// workflow, otherwise caches will overwrite each other.
|
||||
/// </summary>
|
||||
public readonly string? Scope;
|
||||
/// <summary>
|
||||
/// The GitHub Actions token to use. This is not a personal access tokens
|
||||
/// and is typically generated automatically as part of each job.
|
||||
///
|
||||
/// Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
/// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
/// environment variable to your jobs.
|
||||
/// </summary>
|
||||
public readonly string? Token;
|
||||
/// <summary>
|
||||
/// The cache server URL to use for artifacts.
|
||||
///
|
||||
/// 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.
|
||||
/// </summary>
|
||||
public readonly string? Url;
|
||||
|
||||
[OutputConstructor]
|
||||
private CacheToGitHubActions(
|
||||
@@ -41,11 +52,17 @@ namespace Pulumi.DockerBuild.Outputs
|
||||
|
||||
Pulumi.DockerBuild.CacheMode? mode,
|
||||
|
||||
string? scope)
|
||||
string? scope,
|
||||
|
||||
string? token,
|
||||
|
||||
string? url)
|
||||
{
|
||||
IgnoreError = ignoreError;
|
||||
Mode = mode;
|
||||
Scope = scope;
|
||||
Token = token;
|
||||
Url = url;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
18
sdk/go/dockerbuild/go.mod
generated
18
sdk/go/dockerbuild/go.mod
generated
@@ -1,10 +1,12 @@
|
||||
module github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild
|
||||
|
||||
go 1.24.1
|
||||
go 1.24.7
|
||||
|
||||
toolchain go1.24.9
|
||||
|
||||
require (
|
||||
github.com/blang/semver v3.5.1+incompatible
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.192.0
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.203.0
|
||||
)
|
||||
|
||||
require (
|
||||
@@ -58,6 +60,7 @@ require (
|
||||
github.com/opentracing/basictracer-go v1.1.0 // indirect
|
||||
github.com/opentracing/opentracing-go v1.2.0 // indirect
|
||||
github.com/pgavlin/fx v0.1.6 // indirect
|
||||
github.com/pgavlin/fx/v2 v2.0.10 // indirect
|
||||
github.com/pjbgf/sha1cd v0.3.2 // indirect
|
||||
github.com/pkg/errors v0.9.1 // indirect
|
||||
github.com/pkg/term v1.1.0 // indirect
|
||||
@@ -66,13 +69,12 @@ require (
|
||||
github.com/pulumi/esc v0.17.0 // indirect
|
||||
github.com/rivo/uniseg v0.4.7 // indirect
|
||||
github.com/rogpeppe/go-internal v1.14.1 // indirect
|
||||
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect
|
||||
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 // indirect
|
||||
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
|
||||
github.com/sergi/go-diff v1.4.0 // indirect
|
||||
github.com/skeema/knownhosts v1.3.1 // indirect
|
||||
github.com/spf13/cast v1.5.0 // indirect
|
||||
github.com/spf13/cobra v1.9.1 // indirect
|
||||
github.com/spf13/pflag v1.0.6 // indirect
|
||||
github.com/spf13/cobra v1.10.1 // indirect
|
||||
github.com/spf13/pflag v1.0.9 // indirect
|
||||
github.com/stretchr/objx v0.5.2 // indirect
|
||||
github.com/texttheater/golang-levenshtein v1.0.1 // indirect
|
||||
github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect
|
||||
@@ -86,12 +88,12 @@ require (
|
||||
golang.org/x/crypto v0.39.0 // indirect
|
||||
golang.org/x/exp v0.0.0-20250408133849-7e4ce0ab07d0 // indirect
|
||||
golang.org/x/mod v0.25.0 // indirect
|
||||
golang.org/x/net v0.40.0 // indirect
|
||||
golang.org/x/net v0.41.0 // indirect
|
||||
golang.org/x/sync v0.15.0 // indirect
|
||||
golang.org/x/sys v0.33.0 // indirect
|
||||
golang.org/x/term v0.32.0 // indirect
|
||||
golang.org/x/text v0.26.0 // indirect
|
||||
golang.org/x/tools v0.33.0 // indirect
|
||||
golang.org/x/tools v0.34.0 // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20250519155744-55703ea1f237 // indirect
|
||||
google.golang.org/grpc v1.72.1 // indirect
|
||||
google.golang.org/protobuf v1.36.6 // indirect
|
||||
|
||||
32
sdk/go/dockerbuild/go.sum
generated
32
sdk/go/dockerbuild/go.sum
generated
@@ -148,8 +148,8 @@ github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+
|
||||
github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc=
|
||||
github.com/pgavlin/fx v0.1.6 h1:r9jEg69DhNoCd3Xh0+5mIbdbS3PqWrVWujkY76MFRTU=
|
||||
github.com/pgavlin/fx v0.1.6/go.mod h1:KWZJ6fqBBSh8GxHYqwYCf3rYE7Gp2p0N8tJp8xv9u9M=
|
||||
github.com/pgavlin/fx/v2 v2.0.3 h1:ZBVklTFjxcWvBVPE+ti5qwnmTIQ0Gq6nuj3J5RKDtKk=
|
||||
github.com/pgavlin/fx/v2 v2.0.3/go.mod h1:Cvnwqq0BopdHUJ7CU50h1XPeKrF4ZwdFj1nJLXbAjCE=
|
||||
github.com/pgavlin/fx/v2 v2.0.10 h1:ggyQ6pB+lEQEbEae48Wh/X221eLOamMD7i01ISe88u4=
|
||||
github.com/pgavlin/fx/v2 v2.0.10/go.mod h1:M/nF/ooAOy+NUBooYYXl2REARzJ/giPJxfMs8fINfKc=
|
||||
github.com/pjbgf/sha1cd v0.3.2 h1:a9wb0bp1oC2TGwStyn0Umc/IGKQnEgF0vVaZ8QF8eo4=
|
||||
github.com/pjbgf/sha1cd v0.3.2/go.mod h1:zQWigSxVmsHEZow5qaLtPYxpcKMMQpa09ixqBxuCS6A=
|
||||
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
|
||||
@@ -164,8 +164,8 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435
|
||||
github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE=
|
||||
github.com/pulumi/esc v0.17.0 h1:oaVOIyFTENlYDuqc3pW75lQT9jb2cd6ie/4/Twxn66w=
|
||||
github.com/pulumi/esc v0.17.0/go.mod h1:XnSxlt5NkmuAj304l/gK4pRErFbtqq6XpfX1tYT9Jbc=
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.192.0 h1:sfHuR3P02wSbV3xdSMEQ0+uC/HzlMz0YfKrVAXy1hSQ=
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.192.0/go.mod h1:aV0+c5xpSYccWKmOjTZS9liYCqh7+peu3cQgSXu7CJw=
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.203.0 h1:naNpZOkGf1QaIcfB47MAh2UHW7DUh37Tg1zOdDmxx5I=
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.203.0/go.mod h1:aV0+c5xpSYccWKmOjTZS9liYCqh7+peu3cQgSXu7CJw=
|
||||
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
|
||||
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
|
||||
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
|
||||
@@ -173,21 +173,19 @@ github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/f
|
||||
github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=
|
||||
github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc=
|
||||
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
||||
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
|
||||
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
|
||||
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 h1:lZUw3E0/J3roVtGQ+SCrUrg3ON6NgVqpn3+iol9aGu4=
|
||||
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1/go.mod h1:uToXkOrWAZ6/Oc07xWQrPOhJotwFIyu2bBVN41fcDUY=
|
||||
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8=
|
||||
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4=
|
||||
github.com/sergi/go-diff v1.4.0 h1:n/SP9D5ad1fORl+llWyN+D6qoUETXNZARKjyY2/KVCw=
|
||||
github.com/sergi/go-diff v1.4.0/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4=
|
||||
github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
|
||||
github.com/skeema/knownhosts v1.3.1 h1:X2osQ+RAjK76shCbvhHHHVl3ZlgDm8apHEHFqRjnBY8=
|
||||
github.com/skeema/knownhosts v1.3.1/go.mod h1:r7KTdC8l4uxWRyK2TpQZ/1o5HaSzh06ePQNxPwTcfiY=
|
||||
github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w=
|
||||
github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU=
|
||||
github.com/spf13/cobra v1.9.1 h1:CXSaggrXdbHK9CF+8ywj8Amf7PBRmPCOJugH954Nnlo=
|
||||
github.com/spf13/cobra v1.9.1/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0=
|
||||
github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o=
|
||||
github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||
github.com/spf13/cobra v1.10.1 h1:lJeBwCfmrnXthfAupyUTzJ/J4Nc1RsHC/mSRU2dll/s=
|
||||
github.com/spf13/cobra v1.10.1/go.mod h1:7SmJGaTHFVBY0jW4NXGluQoLvhqFQM+6XSKD+P4XaB0=
|
||||
github.com/spf13/pflag v1.0.9 h1:9exaQaMOCwffKiiiYk6/BndUBv+iRViNW+4lEMi0PvY=
|
||||
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
|
||||
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
|
||||
@@ -195,7 +193,6 @@ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXf
|
||||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
||||
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
|
||||
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
|
||||
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
|
||||
github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U=
|
||||
@@ -246,8 +243,8 @@ golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLL
|
||||
golang.org/x/net v0.0.0-20200421231249-e086a090c8fd/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||
golang.org/x/net v0.40.0 h1:79Xs7wF06Gbdcg4kdCCIQArK11Z1hr5POQ6+fIYHNuY=
|
||||
golang.org/x/net v0.40.0/go.mod h1:y0hY0exeL2Pku80/zKK7tpntoX23cqL3Oa6njdgRtds=
|
||||
golang.org/x/net v0.41.0 h1:vBTly1HeNPEn3wtREYfy4GZ/NECgw2Cnl+nK6Nz3uvw=
|
||||
golang.org/x/net v0.41.0/go.mod h1:B/K4NNqkfmg07DQYrbwvSluqCJOOXwUjeb/5lOisjbA=
|
||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
@@ -284,8 +281,8 @@ golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtn
|
||||
golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.33.0 h1:4qz2S3zmRxbGIhDIAgjxvFutSvH5EfnsYrRBj0UI0bc=
|
||||
golang.org/x/tools v0.33.0/go.mod h1:CIJMaWEY88juyUfo7UbgPqbC8rU2OqfAV1h2Qp0oMYI=
|
||||
golang.org/x/tools v0.34.0 h1:qIpSLOxeCYGg9TrcJokLBG4KFA6d795g0xkBkiESGlo=
|
||||
golang.org/x/tools v0.34.0/go.mod h1:pAP9OwEaY1CAW3HOmg3hLZC5Z0CCmzjAF2UQMSqNARg=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
@@ -305,7 +302,6 @@ gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRN
|
||||
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
|
||||
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
||||
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
lukechampine.com/frand v1.5.1 h1:fg0eRtdmGFIxhP5zQJzM1lFDbD6CUfu/f+7WgAZd5/w=
|
||||
|
||||
216
sdk/go/dockerbuild/pulumiTypes.go
generated
216
sdk/go/dockerbuild/pulumiTypes.go
generated
@@ -834,16 +834,25 @@ func (o CacheFromAzureBlobPtrOutput) SecretAccessKey() pulumi.StringPtrOutput {
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// Recommended for use with GitHub Actions workflows.
|
||||
//
|
||||
// An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
// appropriate credentials to your GitHub workflow.
|
||||
type CacheFromGitHubActions struct {
|
||||
// The scope to use for cache keys. Defaults to `buildkit`.
|
||||
//
|
||||
// This should be set if building and caching multiple images in one
|
||||
// workflow, otherwise caches will overwrite each other.
|
||||
Scope *string `pulumi:"scope"`
|
||||
// The GitHub Actions token to use. This is not a personal access tokens
|
||||
// and is typically generated automatically as part of each job.
|
||||
//
|
||||
// Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
// environment variable to your jobs.
|
||||
Token *string `pulumi:"token"`
|
||||
// The cache server URL to use for artifacts.
|
||||
//
|
||||
// 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.
|
||||
Url *string `pulumi:"url"`
|
||||
}
|
||||
|
||||
// Defaults sets the appropriate defaults for CacheFromGitHubActions
|
||||
@@ -856,6 +865,18 @@ func (val *CacheFromGitHubActions) Defaults() *CacheFromGitHubActions {
|
||||
scope_ := "buildkit"
|
||||
tmp.Scope = &scope_
|
||||
}
|
||||
if tmp.Token == nil {
|
||||
if d := internal.GetEnvOrDefault("", nil, "ACTIONS_RUNTIME_TOKEN"); d != nil {
|
||||
token_ := d.(string)
|
||||
tmp.Token = &token_
|
||||
}
|
||||
}
|
||||
if tmp.Url == nil {
|
||||
if d := internal.GetEnvOrDefault("", nil, "ACTIONS_CACHE_URL"); d != nil {
|
||||
url_ := d.(string)
|
||||
tmp.Url = &url_
|
||||
}
|
||||
}
|
||||
return &tmp
|
||||
}
|
||||
|
||||
@@ -870,16 +891,25 @@ type CacheFromGitHubActionsInput interface {
|
||||
ToCacheFromGitHubActionsOutputWithContext(context.Context) CacheFromGitHubActionsOutput
|
||||
}
|
||||
|
||||
// Recommended for use with GitHub Actions workflows.
|
||||
//
|
||||
// An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
// appropriate credentials to your GitHub workflow.
|
||||
type CacheFromGitHubActionsArgs struct {
|
||||
// The scope to use for cache keys. Defaults to `buildkit`.
|
||||
//
|
||||
// This should be set if building and caching multiple images in one
|
||||
// workflow, otherwise caches will overwrite each other.
|
||||
Scope pulumi.StringPtrInput `pulumi:"scope"`
|
||||
// The GitHub Actions token to use. This is not a personal access tokens
|
||||
// and is typically generated automatically as part of each job.
|
||||
//
|
||||
// Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
// environment variable to your jobs.
|
||||
Token pulumi.StringPtrInput `pulumi:"token"`
|
||||
// The cache server URL to use for artifacts.
|
||||
//
|
||||
// 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.
|
||||
Url pulumi.StringPtrInput `pulumi:"url"`
|
||||
}
|
||||
|
||||
// Defaults sets the appropriate defaults for CacheFromGitHubActionsArgs
|
||||
@@ -891,6 +921,16 @@ func (val *CacheFromGitHubActionsArgs) Defaults() *CacheFromGitHubActionsArgs {
|
||||
if tmp.Scope == nil {
|
||||
tmp.Scope = pulumi.StringPtr("buildkit")
|
||||
}
|
||||
if tmp.Token == nil {
|
||||
if d := internal.GetEnvOrDefault("", nil, "ACTIONS_RUNTIME_TOKEN"); d != nil {
|
||||
tmp.Token = pulumi.StringPtr(d.(string))
|
||||
}
|
||||
}
|
||||
if tmp.Url == nil {
|
||||
if d := internal.GetEnvOrDefault("", nil, "ACTIONS_CACHE_URL"); d != nil {
|
||||
tmp.Url = pulumi.StringPtr(d.(string))
|
||||
}
|
||||
}
|
||||
return &tmp
|
||||
}
|
||||
func (CacheFromGitHubActionsArgs) ElementType() reflect.Type {
|
||||
@@ -958,10 +998,6 @@ func (i *cacheFromGitHubActionsPtrType) ToOutput(ctx context.Context) pulumix.Ou
|
||||
}
|
||||
}
|
||||
|
||||
// Recommended for use with GitHub Actions workflows.
|
||||
//
|
||||
// An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
// appropriate credentials to your GitHub workflow.
|
||||
type CacheFromGitHubActionsOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (CacheFromGitHubActionsOutput) ElementType() reflect.Type {
|
||||
@@ -1000,6 +1036,25 @@ func (o CacheFromGitHubActionsOutput) Scope() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v CacheFromGitHubActions) *string { return v.Scope }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// The GitHub Actions token to use. This is not a personal access tokens
|
||||
// and is typically generated automatically as part of each job.
|
||||
//
|
||||
// Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
// environment variable to your jobs.
|
||||
func (o CacheFromGitHubActionsOutput) Token() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v CacheFromGitHubActions) *string { return v.Token }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// The cache server URL to use for artifacts.
|
||||
//
|
||||
// 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.
|
||||
func (o CacheFromGitHubActionsOutput) Url() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v CacheFromGitHubActions) *string { return v.Url }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
type CacheFromGitHubActionsPtrOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (CacheFromGitHubActionsPtrOutput) ElementType() reflect.Type {
|
||||
@@ -1043,6 +1098,35 @@ func (o CacheFromGitHubActionsPtrOutput) Scope() pulumi.StringPtrOutput {
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// The GitHub Actions token to use. This is not a personal access tokens
|
||||
// and is typically generated automatically as part of each job.
|
||||
//
|
||||
// Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
// environment variable to your jobs.
|
||||
func (o CacheFromGitHubActionsPtrOutput) Token() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v *CacheFromGitHubActions) *string {
|
||||
if v == nil {
|
||||
return nil
|
||||
}
|
||||
return v.Token
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// The cache server URL to use for artifacts.
|
||||
//
|
||||
// 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.
|
||||
func (o CacheFromGitHubActionsPtrOutput) Url() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v *CacheFromGitHubActions) *string {
|
||||
if v == nil {
|
||||
return nil
|
||||
}
|
||||
return v.Url
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
type CacheFromLocal struct {
|
||||
// Digest of manifest to import.
|
||||
Digest *string `pulumi:"digest"`
|
||||
@@ -2277,10 +2361,6 @@ func (o CacheToAzureBlobPtrOutput) SecretAccessKey() pulumi.StringPtrOutput {
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// Recommended for use with GitHub Actions workflows.
|
||||
//
|
||||
// An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
// appropriate credentials to your GitHub workflow.
|
||||
type CacheToGitHubActions struct {
|
||||
// Ignore errors caused by failed cache exports.
|
||||
IgnoreError *bool `pulumi:"ignoreError"`
|
||||
@@ -2291,6 +2371,19 @@ type CacheToGitHubActions struct {
|
||||
// This should be set if building and caching multiple images in one
|
||||
// workflow, otherwise caches will overwrite each other.
|
||||
Scope *string `pulumi:"scope"`
|
||||
// The GitHub Actions token to use. This is not a personal access tokens
|
||||
// and is typically generated automatically as part of each job.
|
||||
//
|
||||
// Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
// environment variable to your jobs.
|
||||
Token *string `pulumi:"token"`
|
||||
// The cache server URL to use for artifacts.
|
||||
//
|
||||
// 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.
|
||||
Url *string `pulumi:"url"`
|
||||
}
|
||||
|
||||
// Defaults sets the appropriate defaults for CacheToGitHubActions
|
||||
@@ -2311,6 +2404,18 @@ func (val *CacheToGitHubActions) Defaults() *CacheToGitHubActions {
|
||||
scope_ := "buildkit"
|
||||
tmp.Scope = &scope_
|
||||
}
|
||||
if tmp.Token == nil {
|
||||
if d := internal.GetEnvOrDefault("", nil, "ACTIONS_RUNTIME_TOKEN"); d != nil {
|
||||
token_ := d.(string)
|
||||
tmp.Token = &token_
|
||||
}
|
||||
}
|
||||
if tmp.Url == nil {
|
||||
if d := internal.GetEnvOrDefault("", nil, "ACTIONS_CACHE_URL"); d != nil {
|
||||
url_ := d.(string)
|
||||
tmp.Url = &url_
|
||||
}
|
||||
}
|
||||
return &tmp
|
||||
}
|
||||
|
||||
@@ -2325,10 +2430,6 @@ type CacheToGitHubActionsInput interface {
|
||||
ToCacheToGitHubActionsOutputWithContext(context.Context) CacheToGitHubActionsOutput
|
||||
}
|
||||
|
||||
// Recommended for use with GitHub Actions workflows.
|
||||
//
|
||||
// An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
// appropriate credentials to your GitHub workflow.
|
||||
type CacheToGitHubActionsArgs struct {
|
||||
// Ignore errors caused by failed cache exports.
|
||||
IgnoreError pulumi.BoolPtrInput `pulumi:"ignoreError"`
|
||||
@@ -2339,6 +2440,19 @@ type CacheToGitHubActionsArgs struct {
|
||||
// This should be set if building and caching multiple images in one
|
||||
// workflow, otherwise caches will overwrite each other.
|
||||
Scope pulumi.StringPtrInput `pulumi:"scope"`
|
||||
// The GitHub Actions token to use. This is not a personal access tokens
|
||||
// and is typically generated automatically as part of each job.
|
||||
//
|
||||
// Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
// environment variable to your jobs.
|
||||
Token pulumi.StringPtrInput `pulumi:"token"`
|
||||
// The cache server URL to use for artifacts.
|
||||
//
|
||||
// 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.
|
||||
Url pulumi.StringPtrInput `pulumi:"url"`
|
||||
}
|
||||
|
||||
// Defaults sets the appropriate defaults for CacheToGitHubActionsArgs
|
||||
@@ -2356,6 +2470,16 @@ func (val *CacheToGitHubActionsArgs) Defaults() *CacheToGitHubActionsArgs {
|
||||
if tmp.Scope == nil {
|
||||
tmp.Scope = pulumi.StringPtr("buildkit")
|
||||
}
|
||||
if tmp.Token == nil {
|
||||
if d := internal.GetEnvOrDefault("", nil, "ACTIONS_RUNTIME_TOKEN"); d != nil {
|
||||
tmp.Token = pulumi.StringPtr(d.(string))
|
||||
}
|
||||
}
|
||||
if tmp.Url == nil {
|
||||
if d := internal.GetEnvOrDefault("", nil, "ACTIONS_CACHE_URL"); d != nil {
|
||||
tmp.Url = pulumi.StringPtr(d.(string))
|
||||
}
|
||||
}
|
||||
return &tmp
|
||||
}
|
||||
func (CacheToGitHubActionsArgs) ElementType() reflect.Type {
|
||||
@@ -2423,10 +2547,6 @@ func (i *cacheToGitHubActionsPtrType) ToOutput(ctx context.Context) pulumix.Outp
|
||||
}
|
||||
}
|
||||
|
||||
// Recommended for use with GitHub Actions workflows.
|
||||
//
|
||||
// An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
// appropriate credentials to your GitHub workflow.
|
||||
type CacheToGitHubActionsOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (CacheToGitHubActionsOutput) ElementType() reflect.Type {
|
||||
@@ -2475,6 +2595,25 @@ func (o CacheToGitHubActionsOutput) Scope() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v CacheToGitHubActions) *string { return v.Scope }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// The GitHub Actions token to use. This is not a personal access tokens
|
||||
// and is typically generated automatically as part of each job.
|
||||
//
|
||||
// Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
// environment variable to your jobs.
|
||||
func (o CacheToGitHubActionsOutput) Token() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v CacheToGitHubActions) *string { return v.Token }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// The cache server URL to use for artifacts.
|
||||
//
|
||||
// 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.
|
||||
func (o CacheToGitHubActionsOutput) Url() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v CacheToGitHubActions) *string { return v.Url }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
type CacheToGitHubActionsPtrOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (CacheToGitHubActionsPtrOutput) ElementType() reflect.Type {
|
||||
@@ -2538,6 +2677,35 @@ func (o CacheToGitHubActionsPtrOutput) Scope() pulumi.StringPtrOutput {
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// The GitHub Actions token to use. This is not a personal access tokens
|
||||
// and is typically generated automatically as part of each job.
|
||||
//
|
||||
// Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
// environment variable to your jobs.
|
||||
func (o CacheToGitHubActionsPtrOutput) Token() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v *CacheToGitHubActions) *string {
|
||||
if v == nil {
|
||||
return nil
|
||||
}
|
||||
return v.Token
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// The cache server URL to use for artifacts.
|
||||
//
|
||||
// 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.
|
||||
func (o CacheToGitHubActionsPtrOutput) Url() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v *CacheToGitHubActions) *string {
|
||||
if v == nil {
|
||||
return nil
|
||||
}
|
||||
return v.Url
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// Include an inline cache with the exported image.
|
||||
type CacheToInline struct {
|
||||
}
|
||||
|
||||
158
sdk/go/dockerbuild/x/pulumiTypes.go
generated
158
sdk/go/dockerbuild/x/pulumiTypes.go
generated
@@ -393,16 +393,25 @@ func (o CacheFromAzureBlobOutput) SecretAccessKey() pulumix.Output[*string] {
|
||||
return pulumix.Apply[CacheFromAzureBlob](o, func(v CacheFromAzureBlob) *string { return v.SecretAccessKey })
|
||||
}
|
||||
|
||||
// Recommended for use with GitHub Actions workflows.
|
||||
//
|
||||
// An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
// appropriate credentials to your GitHub workflow.
|
||||
type CacheFromGitHubActions struct {
|
||||
// The scope to use for cache keys. Defaults to `buildkit`.
|
||||
//
|
||||
// This should be set if building and caching multiple images in one
|
||||
// workflow, otherwise caches will overwrite each other.
|
||||
Scope *string `pulumi:"scope"`
|
||||
// The GitHub Actions token to use. This is not a personal access tokens
|
||||
// and is typically generated automatically as part of each job.
|
||||
//
|
||||
// Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
// environment variable to your jobs.
|
||||
Token *string `pulumi:"token"`
|
||||
// The cache server URL to use for artifacts.
|
||||
//
|
||||
// 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.
|
||||
Url *string `pulumi:"url"`
|
||||
}
|
||||
|
||||
// Defaults sets the appropriate defaults for CacheFromGitHubActions
|
||||
@@ -415,19 +424,40 @@ func (val *CacheFromGitHubActions) Defaults() *CacheFromGitHubActions {
|
||||
scope_ := "buildkit"
|
||||
tmp.Scope = &scope_
|
||||
}
|
||||
if tmp.Token == nil {
|
||||
if d := internal.GetEnvOrDefault("", nil, "ACTIONS_RUNTIME_TOKEN"); d != nil {
|
||||
token_ := d.(string)
|
||||
tmp.Token = &token_
|
||||
}
|
||||
}
|
||||
if tmp.Url == nil {
|
||||
if d := internal.GetEnvOrDefault("", nil, "ACTIONS_CACHE_URL"); d != nil {
|
||||
url_ := d.(string)
|
||||
tmp.Url = &url_
|
||||
}
|
||||
}
|
||||
return &tmp
|
||||
}
|
||||
|
||||
// Recommended for use with GitHub Actions workflows.
|
||||
//
|
||||
// An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
// appropriate credentials to your GitHub workflow.
|
||||
type CacheFromGitHubActionsArgs struct {
|
||||
// The scope to use for cache keys. Defaults to `buildkit`.
|
||||
//
|
||||
// This should be set if building and caching multiple images in one
|
||||
// workflow, otherwise caches will overwrite each other.
|
||||
Scope pulumix.Input[*string] `pulumi:"scope"`
|
||||
// The GitHub Actions token to use. This is not a personal access tokens
|
||||
// and is typically generated automatically as part of each job.
|
||||
//
|
||||
// Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
// environment variable to your jobs.
|
||||
Token pulumix.Input[*string] `pulumi:"token"`
|
||||
// The cache server URL to use for artifacts.
|
||||
//
|
||||
// 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.
|
||||
Url pulumix.Input[*string] `pulumi:"url"`
|
||||
}
|
||||
|
||||
// Defaults sets the appropriate defaults for CacheFromGitHubActionsArgs
|
||||
@@ -439,6 +469,16 @@ func (val *CacheFromGitHubActionsArgs) Defaults() *CacheFromGitHubActionsArgs {
|
||||
if tmp.Scope == nil {
|
||||
tmp.Scope = pulumix.Ptr("buildkit")
|
||||
}
|
||||
if tmp.Token == nil {
|
||||
if d := internal.GetEnvOrDefault("", nil, "ACTIONS_RUNTIME_TOKEN"); d != nil {
|
||||
tmp.Token = pulumix.Ptr(d.(string))
|
||||
}
|
||||
}
|
||||
if tmp.Url == nil {
|
||||
if d := internal.GetEnvOrDefault("", nil, "ACTIONS_CACHE_URL"); d != nil {
|
||||
tmp.Url = pulumix.Ptr(d.(string))
|
||||
}
|
||||
}
|
||||
return &tmp
|
||||
}
|
||||
func (CacheFromGitHubActionsArgs) ElementType() reflect.Type {
|
||||
@@ -457,10 +497,6 @@ func (i *CacheFromGitHubActionsArgs) ToOutput(ctx context.Context) pulumix.Outpu
|
||||
return pulumix.Val(i)
|
||||
}
|
||||
|
||||
// Recommended for use with GitHub Actions workflows.
|
||||
//
|
||||
// An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
// appropriate credentials to your GitHub workflow.
|
||||
type CacheFromGitHubActionsOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (CacheFromGitHubActionsOutput) ElementType() reflect.Type {
|
||||
@@ -489,6 +525,25 @@ func (o CacheFromGitHubActionsOutput) Scope() pulumix.Output[*string] {
|
||||
return pulumix.Apply[CacheFromGitHubActions](o, func(v CacheFromGitHubActions) *string { return v.Scope })
|
||||
}
|
||||
|
||||
// The GitHub Actions token to use. This is not a personal access tokens
|
||||
// and is typically generated automatically as part of each job.
|
||||
//
|
||||
// Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
// environment variable to your jobs.
|
||||
func (o CacheFromGitHubActionsOutput) Token() pulumix.Output[*string] {
|
||||
return pulumix.Apply[CacheFromGitHubActions](o, func(v CacheFromGitHubActions) *string { return v.Token })
|
||||
}
|
||||
|
||||
// The cache server URL to use for artifacts.
|
||||
//
|
||||
// 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.
|
||||
func (o CacheFromGitHubActionsOutput) Url() pulumix.Output[*string] {
|
||||
return pulumix.Apply[CacheFromGitHubActions](o, func(v CacheFromGitHubActions) *string { return v.Url })
|
||||
}
|
||||
|
||||
type CacheFromLocal struct {
|
||||
// Digest of manifest to import.
|
||||
Digest *string `pulumi:"digest"`
|
||||
@@ -1079,10 +1134,6 @@ func (o CacheToAzureBlobOutput) SecretAccessKey() pulumix.Output[*string] {
|
||||
return pulumix.Apply[CacheToAzureBlob](o, func(v CacheToAzureBlob) *string { return v.SecretAccessKey })
|
||||
}
|
||||
|
||||
// Recommended for use with GitHub Actions workflows.
|
||||
//
|
||||
// An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
// appropriate credentials to your GitHub workflow.
|
||||
type CacheToGitHubActions struct {
|
||||
// Ignore errors caused by failed cache exports.
|
||||
IgnoreError *bool `pulumi:"ignoreError"`
|
||||
@@ -1093,6 +1144,19 @@ type CacheToGitHubActions struct {
|
||||
// This should be set if building and caching multiple images in one
|
||||
// workflow, otherwise caches will overwrite each other.
|
||||
Scope *string `pulumi:"scope"`
|
||||
// The GitHub Actions token to use. This is not a personal access tokens
|
||||
// and is typically generated automatically as part of each job.
|
||||
//
|
||||
// Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
// environment variable to your jobs.
|
||||
Token *string `pulumi:"token"`
|
||||
// The cache server URL to use for artifacts.
|
||||
//
|
||||
// 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.
|
||||
Url *string `pulumi:"url"`
|
||||
}
|
||||
|
||||
// Defaults sets the appropriate defaults for CacheToGitHubActions
|
||||
@@ -1113,13 +1177,21 @@ func (val *CacheToGitHubActions) Defaults() *CacheToGitHubActions {
|
||||
scope_ := "buildkit"
|
||||
tmp.Scope = &scope_
|
||||
}
|
||||
if tmp.Token == nil {
|
||||
if d := internal.GetEnvOrDefault("", nil, "ACTIONS_RUNTIME_TOKEN"); d != nil {
|
||||
token_ := d.(string)
|
||||
tmp.Token = &token_
|
||||
}
|
||||
}
|
||||
if tmp.Url == nil {
|
||||
if d := internal.GetEnvOrDefault("", nil, "ACTIONS_CACHE_URL"); d != nil {
|
||||
url_ := d.(string)
|
||||
tmp.Url = &url_
|
||||
}
|
||||
}
|
||||
return &tmp
|
||||
}
|
||||
|
||||
// Recommended for use with GitHub Actions workflows.
|
||||
//
|
||||
// An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
// appropriate credentials to your GitHub workflow.
|
||||
type CacheToGitHubActionsArgs struct {
|
||||
// Ignore errors caused by failed cache exports.
|
||||
IgnoreError pulumix.Input[*bool] `pulumi:"ignoreError"`
|
||||
@@ -1130,6 +1202,19 @@ type CacheToGitHubActionsArgs struct {
|
||||
// This should be set if building and caching multiple images in one
|
||||
// workflow, otherwise caches will overwrite each other.
|
||||
Scope pulumix.Input[*string] `pulumi:"scope"`
|
||||
// The GitHub Actions token to use. This is not a personal access tokens
|
||||
// and is typically generated automatically as part of each job.
|
||||
//
|
||||
// Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
// environment variable to your jobs.
|
||||
Token pulumix.Input[*string] `pulumi:"token"`
|
||||
// The cache server URL to use for artifacts.
|
||||
//
|
||||
// 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.
|
||||
Url pulumix.Input[*string] `pulumi:"url"`
|
||||
}
|
||||
|
||||
// Defaults sets the appropriate defaults for CacheToGitHubActionsArgs
|
||||
@@ -1147,6 +1232,16 @@ func (val *CacheToGitHubActionsArgs) Defaults() *CacheToGitHubActionsArgs {
|
||||
if tmp.Scope == nil {
|
||||
tmp.Scope = pulumix.Ptr("buildkit")
|
||||
}
|
||||
if tmp.Token == nil {
|
||||
if d := internal.GetEnvOrDefault("", nil, "ACTIONS_RUNTIME_TOKEN"); d != nil {
|
||||
tmp.Token = pulumix.Ptr(d.(string))
|
||||
}
|
||||
}
|
||||
if tmp.Url == nil {
|
||||
if d := internal.GetEnvOrDefault("", nil, "ACTIONS_CACHE_URL"); d != nil {
|
||||
tmp.Url = pulumix.Ptr(d.(string))
|
||||
}
|
||||
}
|
||||
return &tmp
|
||||
}
|
||||
func (CacheToGitHubActionsArgs) ElementType() reflect.Type {
|
||||
@@ -1165,10 +1260,6 @@ func (i *CacheToGitHubActionsArgs) ToOutput(ctx context.Context) pulumix.Output[
|
||||
return pulumix.Val(i)
|
||||
}
|
||||
|
||||
// Recommended for use with GitHub Actions workflows.
|
||||
//
|
||||
// An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
// appropriate credentials to your GitHub workflow.
|
||||
type CacheToGitHubActionsOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (CacheToGitHubActionsOutput) ElementType() reflect.Type {
|
||||
@@ -1207,6 +1298,25 @@ func (o CacheToGitHubActionsOutput) Scope() pulumix.Output[*string] {
|
||||
return pulumix.Apply[CacheToGitHubActions](o, func(v CacheToGitHubActions) *string { return v.Scope })
|
||||
}
|
||||
|
||||
// The GitHub Actions token to use. This is not a personal access tokens
|
||||
// and is typically generated automatically as part of each job.
|
||||
//
|
||||
// Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
// environment variable to your jobs.
|
||||
func (o CacheToGitHubActionsOutput) Token() pulumix.Output[*string] {
|
||||
return pulumix.Apply[CacheToGitHubActions](o, func(v CacheToGitHubActions) *string { return v.Token })
|
||||
}
|
||||
|
||||
// The cache server URL to use for artifacts.
|
||||
//
|
||||
// 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.
|
||||
func (o CacheToGitHubActionsOutput) Url() pulumix.Output[*string] {
|
||||
return pulumix.Apply[CacheToGitHubActions](o, func(v CacheToGitHubActions) *string { return v.Url })
|
||||
}
|
||||
|
||||
// Include an inline cache with the exported image.
|
||||
type CacheToInline struct {
|
||||
}
|
||||
|
||||
@@ -12,13 +12,6 @@ import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
/**
|
||||
* Recommended for use with GitHub Actions workflows.
|
||||
*
|
||||
* An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
* appropriate credentials to your GitHub workflow.
|
||||
*
|
||||
*/
|
||||
public final class CacheFromGitHubActionsArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final CacheFromGitHubActionsArgs Empty = new CacheFromGitHubActionsArgs();
|
||||
@@ -44,10 +37,60 @@ public final class CacheFromGitHubActionsArgs extends com.pulumi.resources.Resou
|
||||
return Optional.ofNullable(this.scope);
|
||||
}
|
||||
|
||||
/**
|
||||
* The GitHub Actions token to use. This is not a personal access tokens
|
||||
* and is typically generated automatically as part of each job.
|
||||
*
|
||||
* Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
*/
|
||||
@Import(name="token")
|
||||
private @Nullable Output<String> token;
|
||||
|
||||
/**
|
||||
* @return The GitHub Actions token to use. This is not a personal access tokens
|
||||
* and is typically generated automatically as part of each job.
|
||||
*
|
||||
* Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> token() {
|
||||
return Optional.ofNullable(this.token);
|
||||
}
|
||||
|
||||
/**
|
||||
* The cache server URL to use for artifacts.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
@Import(name="url")
|
||||
private @Nullable Output<String> url;
|
||||
|
||||
/**
|
||||
* @return The cache server URL to use for artifacts.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> url() {
|
||||
return Optional.ofNullable(this.url);
|
||||
}
|
||||
|
||||
private CacheFromGitHubActionsArgs() {}
|
||||
|
||||
private CacheFromGitHubActionsArgs(CacheFromGitHubActionsArgs $) {
|
||||
this.scope = $.scope;
|
||||
this.token = $.token;
|
||||
this.url = $.url;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
@@ -95,8 +138,70 @@ public final class CacheFromGitHubActionsArgs extends com.pulumi.resources.Resou
|
||||
return scope(Output.of(scope));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param token The GitHub Actions token to use. This is not a personal access tokens
|
||||
* and is typically generated automatically as part of each job.
|
||||
*
|
||||
* Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder token(@Nullable Output<String> token) {
|
||||
$.token = token;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param token The GitHub Actions token to use. This is not a personal access tokens
|
||||
* and is typically generated automatically as part of each job.
|
||||
*
|
||||
* Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder token(String token) {
|
||||
return token(Output.of(token));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param url The cache server URL to use for artifacts.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder url(@Nullable Output<String> url) {
|
||||
$.url = url;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param url The cache server URL to use for artifacts.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder url(String url) {
|
||||
return url(Output.of(url));
|
||||
}
|
||||
|
||||
public CacheFromGitHubActionsArgs build() {
|
||||
$.scope = Codegen.stringProp("scope").output().arg($.scope).def("buildkit").getNullable();
|
||||
$.token = Codegen.stringProp("token").secret().arg($.token).env("ACTIONS_RUNTIME_TOKEN").def("").getNullable();
|
||||
$.url = Codegen.stringProp("url").output().arg($.url).env("ACTIONS_CACHE_URL").def("").getNullable();
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,13 +14,6 @@ import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
/**
|
||||
* Recommended for use with GitHub Actions workflows.
|
||||
*
|
||||
* An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
* appropriate credentials to your GitHub workflow.
|
||||
*
|
||||
*/
|
||||
public final class CacheToGitHubActionsArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final CacheToGitHubActionsArgs Empty = new CacheToGitHubActionsArgs();
|
||||
@@ -76,12 +69,62 @@ public final class CacheToGitHubActionsArgs extends com.pulumi.resources.Resourc
|
||||
return Optional.ofNullable(this.scope);
|
||||
}
|
||||
|
||||
/**
|
||||
* The GitHub Actions token to use. This is not a personal access tokens
|
||||
* and is typically generated automatically as part of each job.
|
||||
*
|
||||
* Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
*/
|
||||
@Import(name="token")
|
||||
private @Nullable Output<String> token;
|
||||
|
||||
/**
|
||||
* @return The GitHub Actions token to use. This is not a personal access tokens
|
||||
* and is typically generated automatically as part of each job.
|
||||
*
|
||||
* Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> token() {
|
||||
return Optional.ofNullable(this.token);
|
||||
}
|
||||
|
||||
/**
|
||||
* The cache server URL to use for artifacts.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
@Import(name="url")
|
||||
private @Nullable Output<String> url;
|
||||
|
||||
/**
|
||||
* @return The cache server URL to use for artifacts.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> url() {
|
||||
return Optional.ofNullable(this.url);
|
||||
}
|
||||
|
||||
private CacheToGitHubActionsArgs() {}
|
||||
|
||||
private CacheToGitHubActionsArgs(CacheToGitHubActionsArgs $) {
|
||||
this.ignoreError = $.ignoreError;
|
||||
this.mode = $.mode;
|
||||
this.scope = $.scope;
|
||||
this.token = $.token;
|
||||
this.url = $.url;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
@@ -171,10 +214,72 @@ public final class CacheToGitHubActionsArgs extends com.pulumi.resources.Resourc
|
||||
return scope(Output.of(scope));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param token The GitHub Actions token to use. This is not a personal access tokens
|
||||
* and is typically generated automatically as part of each job.
|
||||
*
|
||||
* Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder token(@Nullable Output<String> token) {
|
||||
$.token = token;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param token The GitHub Actions token to use. This is not a personal access tokens
|
||||
* and is typically generated automatically as part of each job.
|
||||
*
|
||||
* Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder token(String token) {
|
||||
return token(Output.of(token));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param url The cache server URL to use for artifacts.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder url(@Nullable Output<String> url) {
|
||||
$.url = url;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param url The cache server URL to use for artifacts.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder url(String url) {
|
||||
return url(Output.of(url));
|
||||
}
|
||||
|
||||
public CacheToGitHubActionsArgs build() {
|
||||
$.ignoreError = Codegen.booleanProp("ignoreError").output().arg($.ignoreError).def(false).getNullable();
|
||||
$.mode = Codegen.objectProp("mode", CacheMode.class).output().arg($.mode).def(CacheMode.Min).getNullable();
|
||||
$.scope = Codegen.stringProp("scope").output().arg($.scope).def("buildkit").getNullable();
|
||||
$.token = Codegen.stringProp("token").secret().arg($.token).env("ACTIONS_RUNTIME_TOKEN").def("").getNullable();
|
||||
$.url = Codegen.stringProp("url").output().arg($.url).env("ACTIONS_CACHE_URL").def("").getNullable();
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,6 +19,25 @@ public final class CacheFromGitHubActions {
|
||||
*
|
||||
*/
|
||||
private @Nullable String scope;
|
||||
/**
|
||||
* @return The GitHub Actions token to use. This is not a personal access tokens
|
||||
* and is typically generated automatically as part of each job.
|
||||
*
|
||||
* Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
*/
|
||||
private @Nullable String token;
|
||||
/**
|
||||
* @return The cache server URL to use for artifacts.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
private @Nullable String url;
|
||||
|
||||
private CacheFromGitHubActions() {}
|
||||
/**
|
||||
@@ -31,6 +50,29 @@ public final class CacheFromGitHubActions {
|
||||
public Optional<String> scope() {
|
||||
return Optional.ofNullable(this.scope);
|
||||
}
|
||||
/**
|
||||
* @return The GitHub Actions token to use. This is not a personal access tokens
|
||||
* and is typically generated automatically as part of each job.
|
||||
*
|
||||
* Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
*/
|
||||
public Optional<String> token() {
|
||||
return Optional.ofNullable(this.token);
|
||||
}
|
||||
/**
|
||||
* @return The cache server URL to use for artifacts.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
public Optional<String> url() {
|
||||
return Optional.ofNullable(this.url);
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
@@ -42,10 +84,14 @@ public final class CacheFromGitHubActions {
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private @Nullable String scope;
|
||||
private @Nullable String token;
|
||||
private @Nullable String url;
|
||||
public Builder() {}
|
||||
public Builder(CacheFromGitHubActions defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.scope = defaults.scope;
|
||||
this.token = defaults.token;
|
||||
this.url = defaults.url;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
@@ -54,9 +100,23 @@ public final class CacheFromGitHubActions {
|
||||
this.scope = scope;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder token(@Nullable String token) {
|
||||
|
||||
this.token = token;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder url(@Nullable String url) {
|
||||
|
||||
this.url = url;
|
||||
return this;
|
||||
}
|
||||
public CacheFromGitHubActions build() {
|
||||
final var _resultValue = new CacheFromGitHubActions();
|
||||
_resultValue.scope = scope;
|
||||
_resultValue.token = token;
|
||||
_resultValue.url = url;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,6 +31,25 @@ public final class CacheToGitHubActions {
|
||||
*
|
||||
*/
|
||||
private @Nullable String scope;
|
||||
/**
|
||||
* @return The GitHub Actions token to use. This is not a personal access tokens
|
||||
* and is typically generated automatically as part of each job.
|
||||
*
|
||||
* Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
*/
|
||||
private @Nullable String token;
|
||||
/**
|
||||
* @return The cache server URL to use for artifacts.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
private @Nullable String url;
|
||||
|
||||
private CacheToGitHubActions() {}
|
||||
/**
|
||||
@@ -57,6 +76,29 @@ public final class CacheToGitHubActions {
|
||||
public Optional<String> scope() {
|
||||
return Optional.ofNullable(this.scope);
|
||||
}
|
||||
/**
|
||||
* @return The GitHub Actions token to use. This is not a personal access tokens
|
||||
* and is typically generated automatically as part of each job.
|
||||
*
|
||||
* Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
*/
|
||||
public Optional<String> token() {
|
||||
return Optional.ofNullable(this.token);
|
||||
}
|
||||
/**
|
||||
* @return The cache server URL to use for artifacts.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
public Optional<String> url() {
|
||||
return Optional.ofNullable(this.url);
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
@@ -70,12 +112,16 @@ public final class CacheToGitHubActions {
|
||||
private @Nullable Boolean ignoreError;
|
||||
private @Nullable CacheMode mode;
|
||||
private @Nullable String scope;
|
||||
private @Nullable String token;
|
||||
private @Nullable String url;
|
||||
public Builder() {}
|
||||
public Builder(CacheToGitHubActions defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.ignoreError = defaults.ignoreError;
|
||||
this.mode = defaults.mode;
|
||||
this.scope = defaults.scope;
|
||||
this.token = defaults.token;
|
||||
this.url = defaults.url;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
@@ -96,11 +142,25 @@ public final class CacheToGitHubActions {
|
||||
this.scope = scope;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder token(@Nullable String token) {
|
||||
|
||||
this.token = token;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder url(@Nullable String url) {
|
||||
|
||||
this.url = url;
|
||||
return this;
|
||||
}
|
||||
public CacheToGitHubActions build() {
|
||||
final var _resultValue = new CacheToGitHubActions();
|
||||
_resultValue.ignoreError = ignoreError;
|
||||
_resultValue.mode = mode;
|
||||
_resultValue.scope = scope;
|
||||
_resultValue.token = token;
|
||||
_resultValue.url = url;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
|
||||
50
sdk/nodejs/types/input.ts
generated
50
sdk/nodejs/types/input.ts
generated
@@ -104,12 +104,6 @@ export interface CacheFromAzureBlobArgs {
|
||||
secretAccessKey?: pulumi.Input<string>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Recommended for use with GitHub Actions workflows.
|
||||
*
|
||||
* An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
* appropriate credentials to your GitHub workflow.
|
||||
*/
|
||||
export interface CacheFromGitHubActionsArgs {
|
||||
/**
|
||||
* The scope to use for cache keys. Defaults to `buildkit`.
|
||||
@@ -118,6 +112,23 @@ export interface CacheFromGitHubActionsArgs {
|
||||
* workflow, otherwise caches will overwrite each other.
|
||||
*/
|
||||
scope?: pulumi.Input<string>;
|
||||
/**
|
||||
* The GitHub Actions token to use. This is not a personal access tokens
|
||||
* and is typically generated automatically as part of each job.
|
||||
*
|
||||
* Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*/
|
||||
token?: pulumi.Input<string>;
|
||||
/**
|
||||
* The cache server URL to use for artifacts.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
url?: pulumi.Input<string>;
|
||||
}
|
||||
/**
|
||||
* cacheFromGitHubActionsArgsProvideDefaults sets the appropriate defaults for CacheFromGitHubActionsArgs
|
||||
@@ -126,6 +137,8 @@ export function cacheFromGitHubActionsArgsProvideDefaults(val: CacheFromGitHubAc
|
||||
return {
|
||||
...val,
|
||||
scope: (val.scope) ?? "buildkit",
|
||||
token: (val.token) ?? (utilities.getEnv("ACTIONS_RUNTIME_TOKEN") || ""),
|
||||
url: (val.url) ?? (utilities.getEnv("ACTIONS_CACHE_URL") || ""),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -290,12 +303,6 @@ export function cacheToAzureBlobArgsProvideDefaults(val: CacheToAzureBlobArgs):
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Recommended for use with GitHub Actions workflows.
|
||||
*
|
||||
* An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
* appropriate credentials to your GitHub workflow.
|
||||
*/
|
||||
export interface CacheToGitHubActionsArgs {
|
||||
/**
|
||||
* Ignore errors caused by failed cache exports.
|
||||
@@ -312,6 +319,23 @@ export interface CacheToGitHubActionsArgs {
|
||||
* workflow, otherwise caches will overwrite each other.
|
||||
*/
|
||||
scope?: pulumi.Input<string>;
|
||||
/**
|
||||
* The GitHub Actions token to use. This is not a personal access tokens
|
||||
* and is typically generated automatically as part of each job.
|
||||
*
|
||||
* Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*/
|
||||
token?: pulumi.Input<string>;
|
||||
/**
|
||||
* The cache server URL to use for artifacts.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
url?: pulumi.Input<string>;
|
||||
}
|
||||
/**
|
||||
* cacheToGitHubActionsArgsProvideDefaults sets the appropriate defaults for CacheToGitHubActionsArgs
|
||||
@@ -322,6 +346,8 @@ export function cacheToGitHubActionsArgsProvideDefaults(val: CacheToGitHubAction
|
||||
ignoreError: (val.ignoreError) ?? false,
|
||||
mode: (val.mode) ?? "min",
|
||||
scope: (val.scope) ?? "buildkit",
|
||||
token: (val.token) ?? (utilities.getEnv("ACTIONS_RUNTIME_TOKEN") || ""),
|
||||
url: (val.url) ?? (utilities.getEnv("ACTIONS_CACHE_URL") || ""),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
50
sdk/nodejs/types/output.ts
generated
50
sdk/nodejs/types/output.ts
generated
@@ -104,12 +104,6 @@ export interface CacheFromAzureBlob {
|
||||
secretAccessKey?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Recommended for use with GitHub Actions workflows.
|
||||
*
|
||||
* An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
* appropriate credentials to your GitHub workflow.
|
||||
*/
|
||||
export interface CacheFromGitHubActions {
|
||||
/**
|
||||
* The scope to use for cache keys. Defaults to `buildkit`.
|
||||
@@ -118,6 +112,23 @@ export interface CacheFromGitHubActions {
|
||||
* workflow, otherwise caches will overwrite each other.
|
||||
*/
|
||||
scope?: string;
|
||||
/**
|
||||
* The GitHub Actions token to use. This is not a personal access tokens
|
||||
* and is typically generated automatically as part of each job.
|
||||
*
|
||||
* Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*/
|
||||
token?: string;
|
||||
/**
|
||||
* The cache server URL to use for artifacts.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
url?: string;
|
||||
}
|
||||
/**
|
||||
* cacheFromGitHubActionsProvideDefaults sets the appropriate defaults for CacheFromGitHubActions
|
||||
@@ -126,6 +137,8 @@ export function cacheFromGitHubActionsProvideDefaults(val: CacheFromGitHubAction
|
||||
return {
|
||||
...val,
|
||||
scope: (val.scope) ?? "buildkit",
|
||||
token: (val.token) ?? (utilities.getEnv("ACTIONS_RUNTIME_TOKEN") || ""),
|
||||
url: (val.url) ?? (utilities.getEnv("ACTIONS_CACHE_URL") || ""),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -290,12 +303,6 @@ export function cacheToAzureBlobProvideDefaults(val: CacheToAzureBlob): CacheToA
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Recommended for use with GitHub Actions workflows.
|
||||
*
|
||||
* An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
* appropriate credentials to your GitHub workflow.
|
||||
*/
|
||||
export interface CacheToGitHubActions {
|
||||
/**
|
||||
* Ignore errors caused by failed cache exports.
|
||||
@@ -312,6 +319,23 @@ export interface CacheToGitHubActions {
|
||||
* workflow, otherwise caches will overwrite each other.
|
||||
*/
|
||||
scope?: string;
|
||||
/**
|
||||
* The GitHub Actions token to use. This is not a personal access tokens
|
||||
* and is typically generated automatically as part of each job.
|
||||
*
|
||||
* Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*/
|
||||
token?: string;
|
||||
/**
|
||||
* The cache server URL to use for artifacts.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
url?: string;
|
||||
}
|
||||
/**
|
||||
* cacheToGitHubActionsProvideDefaults sets the appropriate defaults for CacheToGitHubActions
|
||||
@@ -322,6 +346,8 @@ export function cacheToGitHubActionsProvideDefaults(val: CacheToGitHubActions):
|
||||
ignoreError: (val.ignoreError) ?? false,
|
||||
mode: (val.mode) ?? "min",
|
||||
scope: (val.scope) ?? "buildkit",
|
||||
token: (val.token) ?? (utilities.getEnv("ACTIONS_RUNTIME_TOKEN") || ""),
|
||||
url: (val.url) ?? (utilities.getEnv("ACTIONS_CACHE_URL") || ""),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
166
sdk/python/pulumi_docker_build/_inputs.py
generated
166
sdk/python/pulumi_docker_build/_inputs.py
generated
@@ -281,12 +281,6 @@ class CacheFromAzureBlobArgs:
|
||||
|
||||
if not MYPY:
|
||||
class CacheFromGitHubActionsArgsDict(TypedDict):
|
||||
"""
|
||||
Recommended for use with GitHub Actions workflows.
|
||||
|
||||
An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
appropriate credentials to your GitHub workflow.
|
||||
"""
|
||||
scope: NotRequired[pulumi.Input[_builtins.str]]
|
||||
"""
|
||||
The scope to use for cache keys. Defaults to `buildkit`.
|
||||
@@ -294,27 +288,61 @@ if not MYPY:
|
||||
This should be set if building and caching multiple images in one
|
||||
workflow, otherwise caches will overwrite each other.
|
||||
"""
|
||||
token: NotRequired[pulumi.Input[_builtins.str]]
|
||||
"""
|
||||
The GitHub Actions token to use. This is not a personal access tokens
|
||||
and is typically generated automatically as part of each job.
|
||||
|
||||
Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
environment variable to your jobs.
|
||||
"""
|
||||
url: NotRequired[pulumi.Input[_builtins.str]]
|
||||
"""
|
||||
The cache server URL to use for artifacts.
|
||||
|
||||
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.
|
||||
"""
|
||||
elif False:
|
||||
CacheFromGitHubActionsArgsDict: TypeAlias = Mapping[str, Any]
|
||||
|
||||
@pulumi.input_type
|
||||
class CacheFromGitHubActionsArgs:
|
||||
def __init__(__self__, *,
|
||||
scope: Optional[pulumi.Input[_builtins.str]] = None):
|
||||
scope: Optional[pulumi.Input[_builtins.str]] = None,
|
||||
token: Optional[pulumi.Input[_builtins.str]] = None,
|
||||
url: Optional[pulumi.Input[_builtins.str]] = None):
|
||||
"""
|
||||
Recommended for use with GitHub Actions workflows.
|
||||
|
||||
An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
appropriate credentials to your GitHub workflow.
|
||||
:param pulumi.Input[_builtins.str] scope: The scope to use for cache keys. Defaults to `buildkit`.
|
||||
|
||||
This should be set if building and caching multiple images in one
|
||||
workflow, otherwise caches will overwrite each other.
|
||||
:param pulumi.Input[_builtins.str] token: The GitHub Actions token to use. This is not a personal access tokens
|
||||
and is typically generated automatically as part of each job.
|
||||
|
||||
Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
environment variable to your jobs.
|
||||
:param pulumi.Input[_builtins.str] url: The cache server URL to use for artifacts.
|
||||
|
||||
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.
|
||||
"""
|
||||
if scope is None:
|
||||
scope = 'buildkit'
|
||||
if scope is not None:
|
||||
pulumi.set(__self__, "scope", scope)
|
||||
if token is None:
|
||||
token = (_utilities.get_env('ACTIONS_RUNTIME_TOKEN') or '')
|
||||
if token is not None:
|
||||
pulumi.set(__self__, "token", token)
|
||||
if url is None:
|
||||
url = (_utilities.get_env('ACTIONS_CACHE_URL') or '')
|
||||
if url is not None:
|
||||
pulumi.set(__self__, "url", url)
|
||||
|
||||
@_builtins.property
|
||||
@pulumi.getter
|
||||
@@ -331,6 +359,39 @@ class CacheFromGitHubActionsArgs:
|
||||
def scope(self, value: Optional[pulumi.Input[_builtins.str]]):
|
||||
pulumi.set(self, "scope", value)
|
||||
|
||||
@_builtins.property
|
||||
@pulumi.getter
|
||||
def token(self) -> Optional[pulumi.Input[_builtins.str]]:
|
||||
"""
|
||||
The GitHub Actions token to use. This is not a personal access tokens
|
||||
and is typically generated automatically as part of each job.
|
||||
|
||||
Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
environment variable to your jobs.
|
||||
"""
|
||||
return pulumi.get(self, "token")
|
||||
|
||||
@token.setter
|
||||
def token(self, value: Optional[pulumi.Input[_builtins.str]]):
|
||||
pulumi.set(self, "token", value)
|
||||
|
||||
@_builtins.property
|
||||
@pulumi.getter
|
||||
def url(self) -> Optional[pulumi.Input[_builtins.str]]:
|
||||
"""
|
||||
The cache server URL to use for artifacts.
|
||||
|
||||
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.
|
||||
"""
|
||||
return pulumi.get(self, "url")
|
||||
|
||||
@url.setter
|
||||
def url(self, value: Optional[pulumi.Input[_builtins.str]]):
|
||||
pulumi.set(self, "url", value)
|
||||
|
||||
|
||||
if not MYPY:
|
||||
class CacheFromLocalArgsDict(TypedDict):
|
||||
@@ -916,12 +977,6 @@ class CacheToAzureBlobArgs:
|
||||
|
||||
if not MYPY:
|
||||
class CacheToGitHubActionsArgsDict(TypedDict):
|
||||
"""
|
||||
Recommended for use with GitHub Actions workflows.
|
||||
|
||||
An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
appropriate credentials to your GitHub workflow.
|
||||
"""
|
||||
ignore_error: NotRequired[pulumi.Input[_builtins.bool]]
|
||||
"""
|
||||
Ignore errors caused by failed cache exports.
|
||||
@@ -937,6 +992,23 @@ if not MYPY:
|
||||
This should be set if building and caching multiple images in one
|
||||
workflow, otherwise caches will overwrite each other.
|
||||
"""
|
||||
token: NotRequired[pulumi.Input[_builtins.str]]
|
||||
"""
|
||||
The GitHub Actions token to use. This is not a personal access tokens
|
||||
and is typically generated automatically as part of each job.
|
||||
|
||||
Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
environment variable to your jobs.
|
||||
"""
|
||||
url: NotRequired[pulumi.Input[_builtins.str]]
|
||||
"""
|
||||
The cache server URL to use for artifacts.
|
||||
|
||||
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.
|
||||
"""
|
||||
elif False:
|
||||
CacheToGitHubActionsArgsDict: TypeAlias = Mapping[str, Any]
|
||||
|
||||
@@ -945,18 +1017,27 @@ class CacheToGitHubActionsArgs:
|
||||
def __init__(__self__, *,
|
||||
ignore_error: Optional[pulumi.Input[_builtins.bool]] = None,
|
||||
mode: Optional[pulumi.Input['CacheMode']] = None,
|
||||
scope: Optional[pulumi.Input[_builtins.str]] = None):
|
||||
scope: Optional[pulumi.Input[_builtins.str]] = None,
|
||||
token: Optional[pulumi.Input[_builtins.str]] = None,
|
||||
url: Optional[pulumi.Input[_builtins.str]] = None):
|
||||
"""
|
||||
Recommended for use with GitHub Actions workflows.
|
||||
|
||||
An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
appropriate credentials to your GitHub workflow.
|
||||
:param pulumi.Input[_builtins.bool] ignore_error: Ignore errors caused by failed cache exports.
|
||||
:param pulumi.Input['CacheMode'] mode: The cache mode to use. Defaults to `min`.
|
||||
:param pulumi.Input[_builtins.str] scope: The scope to use for cache keys. Defaults to `buildkit`.
|
||||
|
||||
This should be set if building and caching multiple images in one
|
||||
workflow, otherwise caches will overwrite each other.
|
||||
:param pulumi.Input[_builtins.str] token: The GitHub Actions token to use. This is not a personal access tokens
|
||||
and is typically generated automatically as part of each job.
|
||||
|
||||
Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
environment variable to your jobs.
|
||||
:param pulumi.Input[_builtins.str] url: The cache server URL to use for artifacts.
|
||||
|
||||
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.
|
||||
"""
|
||||
if ignore_error is None:
|
||||
ignore_error = False
|
||||
@@ -970,6 +1051,14 @@ class CacheToGitHubActionsArgs:
|
||||
scope = 'buildkit'
|
||||
if scope is not None:
|
||||
pulumi.set(__self__, "scope", scope)
|
||||
if token is None:
|
||||
token = (_utilities.get_env('ACTIONS_RUNTIME_TOKEN') or '')
|
||||
if token is not None:
|
||||
pulumi.set(__self__, "token", token)
|
||||
if url is None:
|
||||
url = (_utilities.get_env('ACTIONS_CACHE_URL') or '')
|
||||
if url is not None:
|
||||
pulumi.set(__self__, "url", url)
|
||||
|
||||
@_builtins.property
|
||||
@pulumi.getter(name="ignoreError")
|
||||
@@ -1010,6 +1099,39 @@ class CacheToGitHubActionsArgs:
|
||||
def scope(self, value: Optional[pulumi.Input[_builtins.str]]):
|
||||
pulumi.set(self, "scope", value)
|
||||
|
||||
@_builtins.property
|
||||
@pulumi.getter
|
||||
def token(self) -> Optional[pulumi.Input[_builtins.str]]:
|
||||
"""
|
||||
The GitHub Actions token to use. This is not a personal access tokens
|
||||
and is typically generated automatically as part of each job.
|
||||
|
||||
Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
environment variable to your jobs.
|
||||
"""
|
||||
return pulumi.get(self, "token")
|
||||
|
||||
@token.setter
|
||||
def token(self, value: Optional[pulumi.Input[_builtins.str]]):
|
||||
pulumi.set(self, "token", value)
|
||||
|
||||
@_builtins.property
|
||||
@pulumi.getter
|
||||
def url(self) -> Optional[pulumi.Input[_builtins.str]]:
|
||||
"""
|
||||
The cache server URL to use for artifacts.
|
||||
|
||||
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.
|
||||
"""
|
||||
return pulumi.get(self, "url")
|
||||
|
||||
@url.setter
|
||||
def url(self, value: Optional[pulumi.Input[_builtins.str]]):
|
||||
pulumi.set(self, "url", value)
|
||||
|
||||
|
||||
if not MYPY:
|
||||
class CacheToInlineArgsDict(TypedDict):
|
||||
|
||||
116
sdk/python/pulumi_docker_build/outputs.py
generated
116
sdk/python/pulumi_docker_build/outputs.py
generated
@@ -293,28 +293,39 @@ class CacheFromAzureBlob(dict):
|
||||
|
||||
@pulumi.output_type
|
||||
class CacheFromGitHubActions(dict):
|
||||
"""
|
||||
Recommended for use with GitHub Actions workflows.
|
||||
|
||||
An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
appropriate credentials to your GitHub workflow.
|
||||
"""
|
||||
def __init__(__self__, *,
|
||||
scope: Optional[_builtins.str] = None):
|
||||
scope: Optional[_builtins.str] = None,
|
||||
token: Optional[_builtins.str] = None,
|
||||
url: Optional[_builtins.str] = None):
|
||||
"""
|
||||
Recommended for use with GitHub Actions workflows.
|
||||
|
||||
An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
appropriate credentials to your GitHub workflow.
|
||||
:param _builtins.str scope: The scope to use for cache keys. Defaults to `buildkit`.
|
||||
|
||||
This should be set if building and caching multiple images in one
|
||||
workflow, otherwise caches will overwrite each other.
|
||||
:param _builtins.str token: The GitHub Actions token to use. This is not a personal access tokens
|
||||
and is typically generated automatically as part of each job.
|
||||
|
||||
Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
environment variable to your jobs.
|
||||
:param _builtins.str url: The cache server URL to use for artifacts.
|
||||
|
||||
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.
|
||||
"""
|
||||
if scope is None:
|
||||
scope = 'buildkit'
|
||||
if scope is not None:
|
||||
pulumi.set(__self__, "scope", scope)
|
||||
if token is None:
|
||||
token = (_utilities.get_env('ACTIONS_RUNTIME_TOKEN') or '')
|
||||
if token is not None:
|
||||
pulumi.set(__self__, "token", token)
|
||||
if url is None:
|
||||
url = (_utilities.get_env('ACTIONS_CACHE_URL') or '')
|
||||
if url is not None:
|
||||
pulumi.set(__self__, "url", url)
|
||||
|
||||
@_builtins.property
|
||||
@pulumi.getter
|
||||
@@ -327,6 +338,31 @@ class CacheFromGitHubActions(dict):
|
||||
"""
|
||||
return pulumi.get(self, "scope")
|
||||
|
||||
@_builtins.property
|
||||
@pulumi.getter
|
||||
def token(self) -> Optional[_builtins.str]:
|
||||
"""
|
||||
The GitHub Actions token to use. This is not a personal access tokens
|
||||
and is typically generated automatically as part of each job.
|
||||
|
||||
Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
environment variable to your jobs.
|
||||
"""
|
||||
return pulumi.get(self, "token")
|
||||
|
||||
@_builtins.property
|
||||
@pulumi.getter
|
||||
def url(self) -> Optional[_builtins.str]:
|
||||
"""
|
||||
The cache server URL to use for artifacts.
|
||||
|
||||
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.
|
||||
"""
|
||||
return pulumi.get(self, "url")
|
||||
|
||||
|
||||
@pulumi.output_type
|
||||
class CacheFromLocal(dict):
|
||||
@@ -748,12 +784,6 @@ class CacheToAzureBlob(dict):
|
||||
|
||||
@pulumi.output_type
|
||||
class CacheToGitHubActions(dict):
|
||||
"""
|
||||
Recommended for use with GitHub Actions workflows.
|
||||
|
||||
An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
appropriate credentials to your GitHub workflow.
|
||||
"""
|
||||
@staticmethod
|
||||
def __key_warning(key: str):
|
||||
suggest = None
|
||||
@@ -774,18 +804,27 @@ class CacheToGitHubActions(dict):
|
||||
def __init__(__self__, *,
|
||||
ignore_error: Optional[_builtins.bool] = None,
|
||||
mode: Optional['CacheMode'] = None,
|
||||
scope: Optional[_builtins.str] = None):
|
||||
scope: Optional[_builtins.str] = None,
|
||||
token: Optional[_builtins.str] = None,
|
||||
url: Optional[_builtins.str] = None):
|
||||
"""
|
||||
Recommended for use with GitHub Actions workflows.
|
||||
|
||||
An action like `crazy-max/ghaction-github-runtime` is recommended to expose
|
||||
appropriate credentials to your GitHub workflow.
|
||||
:param _builtins.bool ignore_error: Ignore errors caused by failed cache exports.
|
||||
:param 'CacheMode' mode: The cache mode to use. Defaults to `min`.
|
||||
:param _builtins.str scope: The scope to use for cache keys. Defaults to `buildkit`.
|
||||
|
||||
This should be set if building and caching multiple images in one
|
||||
workflow, otherwise caches will overwrite each other.
|
||||
:param _builtins.str token: The GitHub Actions token to use. This is not a personal access tokens
|
||||
and is typically generated automatically as part of each job.
|
||||
|
||||
Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
environment variable to your jobs.
|
||||
:param _builtins.str url: The cache server URL to use for artifacts.
|
||||
|
||||
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.
|
||||
"""
|
||||
if ignore_error is None:
|
||||
ignore_error = False
|
||||
@@ -799,6 +838,14 @@ class CacheToGitHubActions(dict):
|
||||
scope = 'buildkit'
|
||||
if scope is not None:
|
||||
pulumi.set(__self__, "scope", scope)
|
||||
if token is None:
|
||||
token = (_utilities.get_env('ACTIONS_RUNTIME_TOKEN') or '')
|
||||
if token is not None:
|
||||
pulumi.set(__self__, "token", token)
|
||||
if url is None:
|
||||
url = (_utilities.get_env('ACTIONS_CACHE_URL') or '')
|
||||
if url is not None:
|
||||
pulumi.set(__self__, "url", url)
|
||||
|
||||
@_builtins.property
|
||||
@pulumi.getter(name="ignoreError")
|
||||
@@ -827,6 +874,31 @@ class CacheToGitHubActions(dict):
|
||||
"""
|
||||
return pulumi.get(self, "scope")
|
||||
|
||||
@_builtins.property
|
||||
@pulumi.getter
|
||||
def token(self) -> Optional[_builtins.str]:
|
||||
"""
|
||||
The GitHub Actions token to use. This is not a personal access tokens
|
||||
and is typically generated automatically as part of each job.
|
||||
|
||||
Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
environment variable to your jobs.
|
||||
"""
|
||||
return pulumi.get(self, "token")
|
||||
|
||||
@_builtins.property
|
||||
@pulumi.getter
|
||||
def url(self) -> Optional[_builtins.str]:
|
||||
"""
|
||||
The cache server URL to use for artifacts.
|
||||
|
||||
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.
|
||||
"""
|
||||
return pulumi.get(self, "url")
|
||||
|
||||
|
||||
@pulumi.output_type
|
||||
class CacheToInline(dict):
|
||||
|
||||
Reference in New Issue
Block a user