Compare commits
5 Commits
update-pul
...
update-git
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
98048e5e9f | ||
|
|
faffc8cc45 | ||
|
|
2b1230f252 | ||
|
|
eaf5461bbc | ||
|
|
38e65a3f81 |
@@ -1,6 +1,10 @@
|
|||||||
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt
|
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt
|
||||||
|
|
||||||
# Overrides tool versions for test workflows
|
# Overrides for test workflows
|
||||||
|
|
||||||
|
[env]
|
||||||
|
# Acceptance (specifically providertest) tests require that PULUMI_HOME be the default
|
||||||
|
PULUMI_HOME = "{{ env.HOME }}/.pulumi"
|
||||||
|
|
||||||
[tools]
|
[tools]
|
||||||
# always use pulumi latest for tests
|
# always use pulumi latest for tests
|
||||||
|
|||||||
27
.github/workflows/build.yml
vendored
27
.github/workflows/build.yml
vendored
@@ -16,9 +16,7 @@ on:
|
|||||||
workflow_dispatch: {}
|
workflow_dispatch: {}
|
||||||
env:
|
env:
|
||||||
PROVIDER: docker-build
|
PROVIDER: docker-build
|
||||||
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
|
|
||||||
TRAVIS_OS_NAME: linux
|
TRAVIS_OS_NAME: linux
|
||||||
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
|
|
||||||
GOVERSION: "1.21.x"
|
GOVERSION: "1.21.x"
|
||||||
NODEVERSION: "20.x"
|
NODEVERSION: "20.x"
|
||||||
PYTHONVERSION: "3.11.8"
|
PYTHONVERSION: "3.11.8"
|
||||||
@@ -182,7 +180,7 @@ jobs:
|
|||||||
github.workspace}}/bin/ pulumi-resource-${{ env.PROVIDER }}
|
github.workspace}}/bin/ pulumi-resource-${{ env.PROVIDER }}
|
||||||
pulumi-gen-${{ env.PROVIDER}}
|
pulumi-gen-${{ env.PROVIDER}}
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||||
with:
|
with:
|
||||||
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
||||||
path: ${{ github.workspace }}/bin/provider.tar.gz
|
path: ${{ github.workspace }}/bin/provider.tar.gz
|
||||||
@@ -255,7 +253,7 @@ jobs:
|
|||||||
- name: Install Pulumi CLI
|
- name: Install Pulumi CLI
|
||||||
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODEVERSION }}
|
node-version: ${{ env.NODEVERSION }}
|
||||||
registry-url: https://registry.npmjs.org
|
registry-url: https://registry.npmjs.org
|
||||||
@@ -278,7 +276,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
gradle-version: "7.6"
|
gradle-version: "7.6"
|
||||||
- name: Download provider
|
- name: Download provider
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
||||||
path: ${{ github.workspace }}/bin
|
path: ${{ github.workspace }}/bin
|
||||||
@@ -356,7 +354,7 @@ jobs:
|
|||||||
- name: Tar SDK folder
|
- name: Tar SDK folder
|
||||||
run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} .
|
run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} .
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.language }}-sdk.tar.gz
|
name: ${{ matrix.language }}-sdk.tar.gz
|
||||||
path: ${{ github.workspace}}/sdk/${{ matrix.language }}.tar.gz
|
path: ${{ github.workspace}}/sdk/${{ matrix.language }}.tar.gz
|
||||||
@@ -456,7 +454,7 @@ jobs:
|
|||||||
- name: Install Pulumi CLI
|
- name: Install Pulumi CLI
|
||||||
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODEVERSION }}
|
node-version: ${{ env.NODEVERSION }}
|
||||||
registry-url: https://registry.npmjs.org
|
registry-url: https://registry.npmjs.org
|
||||||
@@ -479,7 +477,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
gradle-version: "7.6"
|
gradle-version: "7.6"
|
||||||
- name: Download provider
|
- name: Download provider
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
||||||
path: ${{ github.workspace }}/bin
|
path: ${{ github.workspace }}/bin
|
||||||
@@ -491,7 +489,7 @@ jobs:
|
|||||||
-exec chmod +x {} \;
|
-exec chmod +x {} \;
|
||||||
- name: Download SDK
|
- name: Download SDK
|
||||||
if: ${{ matrix.language != 'yaml' }}
|
if: ${{ matrix.language != 'yaml' }}
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.language }}-sdk.tar.gz
|
name: ${{ matrix.language }}-sdk.tar.gz
|
||||||
path: ${{ github.workspace}}/sdk/
|
path: ${{ github.workspace}}/sdk/
|
||||||
@@ -683,7 +681,7 @@ jobs:
|
|||||||
- name: Install Pulumi CLI
|
- name: Install Pulumi CLI
|
||||||
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODEVERSION }}
|
node-version: ${{ env.NODEVERSION }}
|
||||||
registry-url: https://registry.npmjs.org
|
registry-url: https://registry.npmjs.org
|
||||||
@@ -696,7 +694,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: ${{ env.PYTHONVERSION }}
|
python-version: ${{ env.PYTHONVERSION }}
|
||||||
- name: Download python SDK
|
- name: Download python SDK
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: python-sdk.tar.gz
|
name: python-sdk.tar.gz
|
||||||
path: ${{ github.workspace}}/sdk/
|
path: ${{ github.workspace}}/sdk/
|
||||||
@@ -704,7 +702,7 @@ jobs:
|
|||||||
run: tar -zxf ${{github.workspace}}/sdk/python.tar.gz -C
|
run: tar -zxf ${{github.workspace}}/sdk/python.tar.gz -C
|
||||||
${{github.workspace}}/sdk/python
|
${{github.workspace}}/sdk/python
|
||||||
- name: Download dotnet SDK
|
- name: Download dotnet SDK
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: dotnet-sdk.tar.gz
|
name: dotnet-sdk.tar.gz
|
||||||
path: ${{ github.workspace}}/sdk/
|
path: ${{ github.workspace}}/sdk/
|
||||||
@@ -712,7 +710,7 @@ jobs:
|
|||||||
run: tar -zxf ${{github.workspace}}/sdk/dotnet.tar.gz -C
|
run: tar -zxf ${{github.workspace}}/sdk/dotnet.tar.gz -C
|
||||||
${{github.workspace}}/sdk/dotnet
|
${{github.workspace}}/sdk/dotnet
|
||||||
- name: Download nodejs SDK
|
- name: Download nodejs SDK
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: nodejs-sdk.tar.gz
|
name: nodejs-sdk.tar.gz
|
||||||
path: ${{ github.workspace}}/sdk/
|
path: ${{ github.workspace}}/sdk/
|
||||||
@@ -764,8 +762,7 @@ jobs:
|
|||||||
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
|
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
|
||||||
with:
|
with:
|
||||||
version: ${{ env.GOLANGCI_LINT_VERSION }}
|
version: ${{ env.GOLANGCI_LINT_VERSION }}
|
||||||
args: -c ../.golangci.yml
|
working-directory: .
|
||||||
working-directory: provider
|
|
||||||
name: lint
|
name: lint
|
||||||
if: github.event_name == 'repository_dispatch' ||
|
if: github.event_name == 'repository_dispatch' ||
|
||||||
github.event.pull_request.head.repo.full_name == github.repository
|
github.event.pull_request.head.repo.full_name == github.repository
|
||||||
|
|||||||
28
.github/workflows/prerelease.yml
vendored
28
.github/workflows/prerelease.yml
vendored
@@ -7,9 +7,7 @@ on:
|
|||||||
- v*.*.*-**
|
- v*.*.*-**
|
||||||
env:
|
env:
|
||||||
PROVIDER: docker-build
|
PROVIDER: docker-build
|
||||||
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
|
|
||||||
TRAVIS_OS_NAME: linux
|
TRAVIS_OS_NAME: linux
|
||||||
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
|
|
||||||
GOVERSION: "1.21.x"
|
GOVERSION: "1.21.x"
|
||||||
NODEVERSION: "20.x"
|
NODEVERSION: "20.x"
|
||||||
PYTHONVERSION: "3.11.8"
|
PYTHONVERSION: "3.11.8"
|
||||||
@@ -171,7 +169,7 @@ jobs:
|
|||||||
github.workspace}}/bin/ pulumi-resource-${{ env.PROVIDER }}
|
github.workspace}}/bin/ pulumi-resource-${{ env.PROVIDER }}
|
||||||
pulumi-gen-${{ env.PROVIDER}}
|
pulumi-gen-${{ env.PROVIDER}}
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||||
with:
|
with:
|
||||||
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
||||||
path: ${{ github.workspace }}/bin/provider.tar.gz
|
path: ${{ github.workspace }}/bin/provider.tar.gz
|
||||||
@@ -244,7 +242,7 @@ jobs:
|
|||||||
- name: Install Pulumi CLI
|
- name: Install Pulumi CLI
|
||||||
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODEVERSION }}
|
node-version: ${{ env.NODEVERSION }}
|
||||||
registry-url: https://registry.npmjs.org
|
registry-url: https://registry.npmjs.org
|
||||||
@@ -267,7 +265,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
gradle-version: "7.6"
|
gradle-version: "7.6"
|
||||||
- name: Download provider
|
- name: Download provider
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
||||||
path: ${{ github.workspace }}/bin
|
path: ${{ github.workspace }}/bin
|
||||||
@@ -345,7 +343,7 @@ jobs:
|
|||||||
- name: Tar SDK folder
|
- name: Tar SDK folder
|
||||||
run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} .
|
run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} .
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.language }}-sdk.tar.gz
|
name: ${{ matrix.language }}-sdk.tar.gz
|
||||||
path: ${{ github.workspace}}/sdk/${{ matrix.language }}.tar.gz
|
path: ${{ github.workspace}}/sdk/${{ matrix.language }}.tar.gz
|
||||||
@@ -409,7 +407,7 @@ jobs:
|
|||||||
- name: Install Pulumi CLI
|
- name: Install Pulumi CLI
|
||||||
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODEVERSION }}
|
node-version: ${{ env.NODEVERSION }}
|
||||||
registry-url: https://registry.npmjs.org
|
registry-url: https://registry.npmjs.org
|
||||||
@@ -432,7 +430,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
gradle-version: "7.6"
|
gradle-version: "7.6"
|
||||||
- name: Download provider
|
- name: Download provider
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
||||||
path: ${{ github.workspace }}/bin
|
path: ${{ github.workspace }}/bin
|
||||||
@@ -444,7 +442,7 @@ jobs:
|
|||||||
-exec chmod +x {} \;
|
-exec chmod +x {} \;
|
||||||
- name: Download SDK
|
- name: Download SDK
|
||||||
if: ${{ matrix.language != 'yaml' }}
|
if: ${{ matrix.language != 'yaml' }}
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.language }}-sdk.tar.gz
|
name: ${{ matrix.language }}-sdk.tar.gz
|
||||||
path: ${{ github.workspace}}/sdk/
|
path: ${{ github.workspace}}/sdk/
|
||||||
@@ -636,7 +634,7 @@ jobs:
|
|||||||
- name: Install Pulumi CLI
|
- name: Install Pulumi CLI
|
||||||
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODEVERSION }}
|
node-version: ${{ env.NODEVERSION }}
|
||||||
registry-url: https://registry.npmjs.org
|
registry-url: https://registry.npmjs.org
|
||||||
@@ -649,7 +647,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: ${{ env.PYTHONVERSION }}
|
python-version: ${{ env.PYTHONVERSION }}
|
||||||
- name: Download python SDK
|
- name: Download python SDK
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: python-sdk.tar.gz
|
name: python-sdk.tar.gz
|
||||||
path: ${{ github.workspace}}/sdk/
|
path: ${{ github.workspace}}/sdk/
|
||||||
@@ -657,7 +655,7 @@ jobs:
|
|||||||
run: tar -zxf ${{github.workspace}}/sdk/python.tar.gz -C
|
run: tar -zxf ${{github.workspace}}/sdk/python.tar.gz -C
|
||||||
${{github.workspace}}/sdk/python
|
${{github.workspace}}/sdk/python
|
||||||
- name: Download dotnet SDK
|
- name: Download dotnet SDK
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: dotnet-sdk.tar.gz
|
name: dotnet-sdk.tar.gz
|
||||||
path: ${{ github.workspace}}/sdk/
|
path: ${{ github.workspace}}/sdk/
|
||||||
@@ -665,7 +663,7 @@ jobs:
|
|||||||
run: tar -zxf ${{github.workspace}}/sdk/dotnet.tar.gz -C
|
run: tar -zxf ${{github.workspace}}/sdk/dotnet.tar.gz -C
|
||||||
${{github.workspace}}/sdk/dotnet
|
${{github.workspace}}/sdk/dotnet
|
||||||
- name: Download nodejs SDK
|
- name: Download nodejs SDK
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: nodejs-sdk.tar.gz
|
name: nodejs-sdk.tar.gz
|
||||||
path: ${{ github.workspace}}/sdk/
|
path: ${{ github.workspace}}/sdk/
|
||||||
@@ -742,7 +740,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
gradle-version: "7.6"
|
gradle-version: "7.6"
|
||||||
- name: Download java SDK
|
- name: Download java SDK
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: java-sdk.tar.gz
|
name: java-sdk.tar.gz
|
||||||
path: ${{ github.workspace}}/sdk/
|
path: ${{ github.workspace}}/sdk/
|
||||||
@@ -779,7 +777,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Download go SDK
|
- name: Download go SDK
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: go-sdk.tar.gz
|
name: go-sdk.tar.gz
|
||||||
path: ${{ github.workspace}}/sdk/
|
path: ${{ github.workspace}}/sdk/
|
||||||
|
|||||||
28
.github/workflows/release.yml
vendored
28
.github/workflows/release.yml
vendored
@@ -8,9 +8,7 @@ on:
|
|||||||
- "!v*.*.*-**"
|
- "!v*.*.*-**"
|
||||||
env:
|
env:
|
||||||
PROVIDER: docker-build
|
PROVIDER: docker-build
|
||||||
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
|
|
||||||
TRAVIS_OS_NAME: linux
|
TRAVIS_OS_NAME: linux
|
||||||
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
|
|
||||||
GOVERSION: "1.21.x"
|
GOVERSION: "1.21.x"
|
||||||
NODEVERSION: "20.x"
|
NODEVERSION: "20.x"
|
||||||
PYTHONVERSION: "3.11.8"
|
PYTHONVERSION: "3.11.8"
|
||||||
@@ -174,7 +172,7 @@ jobs:
|
|||||||
github.workspace}}/bin/ pulumi-resource-${{ env.PROVIDER }}
|
github.workspace}}/bin/ pulumi-resource-${{ env.PROVIDER }}
|
||||||
pulumi-gen-${{ env.PROVIDER}}
|
pulumi-gen-${{ env.PROVIDER}}
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||||
with:
|
with:
|
||||||
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
||||||
path: ${{ github.workspace }}/bin/provider.tar.gz
|
path: ${{ github.workspace }}/bin/provider.tar.gz
|
||||||
@@ -247,7 +245,7 @@ jobs:
|
|||||||
- name: Install Pulumi CLI
|
- name: Install Pulumi CLI
|
||||||
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODEVERSION }}
|
node-version: ${{ env.NODEVERSION }}
|
||||||
registry-url: https://registry.npmjs.org
|
registry-url: https://registry.npmjs.org
|
||||||
@@ -270,7 +268,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
gradle-version: "7.6"
|
gradle-version: "7.6"
|
||||||
- name: Download provider
|
- name: Download provider
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
||||||
path: ${{ github.workspace }}/bin
|
path: ${{ github.workspace }}/bin
|
||||||
@@ -348,7 +346,7 @@ jobs:
|
|||||||
- name: Tar SDK folder
|
- name: Tar SDK folder
|
||||||
run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} .
|
run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} .
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.language }}-sdk.tar.gz
|
name: ${{ matrix.language }}-sdk.tar.gz
|
||||||
path: ${{ github.workspace}}/sdk/${{ matrix.language }}.tar.gz
|
path: ${{ github.workspace}}/sdk/${{ matrix.language }}.tar.gz
|
||||||
@@ -412,7 +410,7 @@ jobs:
|
|||||||
- name: Install Pulumi CLI
|
- name: Install Pulumi CLI
|
||||||
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODEVERSION }}
|
node-version: ${{ env.NODEVERSION }}
|
||||||
registry-url: https://registry.npmjs.org
|
registry-url: https://registry.npmjs.org
|
||||||
@@ -435,7 +433,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
gradle-version: "7.6"
|
gradle-version: "7.6"
|
||||||
- name: Download provider
|
- name: Download provider
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
||||||
path: ${{ github.workspace }}/bin
|
path: ${{ github.workspace }}/bin
|
||||||
@@ -447,7 +445,7 @@ jobs:
|
|||||||
-exec chmod +x {} \;
|
-exec chmod +x {} \;
|
||||||
- name: Download SDK
|
- name: Download SDK
|
||||||
if: ${{ matrix.language != 'yaml' }}
|
if: ${{ matrix.language != 'yaml' }}
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.language }}-sdk.tar.gz
|
name: ${{ matrix.language }}-sdk.tar.gz
|
||||||
path: ${{ github.workspace}}/sdk/
|
path: ${{ github.workspace}}/sdk/
|
||||||
@@ -639,7 +637,7 @@ jobs:
|
|||||||
- name: Install Pulumi CLI
|
- name: Install Pulumi CLI
|
||||||
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODEVERSION }}
|
node-version: ${{ env.NODEVERSION }}
|
||||||
registry-url: https://registry.npmjs.org
|
registry-url: https://registry.npmjs.org
|
||||||
@@ -652,7 +650,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: ${{ env.PYTHONVERSION }}
|
python-version: ${{ env.PYTHONVERSION }}
|
||||||
- name: Download python SDK
|
- name: Download python SDK
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: python-sdk.tar.gz
|
name: python-sdk.tar.gz
|
||||||
path: ${{ github.workspace}}/sdk/
|
path: ${{ github.workspace}}/sdk/
|
||||||
@@ -660,7 +658,7 @@ jobs:
|
|||||||
run: tar -zxf ${{github.workspace}}/sdk/python.tar.gz -C
|
run: tar -zxf ${{github.workspace}}/sdk/python.tar.gz -C
|
||||||
${{github.workspace}}/sdk/python
|
${{github.workspace}}/sdk/python
|
||||||
- name: Download dotnet SDK
|
- name: Download dotnet SDK
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: dotnet-sdk.tar.gz
|
name: dotnet-sdk.tar.gz
|
||||||
path: ${{ github.workspace}}/sdk/
|
path: ${{ github.workspace}}/sdk/
|
||||||
@@ -668,7 +666,7 @@ jobs:
|
|||||||
run: tar -zxf ${{github.workspace}}/sdk/dotnet.tar.gz -C
|
run: tar -zxf ${{github.workspace}}/sdk/dotnet.tar.gz -C
|
||||||
${{github.workspace}}/sdk/dotnet
|
${{github.workspace}}/sdk/dotnet
|
||||||
- name: Download nodejs SDK
|
- name: Download nodejs SDK
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: nodejs-sdk.tar.gz
|
name: nodejs-sdk.tar.gz
|
||||||
path: ${{ github.workspace}}/sdk/
|
path: ${{ github.workspace}}/sdk/
|
||||||
@@ -745,7 +743,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
gradle-version: "7.6"
|
gradle-version: "7.6"
|
||||||
- name: Download java SDK
|
- name: Download java SDK
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: java-sdk.tar.gz
|
name: java-sdk.tar.gz
|
||||||
path: ${{ github.workspace}}/sdk/
|
path: ${{ github.workspace}}/sdk/
|
||||||
@@ -782,7 +780,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Download go SDK
|
- name: Download go SDK
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: go-sdk.tar.gz
|
name: go-sdk.tar.gz
|
||||||
path: ${{ github.workspace}}/sdk/
|
path: ${{ github.workspace}}/sdk/
|
||||||
|
|||||||
19
.github/workflows/run-acceptance-tests.yml
vendored
19
.github/workflows/run-acceptance-tests.yml
vendored
@@ -11,9 +11,7 @@ on:
|
|||||||
workflow_dispatch: {}
|
workflow_dispatch: {}
|
||||||
env:
|
env:
|
||||||
PROVIDER: docker-build
|
PROVIDER: docker-build
|
||||||
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
|
|
||||||
TRAVIS_OS_NAME: linux
|
TRAVIS_OS_NAME: linux
|
||||||
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
|
|
||||||
GOVERSION: "1.21.x"
|
GOVERSION: "1.21.x"
|
||||||
NODEVERSION: "20.x"
|
NODEVERSION: "20.x"
|
||||||
PYTHONVERSION: "3.11.8"
|
PYTHONVERSION: "3.11.8"
|
||||||
@@ -202,7 +200,7 @@ jobs:
|
|||||||
github.workspace}}/bin/ pulumi-resource-${{ env.PROVIDER }}
|
github.workspace}}/bin/ pulumi-resource-${{ env.PROVIDER }}
|
||||||
pulumi-gen-${{ env.PROVIDER}}
|
pulumi-gen-${{ env.PROVIDER}}
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||||
with:
|
with:
|
||||||
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
||||||
path: ${{ github.workspace }}/bin/provider.tar.gz
|
path: ${{ github.workspace }}/bin/provider.tar.gz
|
||||||
@@ -279,7 +277,7 @@ jobs:
|
|||||||
- name: Install Pulumi CLI
|
- name: Install Pulumi CLI
|
||||||
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODEVERSION }}
|
node-version: ${{ env.NODEVERSION }}
|
||||||
registry-url: https://registry.npmjs.org
|
registry-url: https://registry.npmjs.org
|
||||||
@@ -302,7 +300,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
gradle-version: "7.6"
|
gradle-version: "7.6"
|
||||||
- name: Download provider
|
- name: Download provider
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
||||||
path: ${{ github.workspace }}/bin
|
path: ${{ github.workspace }}/bin
|
||||||
@@ -379,7 +377,7 @@ jobs:
|
|||||||
- name: Tar SDK folder
|
- name: Tar SDK folder
|
||||||
run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} .
|
run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} .
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.language }}-sdk.tar.gz
|
name: ${{ matrix.language }}-sdk.tar.gz
|
||||||
path: ${{ github.workspace}}/sdk/${{ matrix.language }}.tar.gz
|
path: ${{ github.workspace}}/sdk/${{ matrix.language }}.tar.gz
|
||||||
@@ -448,7 +446,7 @@ jobs:
|
|||||||
- name: Install Pulumi CLI
|
- name: Install Pulumi CLI
|
||||||
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
uses: pulumi/actions@cc7494be991dba0978f7ffafaf995b0449a0998e # v6.5.0
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODEVERSION }}
|
node-version: ${{ env.NODEVERSION }}
|
||||||
registry-url: https://registry.npmjs.org
|
registry-url: https://registry.npmjs.org
|
||||||
@@ -471,7 +469,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
gradle-version: "7.6"
|
gradle-version: "7.6"
|
||||||
- name: Download provider
|
- name: Download provider
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
name: pulumi-${{ env.PROVIDER }}-provider.tar.gz
|
||||||
path: ${{ github.workspace }}/bin
|
path: ${{ github.workspace }}/bin
|
||||||
@@ -483,7 +481,7 @@ jobs:
|
|||||||
-exec chmod +x {} \;
|
-exec chmod +x {} \;
|
||||||
- name: Download SDK
|
- name: Download SDK
|
||||||
if: ${{ matrix.language != 'yaml' }}
|
if: ${{ matrix.language != 'yaml' }}
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.language }}-sdk.tar.gz
|
name: ${{ matrix.language }}-sdk.tar.gz
|
||||||
path: ${{ github.workspace}}/sdk/
|
path: ${{ github.workspace}}/sdk/
|
||||||
@@ -608,8 +606,7 @@ jobs:
|
|||||||
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
|
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
|
||||||
with:
|
with:
|
||||||
version: ${{ env.GOLANGCI_LINT_VERSION }}
|
version: ${{ env.GOLANGCI_LINT_VERSION }}
|
||||||
args: -c ../.golangci.yml
|
working-directory: .
|
||||||
working-directory: provider
|
|
||||||
name: lint
|
name: lint
|
||||||
if: github.event_name == 'repository_dispatch' ||
|
if: github.event_name == 'repository_dispatch' ||
|
||||||
github.event.pull_request.head.repo.full_name == github.repository
|
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,9 +8,7 @@ on:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
|
||||||
PROVIDER: docker-build
|
PROVIDER: docker-build
|
||||||
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
|
|
||||||
TRAVIS_OS_NAME: linux
|
TRAVIS_OS_NAME: linux
|
||||||
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
|
|
||||||
GOVERSION: "1.21.x"
|
GOVERSION: "1.21.x"
|
||||||
NODEVERSION: "20.x"
|
NODEVERSION: "20.x"
|
||||||
PYTHONVERSION: "3.11.8"
|
PYTHONVERSION: "3.11.8"
|
||||||
@@ -64,7 +62,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
dotnet-version: ${{ env.DOTNETVERSION }}
|
dotnet-version: ${{ env.DOTNETVERSION }}
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODEVERSION }}
|
node-version: ${{ env.NODEVERSION }}
|
||||||
registry-url: https://registry.npmjs.org
|
registry-url: https://registry.npmjs.org
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
## Unreleased
|
## 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)
|
## 0.0.14 (2025-09-30)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
5
Makefile
5
Makefile
@@ -19,6 +19,7 @@ TESTPARALLELISM := 4
|
|||||||
|
|
||||||
PULUMI := pulumi
|
PULUMI := pulumi
|
||||||
GOGLANGCILINT := golangci-lint
|
GOGLANGCILINT := golangci-lint
|
||||||
|
GOTEST := go test
|
||||||
|
|
||||||
# Override during CI using `make [TARGET] PROVIDER_VERSION=""` or by setting a PROVIDER_VERSION environment variable
|
# 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
|
# Local & branch builds will just used this fixed default version unless specified
|
||||||
@@ -46,10 +47,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))
|
(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
|
test_provider:: # Required by CI
|
||||||
go test -short -v -coverprofile="coverage.txt" -coverpkg=./provider/... -timeout 2h -parallel ${TESTPARALLELISM} ./provider/...
|
${GOTEST} -short -v -coverprofile="coverage.txt" -coverpkg=./provider/... -timeout 2h -parallel ${TESTPARALLELISM} ./provider/...
|
||||||
|
|
||||||
test_examples: install_nodejs_sdk install_dotnet_sdk
|
test_examples: install_nodejs_sdk install_dotnet_sdk
|
||||||
go test -short -v -cover -tags=all -timeout 2h -parallel ${TESTPARALLELISM} ./examples/...
|
${GOTEST} -short -v -cover -tags=all -timeout 2h -parallel ${TESTPARALLELISM} ./examples/...
|
||||||
|
|
||||||
test_all:: test_provider test_examples
|
test_all:: test_provider test_examples
|
||||||
|
|
||||||
|
|||||||
@@ -155,32 +155,12 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"docker-build:index:CacheFromGitHubActions": {
|
"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": {
|
"properties": {
|
||||||
"scope": {
|
"scope": {
|
||||||
"type": "string",
|
"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.",
|
"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"
|
"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"
|
"type": "object"
|
||||||
@@ -370,6 +350,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"docker-build:index:CacheToGitHubActions": {
|
"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": {
|
"properties": {
|
||||||
"ignoreError": {
|
"ignoreError": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
@@ -385,27 +366,6 @@
|
|||||||
"type": "string",
|
"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.",
|
"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"
|
"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"
|
"type": "object"
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ package internal
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
controllerapi "github.com/docker/buildx/controller/pb"
|
controllerapi "github.com/docker/buildx/controller/pb"
|
||||||
@@ -148,33 +149,20 @@ func (c CacheWithOCI) String() string {
|
|||||||
|
|
||||||
// CacheFromGitHubActions pulls cache manifests from the GitHub actions cache.
|
// CacheFromGitHubActions pulls cache manifests from the GitHub actions cache.
|
||||||
type CacheFromGitHubActions struct {
|
type CacheFromGitHubActions struct {
|
||||||
URL string `pulumi:"url,optional"`
|
|
||||||
Token string `pulumi:"token,optional" provider:"secret"`
|
|
||||||
Scope string `pulumi:"scope,optional"`
|
Scope string `pulumi:"scope,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Annotate sets docstrings on CacheFromGitHubActions.
|
// Annotate sets docstrings on CacheFromGitHubActions.
|
||||||
func (c *CacheFromGitHubActions) Annotate(a infer.Annotator) {
|
func (c *CacheFromGitHubActions) Annotate(a infer.Annotator) {
|
||||||
a.SetDefault(&c.URL, "", "ACTIONS_CACHE_URL")
|
a.Describe(&c, dedent(`
|
||||||
a.SetDefault(&c.Token, "", "ACTIONS_RUNTIME_TOKEN")
|
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.Scope, "buildkit")
|
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(`
|
a.Describe(&c.Scope, dedent(`
|
||||||
The scope to use for cache keys. Defaults to "buildkit".
|
The scope to use for cache keys. Defaults to "buildkit".
|
||||||
|
|
||||||
@@ -191,11 +179,12 @@ func (c *CacheFromGitHubActions) String() string {
|
|||||||
if c.Scope != "" {
|
if c.Scope != "" {
|
||||||
parts = append(parts, "scope="+c.Scope)
|
parts = append(parts, "scope="+c.Scope)
|
||||||
}
|
}
|
||||||
if c.Token != "" {
|
// Preserving backwards compatibility with the old behaviour.
|
||||||
parts = append(parts, "token="+c.Token)
|
if token := os.Getenv("ACTIONS_RUNTIME_TOKEN"); token != "" {
|
||||||
|
parts = append(parts, "token="+token)
|
||||||
}
|
}
|
||||||
if c.URL != "" {
|
if url := os.Getenv("ACTIONS_CACHE_URL"); url != "" {
|
||||||
parts = append(parts, "url="+c.URL)
|
parts = append(parts, "url="+url)
|
||||||
}
|
}
|
||||||
return strings.Join(parts, ",")
|
return strings.Join(parts, ",")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,14 +24,15 @@ import (
|
|||||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
"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) {
|
func TestCacheString(t *testing.T) {
|
||||||
t.Parallel()
|
|
||||||
gzip := Gzip
|
gzip := Gzip
|
||||||
|
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
given fmt.Stringer
|
arrange func(t *testing.T)
|
||||||
want string
|
given fmt.Stringer
|
||||||
|
want string
|
||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
name: "s3",
|
name: "s3",
|
||||||
@@ -55,7 +56,37 @@ func TestCacheString(t *testing.T) {
|
|||||||
{
|
{
|
||||||
name: "gha",
|
name: "gha",
|
||||||
given: CacheTo{GHA: &CacheToGitHubActions{}},
|
given: CacheTo{GHA: &CacheToGitHubActions{}},
|
||||||
want: "type=gha",
|
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",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "from-local",
|
name: "from-local",
|
||||||
@@ -121,9 +152,12 @@ func TestCacheString(t *testing.T) {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:paralleltest // We don't call t.Parallel here to prevent environment corruption.
|
||||||
for _, tt := range tests {
|
for _, tt := range tests {
|
||||||
t.Run(tt.name, func(t *testing.T) {
|
t.Run(tt.name, func(t *testing.T) {
|
||||||
t.Parallel()
|
if tt.arrange != nil {
|
||||||
|
tt.arrange(t)
|
||||||
|
}
|
||||||
|
|
||||||
actual := tt.given.String()
|
actual := tt.given.String()
|
||||||
assert.Equal(t, tt.want, actual)
|
assert.Equal(t, tt.want, actual)
|
||||||
|
|||||||
@@ -917,8 +917,10 @@ func TestValidateImageArgs(t *testing.T) {
|
|||||||
{
|
{
|
||||||
name: "gha environment",
|
name: "gha environment",
|
||||||
envs: map[string]string{
|
envs: map[string]string{
|
||||||
"ACTIONS_CACHE_URL": "test-cache-url",
|
"ACTIONS_CACHE_URL": "test-cache-url",
|
||||||
"ACTIONS_RUNTIME_TOKEN": "test-runtime-token",
|
"ACTIONS_RUNTIME_TOKEN": "test-runtime-token",
|
||||||
|
"ACTIONS_RESULTS_URL": "test-results-url",
|
||||||
|
"ACTIONS_CACHE_SERVICE_V2": "true",
|
||||||
},
|
},
|
||||||
args: ImageArgs{
|
args: ImageArgs{
|
||||||
Context: &BuildContext{Context: Context{Location: "testdata/noop"}},
|
Context: &BuildContext{Context: Context{Location: "testdata/noop"}},
|
||||||
@@ -930,15 +932,17 @@ func TestValidateImageArgs(t *testing.T) {
|
|||||||
wantCacheFrom: &pb.CacheOptionsEntry{
|
wantCacheFrom: &pb.CacheOptionsEntry{
|
||||||
Type: "gha",
|
Type: "gha",
|
||||||
Attrs: map[string]string{
|
Attrs: map[string]string{
|
||||||
"token": "test-runtime-token",
|
"token": "test-runtime-token",
|
||||||
"url": "test-cache-url",
|
"url": "test-cache-url",
|
||||||
|
"url_v2": "test-results-url",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
wantCacheTo: &pb.CacheOptionsEntry{
|
wantCacheTo: &pb.CacheOptionsEntry{
|
||||||
Type: "gha",
|
Type: "gha",
|
||||||
Attrs: map[string]string{
|
Attrs: map[string]string{
|
||||||
"token": "test-runtime-token",
|
"token": "test-runtime-token",
|
||||||
"url": "test-cache-url",
|
"url": "test-cache-url",
|
||||||
|
"url_v2": "test-results-url",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
39
sdk/dotnet/Inputs/CacheFromGitHubActionsArgs.cs
generated
39
sdk/dotnet/Inputs/CacheFromGitHubActionsArgs.cs
generated
@@ -10,6 +10,12 @@ using Pulumi.Serialization;
|
|||||||
namespace Pulumi.DockerBuild.Inputs
|
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
|
public sealed class CacheFromGitHubActionsArgs : global::Pulumi.ResourceArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -21,42 +27,9 @@ namespace Pulumi.DockerBuild.Inputs
|
|||||||
[Input("scope")]
|
[Input("scope")]
|
||||||
public Input<string>? Scope { get; set; }
|
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()
|
public CacheFromGitHubActionsArgs()
|
||||||
{
|
{
|
||||||
Scope = "buildkit";
|
Scope = "buildkit";
|
||||||
Token = Utilities.GetEnv("ACTIONS_RUNTIME_TOKEN") ?? "";
|
|
||||||
Url = Utilities.GetEnv("ACTIONS_CACHE_URL") ?? "";
|
|
||||||
}
|
}
|
||||||
public static new CacheFromGitHubActionsArgs Empty => new CacheFromGitHubActionsArgs();
|
public static new CacheFromGitHubActionsArgs Empty => new CacheFromGitHubActionsArgs();
|
||||||
}
|
}
|
||||||
|
|||||||
39
sdk/dotnet/Inputs/CacheToGitHubActionsArgs.cs
generated
39
sdk/dotnet/Inputs/CacheToGitHubActionsArgs.cs
generated
@@ -10,6 +10,12 @@ using Pulumi.Serialization;
|
|||||||
namespace Pulumi.DockerBuild.Inputs
|
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
|
public sealed class CacheToGitHubActionsArgs : global::Pulumi.ResourceArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -33,44 +39,11 @@ namespace Pulumi.DockerBuild.Inputs
|
|||||||
[Input("scope")]
|
[Input("scope")]
|
||||||
public Input<string>? Scope { get; set; }
|
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()
|
public CacheToGitHubActionsArgs()
|
||||||
{
|
{
|
||||||
IgnoreError = false;
|
IgnoreError = false;
|
||||||
Mode = Pulumi.DockerBuild.CacheMode.Min;
|
Mode = Pulumi.DockerBuild.CacheMode.Min;
|
||||||
Scope = "buildkit";
|
Scope = "buildkit";
|
||||||
Token = Utilities.GetEnv("ACTIONS_RUNTIME_TOKEN") ?? "";
|
|
||||||
Url = Utilities.GetEnv("ACTIONS_CACHE_URL") ?? "";
|
|
||||||
}
|
}
|
||||||
public static new CacheToGitHubActionsArgs Empty => new CacheToGitHubActionsArgs();
|
public static new CacheToGitHubActionsArgs Empty => new CacheToGitHubActionsArgs();
|
||||||
}
|
}
|
||||||
|
|||||||
32
sdk/dotnet/Outputs/CacheFromGitHubActions.cs
generated
32
sdk/dotnet/Outputs/CacheFromGitHubActions.cs
generated
@@ -10,6 +10,12 @@ using Pulumi.Serialization;
|
|||||||
namespace Pulumi.DockerBuild.Outputs
|
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]
|
[OutputType]
|
||||||
public sealed class CacheFromGitHubActions
|
public sealed class CacheFromGitHubActions
|
||||||
{
|
{
|
||||||
@@ -20,35 +26,11 @@ namespace Pulumi.DockerBuild.Outputs
|
|||||||
/// workflow, otherwise caches will overwrite each other.
|
/// workflow, otherwise caches will overwrite each other.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public readonly string? Scope;
|
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]
|
[OutputConstructor]
|
||||||
private CacheFromGitHubActions(
|
private CacheFromGitHubActions(string? scope)
|
||||||
string? scope,
|
|
||||||
|
|
||||||
string? token,
|
|
||||||
|
|
||||||
string? url)
|
|
||||||
{
|
{
|
||||||
Scope = scope;
|
Scope = scope;
|
||||||
Token = token;
|
|
||||||
Url = url;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
31
sdk/dotnet/Outputs/CacheToGitHubActions.cs
generated
31
sdk/dotnet/Outputs/CacheToGitHubActions.cs
generated
@@ -10,6 +10,12 @@ using Pulumi.Serialization;
|
|||||||
namespace Pulumi.DockerBuild.Outputs
|
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]
|
[OutputType]
|
||||||
public sealed class CacheToGitHubActions
|
public sealed class CacheToGitHubActions
|
||||||
{
|
{
|
||||||
@@ -28,23 +34,6 @@ namespace Pulumi.DockerBuild.Outputs
|
|||||||
/// workflow, otherwise caches will overwrite each other.
|
/// workflow, otherwise caches will overwrite each other.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public readonly string? Scope;
|
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]
|
[OutputConstructor]
|
||||||
private CacheToGitHubActions(
|
private CacheToGitHubActions(
|
||||||
@@ -52,17 +41,11 @@ namespace Pulumi.DockerBuild.Outputs
|
|||||||
|
|
||||||
Pulumi.DockerBuild.CacheMode? mode,
|
Pulumi.DockerBuild.CacheMode? mode,
|
||||||
|
|
||||||
string? scope,
|
string? scope)
|
||||||
|
|
||||||
string? token,
|
|
||||||
|
|
||||||
string? url)
|
|
||||||
{
|
{
|
||||||
IgnoreError = ignoreError;
|
IgnoreError = ignoreError;
|
||||||
Mode = mode;
|
Mode = mode;
|
||||||
Scope = scope;
|
Scope = scope;
|
||||||
Token = token;
|
|
||||||
Url = url;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
216
sdk/go/dockerbuild/pulumiTypes.go
generated
216
sdk/go/dockerbuild/pulumiTypes.go
generated
@@ -834,25 +834,16 @@ func (o CacheFromAzureBlobPtrOutput) SecretAccessKey() pulumi.StringPtrOutput {
|
|||||||
}).(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 {
|
type CacheFromGitHubActions struct {
|
||||||
// The scope to use for cache keys. Defaults to `buildkit`.
|
// The scope to use for cache keys. Defaults to `buildkit`.
|
||||||
//
|
//
|
||||||
// This should be set if building and caching multiple images in one
|
// This should be set if building and caching multiple images in one
|
||||||
// workflow, otherwise caches will overwrite each other.
|
// workflow, otherwise caches will overwrite each other.
|
||||||
Scope *string `pulumi:"scope"`
|
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
|
// Defaults sets the appropriate defaults for CacheFromGitHubActions
|
||||||
@@ -865,18 +856,6 @@ func (val *CacheFromGitHubActions) Defaults() *CacheFromGitHubActions {
|
|||||||
scope_ := "buildkit"
|
scope_ := "buildkit"
|
||||||
tmp.Scope = &scope_
|
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
|
return &tmp
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -891,25 +870,16 @@ type CacheFromGitHubActionsInput interface {
|
|||||||
ToCacheFromGitHubActionsOutputWithContext(context.Context) CacheFromGitHubActionsOutput
|
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 {
|
type CacheFromGitHubActionsArgs struct {
|
||||||
// The scope to use for cache keys. Defaults to `buildkit`.
|
// The scope to use for cache keys. Defaults to `buildkit`.
|
||||||
//
|
//
|
||||||
// This should be set if building and caching multiple images in one
|
// This should be set if building and caching multiple images in one
|
||||||
// workflow, otherwise caches will overwrite each other.
|
// workflow, otherwise caches will overwrite each other.
|
||||||
Scope pulumi.StringPtrInput `pulumi:"scope"`
|
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
|
// Defaults sets the appropriate defaults for CacheFromGitHubActionsArgs
|
||||||
@@ -921,16 +891,6 @@ func (val *CacheFromGitHubActionsArgs) Defaults() *CacheFromGitHubActionsArgs {
|
|||||||
if tmp.Scope == nil {
|
if tmp.Scope == nil {
|
||||||
tmp.Scope = pulumi.StringPtr("buildkit")
|
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
|
return &tmp
|
||||||
}
|
}
|
||||||
func (CacheFromGitHubActionsArgs) ElementType() reflect.Type {
|
func (CacheFromGitHubActionsArgs) ElementType() reflect.Type {
|
||||||
@@ -998,6 +958,10 @@ 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 }
|
type CacheFromGitHubActionsOutput struct{ *pulumi.OutputState }
|
||||||
|
|
||||||
func (CacheFromGitHubActionsOutput) ElementType() reflect.Type {
|
func (CacheFromGitHubActionsOutput) ElementType() reflect.Type {
|
||||||
@@ -1036,25 +1000,6 @@ func (o CacheFromGitHubActionsOutput) Scope() pulumi.StringPtrOutput {
|
|||||||
return o.ApplyT(func(v CacheFromGitHubActions) *string { return v.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 }
|
type CacheFromGitHubActionsPtrOutput struct{ *pulumi.OutputState }
|
||||||
|
|
||||||
func (CacheFromGitHubActionsPtrOutput) ElementType() reflect.Type {
|
func (CacheFromGitHubActionsPtrOutput) ElementType() reflect.Type {
|
||||||
@@ -1098,35 +1043,6 @@ func (o CacheFromGitHubActionsPtrOutput) Scope() pulumi.StringPtrOutput {
|
|||||||
}).(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 {
|
type CacheFromLocal struct {
|
||||||
// Digest of manifest to import.
|
// Digest of manifest to import.
|
||||||
Digest *string `pulumi:"digest"`
|
Digest *string `pulumi:"digest"`
|
||||||
@@ -2361,6 +2277,10 @@ func (o CacheToAzureBlobPtrOutput) SecretAccessKey() pulumi.StringPtrOutput {
|
|||||||
}).(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 {
|
type CacheToGitHubActions struct {
|
||||||
// Ignore errors caused by failed cache exports.
|
// Ignore errors caused by failed cache exports.
|
||||||
IgnoreError *bool `pulumi:"ignoreError"`
|
IgnoreError *bool `pulumi:"ignoreError"`
|
||||||
@@ -2371,19 +2291,6 @@ type CacheToGitHubActions struct {
|
|||||||
// This should be set if building and caching multiple images in one
|
// This should be set if building and caching multiple images in one
|
||||||
// workflow, otherwise caches will overwrite each other.
|
// workflow, otherwise caches will overwrite each other.
|
||||||
Scope *string `pulumi:"scope"`
|
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
|
// Defaults sets the appropriate defaults for CacheToGitHubActions
|
||||||
@@ -2404,18 +2311,6 @@ func (val *CacheToGitHubActions) Defaults() *CacheToGitHubActions {
|
|||||||
scope_ := "buildkit"
|
scope_ := "buildkit"
|
||||||
tmp.Scope = &scope_
|
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
|
return &tmp
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2430,6 +2325,10 @@ type CacheToGitHubActionsInput interface {
|
|||||||
ToCacheToGitHubActionsOutputWithContext(context.Context) CacheToGitHubActionsOutput
|
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 {
|
type CacheToGitHubActionsArgs struct {
|
||||||
// Ignore errors caused by failed cache exports.
|
// Ignore errors caused by failed cache exports.
|
||||||
IgnoreError pulumi.BoolPtrInput `pulumi:"ignoreError"`
|
IgnoreError pulumi.BoolPtrInput `pulumi:"ignoreError"`
|
||||||
@@ -2440,19 +2339,6 @@ type CacheToGitHubActionsArgs struct {
|
|||||||
// This should be set if building and caching multiple images in one
|
// This should be set if building and caching multiple images in one
|
||||||
// workflow, otherwise caches will overwrite each other.
|
// workflow, otherwise caches will overwrite each other.
|
||||||
Scope pulumi.StringPtrInput `pulumi:"scope"`
|
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
|
// Defaults sets the appropriate defaults for CacheToGitHubActionsArgs
|
||||||
@@ -2470,16 +2356,6 @@ func (val *CacheToGitHubActionsArgs) Defaults() *CacheToGitHubActionsArgs {
|
|||||||
if tmp.Scope == nil {
|
if tmp.Scope == nil {
|
||||||
tmp.Scope = pulumi.StringPtr("buildkit")
|
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
|
return &tmp
|
||||||
}
|
}
|
||||||
func (CacheToGitHubActionsArgs) ElementType() reflect.Type {
|
func (CacheToGitHubActionsArgs) ElementType() reflect.Type {
|
||||||
@@ -2547,6 +2423,10 @@ 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 }
|
type CacheToGitHubActionsOutput struct{ *pulumi.OutputState }
|
||||||
|
|
||||||
func (CacheToGitHubActionsOutput) ElementType() reflect.Type {
|
func (CacheToGitHubActionsOutput) ElementType() reflect.Type {
|
||||||
@@ -2595,25 +2475,6 @@ func (o CacheToGitHubActionsOutput) Scope() pulumi.StringPtrOutput {
|
|||||||
return o.ApplyT(func(v CacheToGitHubActions) *string { return v.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 }
|
type CacheToGitHubActionsPtrOutput struct{ *pulumi.OutputState }
|
||||||
|
|
||||||
func (CacheToGitHubActionsPtrOutput) ElementType() reflect.Type {
|
func (CacheToGitHubActionsPtrOutput) ElementType() reflect.Type {
|
||||||
@@ -2677,35 +2538,6 @@ func (o CacheToGitHubActionsPtrOutput) Scope() pulumi.StringPtrOutput {
|
|||||||
}).(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.
|
// Include an inline cache with the exported image.
|
||||||
type CacheToInline struct {
|
type CacheToInline struct {
|
||||||
}
|
}
|
||||||
|
|||||||
158
sdk/go/dockerbuild/x/pulumiTypes.go
generated
158
sdk/go/dockerbuild/x/pulumiTypes.go
generated
@@ -393,25 +393,16 @@ func (o CacheFromAzureBlobOutput) SecretAccessKey() pulumix.Output[*string] {
|
|||||||
return pulumix.Apply[CacheFromAzureBlob](o, func(v CacheFromAzureBlob) *string { return v.SecretAccessKey })
|
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 {
|
type CacheFromGitHubActions struct {
|
||||||
// The scope to use for cache keys. Defaults to `buildkit`.
|
// The scope to use for cache keys. Defaults to `buildkit`.
|
||||||
//
|
//
|
||||||
// This should be set if building and caching multiple images in one
|
// This should be set if building and caching multiple images in one
|
||||||
// workflow, otherwise caches will overwrite each other.
|
// workflow, otherwise caches will overwrite each other.
|
||||||
Scope *string `pulumi:"scope"`
|
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
|
// Defaults sets the appropriate defaults for CacheFromGitHubActions
|
||||||
@@ -424,40 +415,19 @@ func (val *CacheFromGitHubActions) Defaults() *CacheFromGitHubActions {
|
|||||||
scope_ := "buildkit"
|
scope_ := "buildkit"
|
||||||
tmp.Scope = &scope_
|
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
|
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 {
|
type CacheFromGitHubActionsArgs struct {
|
||||||
// The scope to use for cache keys. Defaults to `buildkit`.
|
// The scope to use for cache keys. Defaults to `buildkit`.
|
||||||
//
|
//
|
||||||
// This should be set if building and caching multiple images in one
|
// This should be set if building and caching multiple images in one
|
||||||
// workflow, otherwise caches will overwrite each other.
|
// workflow, otherwise caches will overwrite each other.
|
||||||
Scope pulumix.Input[*string] `pulumi:"scope"`
|
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
|
// Defaults sets the appropriate defaults for CacheFromGitHubActionsArgs
|
||||||
@@ -469,16 +439,6 @@ func (val *CacheFromGitHubActionsArgs) Defaults() *CacheFromGitHubActionsArgs {
|
|||||||
if tmp.Scope == nil {
|
if tmp.Scope == nil {
|
||||||
tmp.Scope = pulumix.Ptr("buildkit")
|
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
|
return &tmp
|
||||||
}
|
}
|
||||||
func (CacheFromGitHubActionsArgs) ElementType() reflect.Type {
|
func (CacheFromGitHubActionsArgs) ElementType() reflect.Type {
|
||||||
@@ -497,6 +457,10 @@ func (i *CacheFromGitHubActionsArgs) ToOutput(ctx context.Context) pulumix.Outpu
|
|||||||
return pulumix.Val(i)
|
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 }
|
type CacheFromGitHubActionsOutput struct{ *pulumi.OutputState }
|
||||||
|
|
||||||
func (CacheFromGitHubActionsOutput) ElementType() reflect.Type {
|
func (CacheFromGitHubActionsOutput) ElementType() reflect.Type {
|
||||||
@@ -525,25 +489,6 @@ func (o CacheFromGitHubActionsOutput) Scope() pulumix.Output[*string] {
|
|||||||
return pulumix.Apply[CacheFromGitHubActions](o, func(v CacheFromGitHubActions) *string { return v.Scope })
|
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 {
|
type CacheFromLocal struct {
|
||||||
// Digest of manifest to import.
|
// Digest of manifest to import.
|
||||||
Digest *string `pulumi:"digest"`
|
Digest *string `pulumi:"digest"`
|
||||||
@@ -1134,6 +1079,10 @@ func (o CacheToAzureBlobOutput) SecretAccessKey() pulumix.Output[*string] {
|
|||||||
return pulumix.Apply[CacheToAzureBlob](o, func(v CacheToAzureBlob) *string { return v.SecretAccessKey })
|
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 {
|
type CacheToGitHubActions struct {
|
||||||
// Ignore errors caused by failed cache exports.
|
// Ignore errors caused by failed cache exports.
|
||||||
IgnoreError *bool `pulumi:"ignoreError"`
|
IgnoreError *bool `pulumi:"ignoreError"`
|
||||||
@@ -1144,19 +1093,6 @@ type CacheToGitHubActions struct {
|
|||||||
// This should be set if building and caching multiple images in one
|
// This should be set if building and caching multiple images in one
|
||||||
// workflow, otherwise caches will overwrite each other.
|
// workflow, otherwise caches will overwrite each other.
|
||||||
Scope *string `pulumi:"scope"`
|
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
|
// Defaults sets the appropriate defaults for CacheToGitHubActions
|
||||||
@@ -1177,21 +1113,13 @@ func (val *CacheToGitHubActions) Defaults() *CacheToGitHubActions {
|
|||||||
scope_ := "buildkit"
|
scope_ := "buildkit"
|
||||||
tmp.Scope = &scope_
|
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
|
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 {
|
type CacheToGitHubActionsArgs struct {
|
||||||
// Ignore errors caused by failed cache exports.
|
// Ignore errors caused by failed cache exports.
|
||||||
IgnoreError pulumix.Input[*bool] `pulumi:"ignoreError"`
|
IgnoreError pulumix.Input[*bool] `pulumi:"ignoreError"`
|
||||||
@@ -1202,19 +1130,6 @@ type CacheToGitHubActionsArgs struct {
|
|||||||
// This should be set if building and caching multiple images in one
|
// This should be set if building and caching multiple images in one
|
||||||
// workflow, otherwise caches will overwrite each other.
|
// workflow, otherwise caches will overwrite each other.
|
||||||
Scope pulumix.Input[*string] `pulumi:"scope"`
|
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
|
// Defaults sets the appropriate defaults for CacheToGitHubActionsArgs
|
||||||
@@ -1232,16 +1147,6 @@ func (val *CacheToGitHubActionsArgs) Defaults() *CacheToGitHubActionsArgs {
|
|||||||
if tmp.Scope == nil {
|
if tmp.Scope == nil {
|
||||||
tmp.Scope = pulumix.Ptr("buildkit")
|
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
|
return &tmp
|
||||||
}
|
}
|
||||||
func (CacheToGitHubActionsArgs) ElementType() reflect.Type {
|
func (CacheToGitHubActionsArgs) ElementType() reflect.Type {
|
||||||
@@ -1260,6 +1165,10 @@ func (i *CacheToGitHubActionsArgs) ToOutput(ctx context.Context) pulumix.Output[
|
|||||||
return pulumix.Val(i)
|
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 }
|
type CacheToGitHubActionsOutput struct{ *pulumi.OutputState }
|
||||||
|
|
||||||
func (CacheToGitHubActionsOutput) ElementType() reflect.Type {
|
func (CacheToGitHubActionsOutput) ElementType() reflect.Type {
|
||||||
@@ -1298,25 +1207,6 @@ func (o CacheToGitHubActionsOutput) Scope() pulumix.Output[*string] {
|
|||||||
return pulumix.Apply[CacheToGitHubActions](o, func(v CacheToGitHubActions) *string { return v.Scope })
|
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.
|
// Include an inline cache with the exported image.
|
||||||
type CacheToInline struct {
|
type CacheToInline struct {
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,13 @@ import java.util.Optional;
|
|||||||
import javax.annotation.Nullable;
|
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 final class CacheFromGitHubActionsArgs extends com.pulumi.resources.ResourceArgs {
|
||||||
|
|
||||||
public static final CacheFromGitHubActionsArgs Empty = new CacheFromGitHubActionsArgs();
|
public static final CacheFromGitHubActionsArgs Empty = new CacheFromGitHubActionsArgs();
|
||||||
@@ -37,60 +44,10 @@ public final class CacheFromGitHubActionsArgs extends com.pulumi.resources.Resou
|
|||||||
return Optional.ofNullable(this.scope);
|
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() {}
|
||||||
|
|
||||||
private CacheFromGitHubActionsArgs(CacheFromGitHubActionsArgs $) {
|
private CacheFromGitHubActionsArgs(CacheFromGitHubActionsArgs $) {
|
||||||
this.scope = $.scope;
|
this.scope = $.scope;
|
||||||
this.token = $.token;
|
|
||||||
this.url = $.url;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Builder builder() {
|
public static Builder builder() {
|
||||||
@@ -138,70 +95,8 @@ public final class CacheFromGitHubActionsArgs extends com.pulumi.resources.Resou
|
|||||||
return scope(Output.of(scope));
|
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() {
|
public CacheFromGitHubActionsArgs build() {
|
||||||
$.scope = Codegen.stringProp("scope").output().arg($.scope).def("buildkit").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 $;
|
return $;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,13 @@ import java.util.Optional;
|
|||||||
import javax.annotation.Nullable;
|
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 final class CacheToGitHubActionsArgs extends com.pulumi.resources.ResourceArgs {
|
||||||
|
|
||||||
public static final CacheToGitHubActionsArgs Empty = new CacheToGitHubActionsArgs();
|
public static final CacheToGitHubActionsArgs Empty = new CacheToGitHubActionsArgs();
|
||||||
@@ -69,62 +76,12 @@ public final class CacheToGitHubActionsArgs extends com.pulumi.resources.Resourc
|
|||||||
return Optional.ofNullable(this.scope);
|
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() {}
|
||||||
|
|
||||||
private CacheToGitHubActionsArgs(CacheToGitHubActionsArgs $) {
|
private CacheToGitHubActionsArgs(CacheToGitHubActionsArgs $) {
|
||||||
this.ignoreError = $.ignoreError;
|
this.ignoreError = $.ignoreError;
|
||||||
this.mode = $.mode;
|
this.mode = $.mode;
|
||||||
this.scope = $.scope;
|
this.scope = $.scope;
|
||||||
this.token = $.token;
|
|
||||||
this.url = $.url;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Builder builder() {
|
public static Builder builder() {
|
||||||
@@ -214,72 +171,10 @@ public final class CacheToGitHubActionsArgs extends com.pulumi.resources.Resourc
|
|||||||
return scope(Output.of(scope));
|
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() {
|
public CacheToGitHubActionsArgs build() {
|
||||||
$.ignoreError = Codegen.booleanProp("ignoreError").output().arg($.ignoreError).def(false).getNullable();
|
$.ignoreError = Codegen.booleanProp("ignoreError").output().arg($.ignoreError).def(false).getNullable();
|
||||||
$.mode = Codegen.objectProp("mode", CacheMode.class).output().arg($.mode).def(CacheMode.Min).getNullable();
|
$.mode = Codegen.objectProp("mode", CacheMode.class).output().arg($.mode).def(CacheMode.Min).getNullable();
|
||||||
$.scope = Codegen.stringProp("scope").output().arg($.scope).def("buildkit").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 $;
|
return $;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,25 +19,6 @@ public final class CacheFromGitHubActions {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private @Nullable String scope;
|
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() {}
|
private CacheFromGitHubActions() {}
|
||||||
/**
|
/**
|
||||||
@@ -50,29 +31,6 @@ public final class CacheFromGitHubActions {
|
|||||||
public Optional<String> scope() {
|
public Optional<String> scope() {
|
||||||
return Optional.ofNullable(this.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() {
|
public static Builder builder() {
|
||||||
return new Builder();
|
return new Builder();
|
||||||
@@ -84,14 +42,10 @@ public final class CacheFromGitHubActions {
|
|||||||
@CustomType.Builder
|
@CustomType.Builder
|
||||||
public static final class Builder {
|
public static final class Builder {
|
||||||
private @Nullable String scope;
|
private @Nullable String scope;
|
||||||
private @Nullable String token;
|
|
||||||
private @Nullable String url;
|
|
||||||
public Builder() {}
|
public Builder() {}
|
||||||
public Builder(CacheFromGitHubActions defaults) {
|
public Builder(CacheFromGitHubActions defaults) {
|
||||||
Objects.requireNonNull(defaults);
|
Objects.requireNonNull(defaults);
|
||||||
this.scope = defaults.scope;
|
this.scope = defaults.scope;
|
||||||
this.token = defaults.token;
|
|
||||||
this.url = defaults.url;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@CustomType.Setter
|
@CustomType.Setter
|
||||||
@@ -100,23 +54,9 @@ public final class CacheFromGitHubActions {
|
|||||||
this.scope = scope;
|
this.scope = scope;
|
||||||
return this;
|
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() {
|
public CacheFromGitHubActions build() {
|
||||||
final var _resultValue = new CacheFromGitHubActions();
|
final var _resultValue = new CacheFromGitHubActions();
|
||||||
_resultValue.scope = scope;
|
_resultValue.scope = scope;
|
||||||
_resultValue.token = token;
|
|
||||||
_resultValue.url = url;
|
|
||||||
return _resultValue;
|
return _resultValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,25 +31,6 @@ public final class CacheToGitHubActions {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private @Nullable String scope;
|
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() {}
|
private CacheToGitHubActions() {}
|
||||||
/**
|
/**
|
||||||
@@ -76,29 +57,6 @@ public final class CacheToGitHubActions {
|
|||||||
public Optional<String> scope() {
|
public Optional<String> scope() {
|
||||||
return Optional.ofNullable(this.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() {
|
public static Builder builder() {
|
||||||
return new Builder();
|
return new Builder();
|
||||||
@@ -112,16 +70,12 @@ public final class CacheToGitHubActions {
|
|||||||
private @Nullable Boolean ignoreError;
|
private @Nullable Boolean ignoreError;
|
||||||
private @Nullable CacheMode mode;
|
private @Nullable CacheMode mode;
|
||||||
private @Nullable String scope;
|
private @Nullable String scope;
|
||||||
private @Nullable String token;
|
|
||||||
private @Nullable String url;
|
|
||||||
public Builder() {}
|
public Builder() {}
|
||||||
public Builder(CacheToGitHubActions defaults) {
|
public Builder(CacheToGitHubActions defaults) {
|
||||||
Objects.requireNonNull(defaults);
|
Objects.requireNonNull(defaults);
|
||||||
this.ignoreError = defaults.ignoreError;
|
this.ignoreError = defaults.ignoreError;
|
||||||
this.mode = defaults.mode;
|
this.mode = defaults.mode;
|
||||||
this.scope = defaults.scope;
|
this.scope = defaults.scope;
|
||||||
this.token = defaults.token;
|
|
||||||
this.url = defaults.url;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@CustomType.Setter
|
@CustomType.Setter
|
||||||
@@ -142,25 +96,11 @@ public final class CacheToGitHubActions {
|
|||||||
this.scope = scope;
|
this.scope = scope;
|
||||||
return this;
|
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() {
|
public CacheToGitHubActions build() {
|
||||||
final var _resultValue = new CacheToGitHubActions();
|
final var _resultValue = new CacheToGitHubActions();
|
||||||
_resultValue.ignoreError = ignoreError;
|
_resultValue.ignoreError = ignoreError;
|
||||||
_resultValue.mode = mode;
|
_resultValue.mode = mode;
|
||||||
_resultValue.scope = scope;
|
_resultValue.scope = scope;
|
||||||
_resultValue.token = token;
|
|
||||||
_resultValue.url = url;
|
|
||||||
return _resultValue;
|
return _resultValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
50
sdk/nodejs/types/input.ts
generated
50
sdk/nodejs/types/input.ts
generated
@@ -104,6 +104,12 @@ export interface CacheFromAzureBlobArgs {
|
|||||||
secretAccessKey?: pulumi.Input<string>;
|
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 {
|
export interface CacheFromGitHubActionsArgs {
|
||||||
/**
|
/**
|
||||||
* The scope to use for cache keys. Defaults to `buildkit`.
|
* The scope to use for cache keys. Defaults to `buildkit`.
|
||||||
@@ -112,23 +118,6 @@ export interface CacheFromGitHubActionsArgs {
|
|||||||
* workflow, otherwise caches will overwrite each other.
|
* workflow, otherwise caches will overwrite each other.
|
||||||
*/
|
*/
|
||||||
scope?: pulumi.Input<string>;
|
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
|
* cacheFromGitHubActionsArgsProvideDefaults sets the appropriate defaults for CacheFromGitHubActionsArgs
|
||||||
@@ -137,8 +126,6 @@ export function cacheFromGitHubActionsArgsProvideDefaults(val: CacheFromGitHubAc
|
|||||||
return {
|
return {
|
||||||
...val,
|
...val,
|
||||||
scope: (val.scope) ?? "buildkit",
|
scope: (val.scope) ?? "buildkit",
|
||||||
token: (val.token) ?? (utilities.getEnv("ACTIONS_RUNTIME_TOKEN") || ""),
|
|
||||||
url: (val.url) ?? (utilities.getEnv("ACTIONS_CACHE_URL") || ""),
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -303,6 +290,12 @@ 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 {
|
export interface CacheToGitHubActionsArgs {
|
||||||
/**
|
/**
|
||||||
* Ignore errors caused by failed cache exports.
|
* Ignore errors caused by failed cache exports.
|
||||||
@@ -319,23 +312,6 @@ export interface CacheToGitHubActionsArgs {
|
|||||||
* workflow, otherwise caches will overwrite each other.
|
* workflow, otherwise caches will overwrite each other.
|
||||||
*/
|
*/
|
||||||
scope?: pulumi.Input<string>;
|
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
|
* cacheToGitHubActionsArgsProvideDefaults sets the appropriate defaults for CacheToGitHubActionsArgs
|
||||||
@@ -346,8 +322,6 @@ export function cacheToGitHubActionsArgsProvideDefaults(val: CacheToGitHubAction
|
|||||||
ignoreError: (val.ignoreError) ?? false,
|
ignoreError: (val.ignoreError) ?? false,
|
||||||
mode: (val.mode) ?? "min",
|
mode: (val.mode) ?? "min",
|
||||||
scope: (val.scope) ?? "buildkit",
|
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,6 +104,12 @@ export interface CacheFromAzureBlob {
|
|||||||
secretAccessKey?: string;
|
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 {
|
export interface CacheFromGitHubActions {
|
||||||
/**
|
/**
|
||||||
* The scope to use for cache keys. Defaults to `buildkit`.
|
* The scope to use for cache keys. Defaults to `buildkit`.
|
||||||
@@ -112,23 +118,6 @@ export interface CacheFromGitHubActions {
|
|||||||
* workflow, otherwise caches will overwrite each other.
|
* workflow, otherwise caches will overwrite each other.
|
||||||
*/
|
*/
|
||||||
scope?: string;
|
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
|
* cacheFromGitHubActionsProvideDefaults sets the appropriate defaults for CacheFromGitHubActions
|
||||||
@@ -137,8 +126,6 @@ export function cacheFromGitHubActionsProvideDefaults(val: CacheFromGitHubAction
|
|||||||
return {
|
return {
|
||||||
...val,
|
...val,
|
||||||
scope: (val.scope) ?? "buildkit",
|
scope: (val.scope) ?? "buildkit",
|
||||||
token: (val.token) ?? (utilities.getEnv("ACTIONS_RUNTIME_TOKEN") || ""),
|
|
||||||
url: (val.url) ?? (utilities.getEnv("ACTIONS_CACHE_URL") || ""),
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -303,6 +290,12 @@ 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 {
|
export interface CacheToGitHubActions {
|
||||||
/**
|
/**
|
||||||
* Ignore errors caused by failed cache exports.
|
* Ignore errors caused by failed cache exports.
|
||||||
@@ -319,23 +312,6 @@ export interface CacheToGitHubActions {
|
|||||||
* workflow, otherwise caches will overwrite each other.
|
* workflow, otherwise caches will overwrite each other.
|
||||||
*/
|
*/
|
||||||
scope?: string;
|
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
|
* cacheToGitHubActionsProvideDefaults sets the appropriate defaults for CacheToGitHubActions
|
||||||
@@ -346,8 +322,6 @@ export function cacheToGitHubActionsProvideDefaults(val: CacheToGitHubActions):
|
|||||||
ignoreError: (val.ignoreError) ?? false,
|
ignoreError: (val.ignoreError) ?? false,
|
||||||
mode: (val.mode) ?? "min",
|
mode: (val.mode) ?? "min",
|
||||||
scope: (val.scope) ?? "buildkit",
|
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,6 +281,12 @@ class CacheFromAzureBlobArgs:
|
|||||||
|
|
||||||
if not MYPY:
|
if not MYPY:
|
||||||
class CacheFromGitHubActionsArgsDict(TypedDict):
|
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]]
|
scope: NotRequired[pulumi.Input[_builtins.str]]
|
||||||
"""
|
"""
|
||||||
The scope to use for cache keys. Defaults to `buildkit`.
|
The scope to use for cache keys. Defaults to `buildkit`.
|
||||||
@@ -288,61 +294,27 @@ if not MYPY:
|
|||||||
This should be set if building and caching multiple images in one
|
This should be set if building and caching multiple images in one
|
||||||
workflow, otherwise caches will overwrite each other.
|
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:
|
elif False:
|
||||||
CacheFromGitHubActionsArgsDict: TypeAlias = Mapping[str, Any]
|
CacheFromGitHubActionsArgsDict: TypeAlias = Mapping[str, Any]
|
||||||
|
|
||||||
@pulumi.input_type
|
@pulumi.input_type
|
||||||
class CacheFromGitHubActionsArgs:
|
class CacheFromGitHubActionsArgs:
|
||||||
def __init__(__self__, *,
|
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`.
|
: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
|
This should be set if building and caching multiple images in one
|
||||||
workflow, otherwise caches will overwrite each other.
|
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:
|
if scope is None:
|
||||||
scope = 'buildkit'
|
scope = 'buildkit'
|
||||||
if scope is not None:
|
if scope is not None:
|
||||||
pulumi.set(__self__, "scope", scope)
|
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
|
@_builtins.property
|
||||||
@pulumi.getter
|
@pulumi.getter
|
||||||
@@ -359,39 +331,6 @@ class CacheFromGitHubActionsArgs:
|
|||||||
def scope(self, value: Optional[pulumi.Input[_builtins.str]]):
|
def scope(self, value: Optional[pulumi.Input[_builtins.str]]):
|
||||||
pulumi.set(self, "scope", value)
|
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:
|
if not MYPY:
|
||||||
class CacheFromLocalArgsDict(TypedDict):
|
class CacheFromLocalArgsDict(TypedDict):
|
||||||
@@ -977,6 +916,12 @@ class CacheToAzureBlobArgs:
|
|||||||
|
|
||||||
if not MYPY:
|
if not MYPY:
|
||||||
class CacheToGitHubActionsArgsDict(TypedDict):
|
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_error: NotRequired[pulumi.Input[_builtins.bool]]
|
||||||
"""
|
"""
|
||||||
Ignore errors caused by failed cache exports.
|
Ignore errors caused by failed cache exports.
|
||||||
@@ -992,23 +937,6 @@ if not MYPY:
|
|||||||
This should be set if building and caching multiple images in one
|
This should be set if building and caching multiple images in one
|
||||||
workflow, otherwise caches will overwrite each other.
|
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:
|
elif False:
|
||||||
CacheToGitHubActionsArgsDict: TypeAlias = Mapping[str, Any]
|
CacheToGitHubActionsArgsDict: TypeAlias = Mapping[str, Any]
|
||||||
|
|
||||||
@@ -1017,27 +945,18 @@ class CacheToGitHubActionsArgs:
|
|||||||
def __init__(__self__, *,
|
def __init__(__self__, *,
|
||||||
ignore_error: Optional[pulumi.Input[_builtins.bool]] = None,
|
ignore_error: Optional[pulumi.Input[_builtins.bool]] = None,
|
||||||
mode: Optional[pulumi.Input['CacheMode']] = 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[_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['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`.
|
: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
|
This should be set if building and caching multiple images in one
|
||||||
workflow, otherwise caches will overwrite each other.
|
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:
|
if ignore_error is None:
|
||||||
ignore_error = False
|
ignore_error = False
|
||||||
@@ -1051,14 +970,6 @@ class CacheToGitHubActionsArgs:
|
|||||||
scope = 'buildkit'
|
scope = 'buildkit'
|
||||||
if scope is not None:
|
if scope is not None:
|
||||||
pulumi.set(__self__, "scope", scope)
|
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
|
@_builtins.property
|
||||||
@pulumi.getter(name="ignoreError")
|
@pulumi.getter(name="ignoreError")
|
||||||
@@ -1099,39 +1010,6 @@ class CacheToGitHubActionsArgs:
|
|||||||
def scope(self, value: Optional[pulumi.Input[_builtins.str]]):
|
def scope(self, value: Optional[pulumi.Input[_builtins.str]]):
|
||||||
pulumi.set(self, "scope", value)
|
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:
|
if not MYPY:
|
||||||
class CacheToInlineArgsDict(TypedDict):
|
class CacheToInlineArgsDict(TypedDict):
|
||||||
|
|||||||
116
sdk/python/pulumi_docker_build/outputs.py
generated
116
sdk/python/pulumi_docker_build/outputs.py
generated
@@ -293,39 +293,28 @@ class CacheFromAzureBlob(dict):
|
|||||||
|
|
||||||
@pulumi.output_type
|
@pulumi.output_type
|
||||||
class CacheFromGitHubActions(dict):
|
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__, *,
|
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`.
|
: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
|
This should be set if building and caching multiple images in one
|
||||||
workflow, otherwise caches will overwrite each other.
|
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:
|
if scope is None:
|
||||||
scope = 'buildkit'
|
scope = 'buildkit'
|
||||||
if scope is not None:
|
if scope is not None:
|
||||||
pulumi.set(__self__, "scope", scope)
|
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
|
@_builtins.property
|
||||||
@pulumi.getter
|
@pulumi.getter
|
||||||
@@ -338,31 +327,6 @@ class CacheFromGitHubActions(dict):
|
|||||||
"""
|
"""
|
||||||
return pulumi.get(self, "scope")
|
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
|
@pulumi.output_type
|
||||||
class CacheFromLocal(dict):
|
class CacheFromLocal(dict):
|
||||||
@@ -784,6 +748,12 @@ class CacheToAzureBlob(dict):
|
|||||||
|
|
||||||
@pulumi.output_type
|
@pulumi.output_type
|
||||||
class CacheToGitHubActions(dict):
|
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
|
@staticmethod
|
||||||
def __key_warning(key: str):
|
def __key_warning(key: str):
|
||||||
suggest = None
|
suggest = None
|
||||||
@@ -804,27 +774,18 @@ class CacheToGitHubActions(dict):
|
|||||||
def __init__(__self__, *,
|
def __init__(__self__, *,
|
||||||
ignore_error: Optional[_builtins.bool] = None,
|
ignore_error: Optional[_builtins.bool] = None,
|
||||||
mode: Optional['CacheMode'] = 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 _builtins.bool ignore_error: Ignore errors caused by failed cache exports.
|
||||||
:param 'CacheMode' mode: The cache mode to use. Defaults to `min`.
|
: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`.
|
: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
|
This should be set if building and caching multiple images in one
|
||||||
workflow, otherwise caches will overwrite each other.
|
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:
|
if ignore_error is None:
|
||||||
ignore_error = False
|
ignore_error = False
|
||||||
@@ -838,14 +799,6 @@ class CacheToGitHubActions(dict):
|
|||||||
scope = 'buildkit'
|
scope = 'buildkit'
|
||||||
if scope is not None:
|
if scope is not None:
|
||||||
pulumi.set(__self__, "scope", scope)
|
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
|
@_builtins.property
|
||||||
@pulumi.getter(name="ignoreError")
|
@pulumi.getter(name="ignoreError")
|
||||||
@@ -874,31 +827,6 @@ class CacheToGitHubActions(dict):
|
|||||||
"""
|
"""
|
||||||
return pulumi.get(self, "scope")
|
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
|
@pulumi.output_type
|
||||||
class CacheToInline(dict):
|
class CacheToInline(dict):
|
||||||
|
|||||||
Reference in New Issue
Block a user