Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pulumi/pulumi-docker
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.6.1
Choose a base ref
...
head repository: pulumi/pulumi-docker
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.6.2
Choose a head ref

Commits on Jan 22, 2025

  1. Update GitHub Actions workflows. (#1342)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit 0ec2b8485fe51c364be44467682099d341ac9466.
    pulumi-bot authored Jan 22, 2025
    Copy the full SHA
    4464415 View commit details

Commits on Jan 25, 2025

  1. Update GitHub Actions workflows. (#1345)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit aa2a37295049753523907396e65e76a3213becad.
    pulumi-bot authored Jan 25, 2025
    Copy the full SHA
    1600af6 View commit details

Commits on Jan 28, 2025

  1. Update GitHub Actions workflows. (#1346)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit c6b5055985671f8ba8d248972a9f3aab4112af74.
    pulumi-bot authored Jan 28, 2025
    Copy the full SHA
    a87c810 View commit details
  2. Upgrade pulumi-terraform-bridge to v3.102.0 (#1347)

    This PR was generated via `$ upgrade-provider pulumi/pulumi-docker
    --kind=bridge --pr-reviewers=VenelinMartinov`.
    
    ---
    
    - Upgrading pulumi-terraform-bridge from v3.101.0 to v3.102.0.
    pulumi-bot authored Jan 28, 2025
    Copy the full SHA
    a4d189e View commit details

Commits on Jan 31, 2025

  1. Update GitHub Actions workflows. (#1350)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit 3d9b4e60fffb541b1d54553431fcebfd9dabb63b.
    pulumi-bot authored Jan 31, 2025
    Copy the full SHA
    dfba2e2 View commit details

Commits on Feb 1, 2025

  1. Update GitHub Actions workflows. (#1351)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit 8460c384731548e00825ae32d83c7cb61b5da682.
    pulumi-bot authored Feb 1, 2025
    Copy the full SHA
    45061e5 View commit details

Commits on Feb 4, 2025

  1. Update GitHub Actions workflows. (#1352)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit 20cf97893b0fd553d253e9cee1c73884d4bb2d38.
    pulumi-bot authored Feb 4, 2025
    Copy the full SHA
    a19abb3 View commit details

Commits on Feb 5, 2025

  1. Update GitHub Actions workflows. (#1353)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit 87a49339e512f38177d9b4f4c9138a91d9855fe2.
    pulumi-bot authored Feb 5, 2025
    Copy the full SHA
    a4ecc39 View commit details

Commits on Feb 6, 2025

  1. Update GitHub Actions workflows. (#1355)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit 030556b6eb1898595f71f73dd5355c8fc2cfcff0.
    pulumi-bot authored Feb 6, 2025
    Copy the full SHA
    d853618 View commit details

Commits on Feb 7, 2025

  1. Update GitHub Actions workflows. (#1357)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit 52a4a4ba4be7dfa9128b136bbec1df4bfda8b5d3.
    pulumi-bot authored Feb 7, 2025
    Copy the full SHA
    c8c60c4 View commit details

Commits on Feb 8, 2025

  1. Update GitHub Actions workflows. (#1358)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit 45705ba6f323a7ea59aa74c1a26a8b4b1b81362c.
    pulumi-bot authored Feb 8, 2025
    Copy the full SHA
    96500ef View commit details

Commits on Feb 9, 2025

  1. Update GitHub Actions workflows. (#1360)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit 37553caef139658d47a57c97fac3c0d382c8c466.
    pulumi-bot authored Feb 9, 2025
    Copy the full SHA
    da4b66d View commit details

Commits on Feb 11, 2025

  1. Update GitHub Actions workflows. (#1361)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit c22ee327908c6678935476787413a5086874c6f2.
    pulumi-bot authored Feb 11, 2025
    Copy the full SHA
    202e7fe View commit details

Commits on Feb 12, 2025

  1. Update GitHub Actions workflows. (#1362)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit a9530f0b7c143fd506052a4cc7a55fa6f6d6469d.
    pulumi-bot authored Feb 12, 2025
    Copy the full SHA
    4124baa View commit details
  2. Upgrade pulumi-terraform-bridge to v3.103.0 (#1364)

    This PR was generated via `$ upgrade-provider pulumi/pulumi-docker
    --kind=bridge --pr-reviewers=VenelinMartinov`.
    
    ---
    
    - Updating Java Gen version from 1.0.0 to 1.3.0.
    - Upgrading pulumi-terraform-bridge from v3.102.0 to v3.103.0.
    pulumi-bot authored Feb 12, 2025
    Copy the full SHA
    3a10e59 View commit details

Commits on Feb 13, 2025

  1. Update GitHub Actions workflows. (#1365)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit bebe923d5312b1d1e63075152151c7d964c49db5.
    pulumi-bot authored Feb 13, 2025
    Copy the full SHA
    212e780 View commit details

Commits on Feb 14, 2025

  1. Update GitHub Actions workflows. (#1366)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit d5e0fe4f36d4ac17f919bd8deb603fcf88c25261.
    pulumi-bot authored Feb 14, 2025
    Copy the full SHA
    2654ba5 View commit details

Commits on Feb 15, 2025

  1. Update GitHub Actions workflows. (#1367)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit ef5e87d4b305de2ffcd006db44e2706da5666b5b.
    pulumi-bot authored Feb 15, 2025
    Copy the full SHA
    56c1a6d View commit details

Commits on Feb 16, 2025

  1. Update GitHub Actions workflows. (#1368)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit 37e93d942f6b446e78d5c6bca79b0634b03b1d85.
    pulumi-bot authored Feb 16, 2025
    Copy the full SHA
    713c2ee View commit details

Commits on Feb 18, 2025

  1. Update GitHub Actions workflows. (#1369)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit 774f4e1cf098e8d431e5785072cfe6157d98fc7a.
    pulumi-bot authored Feb 18, 2025
    Copy the full SHA
    bf6d5cb View commit details

Commits on Feb 19, 2025

  1. Update GitHub Actions workflows. (#1370)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit 587c2f886f8d7c080271c16f8ea005978745f0a6.
    pulumi-bot authored Feb 19, 2025
    Copy the full SHA
    94b5fba View commit details

Commits on Feb 20, 2025

  1. Update GitHub Actions workflows. (#1371)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit 960d5e1ea4a696f40452937c615c118c93c2632a.
    pulumi-bot authored Feb 20, 2025
    Copy the full SHA
    8eefed1 View commit details

Commits on Feb 25, 2025

  1. Update GitHub Actions workflows. (#1372)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit 3548bc1011224ccba6aeb93ab9cf5bd25e9f75f4.
    pulumi-bot authored Feb 25, 2025
    Copy the full SHA
    2903c15 View commit details

Commits on Feb 26, 2025

  1. Update GitHub Actions workflows. (#1373)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit 2f8b587109e6bd8c9e3013fe631d171ce959e356.
    pulumi-bot authored Feb 26, 2025
    Copy the full SHA
    57e76d4 View commit details

Commits on Feb 27, 2025

  1. Update GitHub Actions workflows. (#1374)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit 6f5f171fa0446a7d4a5ae4e07adc6f8cc5f994c7.
    pulumi-bot authored Feb 27, 2025
    Copy the full SHA
    e6363f7 View commit details

Commits on Feb 28, 2025

  1. Update GitHub Actions workflows. (#1376)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit ea6479fcbca4b3b86182ffdd8731b26746795508.
    pulumi-bot authored Feb 28, 2025
    Copy the full SHA
    4126125 View commit details

Commits on Mar 1, 2025

  1. Update GitHub Actions workflows. (#1378)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit 0c2df975c437cffd8381f4d00708276e53d95bb2.
    pulumi-bot authored Mar 1, 2025
    Copy the full SHA
    67912fc View commit details

Commits on Mar 4, 2025

  1. Update GitHub Actions workflows. (#1380)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit 43a1ce677a508ed7c933c4cd06903d872f701519.
    pulumi-bot authored Mar 4, 2025
    Copy the full SHA
    e79214f View commit details
  2. Upgrade pulumi-terraform-bridge to v3.104.0 (#1381)

    This PR was generated via `$ upgrade-provider pulumi/pulumi-docker
    --kind=bridge --pr-reviewers=VenelinMartinov
    --allow-missing-docs=false`.
    
    ---
    
    - Updating Java Gen version from 1.3.0 to 1.5.0.
    - Upgrading pulumi-terraform-bridge from v3.103.0 to v3.104.0.
    pulumi-bot authored Mar 4, 2025
    Copy the full SHA
    179bbd0 View commit details

Commits on Mar 5, 2025

  1. Update GitHub Actions workflows. (#1382)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit 1d29d0d536581587809eaa271c0582fdfbd5240f.
    pulumi-bot authored Mar 5, 2025
    Copy the full SHA
    77b132b View commit details

Commits on Mar 6, 2025

  1. Update GitHub Actions workflows. (#1383)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit b7e2ed740f8833f6a1bd2a3d5714d4c92d3b40ae.
    pulumi-bot authored Mar 6, 2025
    Copy the full SHA
    c096167 View commit details

Commits on Mar 7, 2025

  1. Update GitHub Actions workflows. (#1384)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit bb22127824c738ebeced0b291c18981198b55145.
    pulumi-bot authored Mar 7, 2025
    Copy the full SHA
    56b7bc8 View commit details

Commits on Mar 9, 2025

  1. Update GitHub Actions workflows. (#1386)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit d77004611f0044baca1f99589d312808cfa72d60.
    pulumi-bot authored Mar 9, 2025
    Copy the full SHA
    388041c View commit details

Commits on Mar 13, 2025

  1. Update GitHub Actions workflows. (#1388)

    This PR was automatically generated by the
    update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
    repo, from commit 33be26eca6778486422a6beaf847a97f0452de97.
    pulumi-bot authored Mar 13, 2025
    Copy the full SHA
    356297e View commit details

Commits on Mar 15, 2025

  1. Upgrade pulumi-terraform-bridge to v3.105.0 (#1391)

    This PR was generated via `$ upgrade-provider pulumi/pulumi-docker
    --kind=bridge --pr-reviewers=t0yv0 --allow-missing-docs=false`.
    
    ---
    
    - Updating Java Gen version from 1.5.0 to 1.6.0.
    - Upgrading pulumi-terraform-bridge from v3.104.0 to v3.105.0.
    pulumi-bot authored Mar 15, 2025
    Copy the full SHA
    45ae2bf View commit details
Showing with 1,184 additions and 717 deletions.
  1. +0 −17 .github/actions/download-codegen/action.yml
  2. +28 −0 .github/actions/download-prerequisites/action.yml
  3. +1 −1 .github/actions/{download-bin → download-provider}/action.yml
  4. +1 −1 .github/actions/download-sdk/action.yml
  5. +7 −7 .github/actions/setup-tools/action.yml
  6. +23 −0 .github/actions/upload-prerequisites/action.yml
  7. +1 −1 .github/actions/upload-sdk/action.yml
  8. +40 −21 .github/workflows/build_provider.yml
  9. +3 −3 .github/workflows/build_sdk.yml
  10. +3 −3 .github/workflows/lint.yml
  11. +85 −0 .github/workflows/main-post-build.yml
  12. +7 −38 .github/workflows/master.yml
  13. +1 −0 .github/workflows/prerelease.yml
  14. +6 −16 .github/workflows/prerequisites.yml
  15. +14 −4 .github/workflows/publish.yml
  16. +1 −0 .github/workflows/release.yml
  17. +7 −0 .github/workflows/run-acceptance-tests.yml
  18. +4 −4 .github/workflows/test.yml
  19. +34 −3 .github/workflows/upgrade-bridge.yml
  20. +9 −5 .github/workflows/upgrade-provider.yml
  21. +2 −5 .github/workflows/verify-release.yml
  22. +2 −0 .golangci.yml
  23. +1 −1 .pulumi-java-gen.version
  24. +21 −129 Makefile
  25. +1 −1 devbox.json
  26. +1 −1 examples/aws-container-registry/csharp/cbp-aws-csharp.csproj
  27. +1 −1 examples/azure-container-registry/csharp/cbp-azure-csharp.csproj
  28. +1 −1 examples/digitalocean-container-registry/csharp/cbp-digitalocean-csharp.csproj
  29. +1 −1 examples/docker-container-registry/csharp/cbp-aws-csharp.csproj
  30. +13 −11 examples/dockerfile-go/go.mod
  31. +28 −58 examples/dockerfile-go/go.sum
  32. +1 −1 examples/dotnet/Docker.csproj
  33. +1 −1 examples/gcp-container-registry/csharp/cbp-gcp-csharp.csproj
  34. +14 −12 examples/go.mod
  35. +28 −40 examples/go.sum
  36. +13 −11 examples/multi-stage-build-go/go.mod
  37. +28 −58 examples/multi-stage-build-go/go.sum
  38. +1 −1 examples/nginx-cs/NginxDocker.csproj
  39. +13 −11 examples/nginx-go/go.mod
  40. +28 −58 examples/nginx-go/go.sum
  41. +1 −1 examples/test-secrets-in-explicit-provider/csharp/docker-640.csproj
  42. +1 −1 provider/cmd/pulumi-resource-docker/schema.json
  43. +34 −33 provider/go.mod
  44. +504 −73 provider/go.sum
  45. +4 −4 provider/pkg/docs-gen/examples/image.md
  46. +80 −0 scripts/crossbuild.mk
  47. +28 −0 scripts/plugins.mk
  48. +4 −1 { → scripts}/upstream.sh
  49. +13 −11 sdk/go.mod
  50. +28 −58 sdk/go.sum
  51. +1 −1 sdk/java/build.gradle
  52. +4 −4 sdk/java/src/main/java/com/pulumi/docker/Image.java
  53. +8 −4 sdk/python/pulumi_docker/_utilities.py
17 changes: 0 additions & 17 deletions .github/actions/download-codegen/action.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/actions/download-prerequisites/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Download the code generator binary
description: Downloads the code generator binary to `bin/`.

runs:
using: "composite"
steps:
- name: Download the prerequisites bin
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
with:
name: prerequisites-bin
path: bin

- name: Restore executable permissions
shell: bash
run: chmod +x $(< bin/executables.txt)

- name: Remove executables list
shell: bash
run: rm bin/executables.txt

- name: Download schema-embed.json
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
with:
# Use a pattern to avoid failing if the artifact doesn't exist
pattern: schema-embed.*
# Avoid creating directories for each artifact
merge-multiple: true
path: provider/cmd/pulumi-resource-docker
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ runs:
steps:

- name: Download pulumi-resource-docker
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
with:
pattern: pulumi-resource-docker-*-linux-amd64.tar.gz
path: ${{ github.workspace }}/bin
2 changes: 1 addition & 1 deletion .github/actions/download-sdk/action.yml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ runs:
using: "composite"
steps:
- name: Download ${{ inputs.language }} SDK
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
with:
name: ${{ inputs.language }}-sdk.tar.gz
path: ${{ github.workspace}}/sdk/
14 changes: 7 additions & 7 deletions .github/actions/setup-tools/action.yml
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ runs:
steps:
- name: Install Go
if: inputs.tools == 'all' || contains(inputs.tools, 'go')
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
with:
go-version: "1.21.x"
cache-dependency-path: |
@@ -47,7 +47,7 @@ runs:

- name: Install Pulumi CLI
if: inputs.tools == 'all' || contains(inputs.tools, 'pulumicli')
uses: pulumi/actions@13b8b7177d6fb736766875dac9b78aab07bd785f # v6
uses: pulumi/actions@9519177da243fd32cab35cdbf19cce1ab7472fcc # v6
with:
pulumi-version: "dev"

@@ -59,26 +59,26 @@ runs:

- name: Setup Node
if: inputs.tools == 'all' || contains(inputs.tools, 'nodejs')
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
with:
node-version: 20.x
registry-url: https://registry.npmjs.org

- name: Setup DotNet
if: inputs.tools == 'all' || contains(inputs.tools, 'dotnet')
uses: actions/setup-dotnet@87b7050bc53ea08284295505d98d2aa94301e852 # v4.2.0
uses: actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # v4.3.0
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x

- name: Setup Python
if: inputs.tools == 'all' || contains(inputs.tools, 'python')
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: 3.11.8

- name: Setup Java
if: inputs.tools == 'all' || contains(inputs.tools, 'java')
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
with:
cache: gradle
distribution: temurin
23 changes: 23 additions & 0 deletions .github/actions/upload-prerequisites/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Upload SDK asset
description: Upload the SDK for a specific language as an asset for the workflow.

runs:
using: "composite"
steps:
- name: Capture executable permissions
shell: bash
run: find bin -type f -executable > bin/executables.txt

- name: Upload prerequisites bin
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: prerequisites-bin
path: bin/*
retention-days: 30

- name: Upload schema-embed.json
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: schema-embed.json
path: provider/cmd/pulumi-resource-docker/schema-embed.json
retention-days: 30
2 changes: 1 addition & 1 deletion .github/actions/upload-sdk/action.yml
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ runs:
shell: bash
run: tar -zcf sdk/${{ inputs.language }}.tar.gz -C sdk/${{ inputs.language }} .
- name: Upload artifacts
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: ${{ inputs.language }}-sdk.tar.gz
path: ${{ github.workspace}}/sdk/${{ inputs.language }}.tar.gz
61 changes: 40 additions & 21 deletions .github/workflows/build_provider.yml
Original file line number Diff line number Diff line change
@@ -9,6 +9,19 @@ on:
required: true
type: string
description: Version of the provider to build
matrix:
required: false
type: string
default: |
{
"platform": [
{"os": "linux", "arch": "amd64"},
{"os": "linux", "arch": "arm64"},
{"os": "darwin", "arch": "amd64"},
{"os": "darwin", "arch": "arm64"},
{"os": "windows", "arch": "amd64"}
]
}
jobs:
build_provider:
@@ -19,18 +32,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
fail-fast: true
matrix:
platform:
- os: linux
arch: amd64
- os: linux
arch: arm64
- os: darwin
arch: amd64
- os: darwin
arch: arm64
- os: windows
arch: amd64
matrix: ${{ fromJSON(inputs.matrix) }}
steps:
- name: Checkout Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -45,17 +47,34 @@ jobs:
uses: ./.github/actions/setup-tools
with:
tools: pulumictl, go
# use per-platform/arch caches instead since we are doing cross-builds
cache-go: false
# Based on https://github.com/actions/cache/blob/main/examples.md#go---modules
- name: Get GOCACHE
id: gocache
shell: bash
run: |
echo "path=$(go env GOCACHE)" >> "${GITHUB_OUTPUT}"
- name: Get GOMODCACHE
id: gomodcache
shell: bash
run: |
echo "path=$(go env GOMODCACHE)" >> "${GITHUB_OUTPUT}"
- name: Go Cache
uses: actions/cache@v4
with:
path: |
${{ steps.gocache.outputs.path }}
${{ steps.gomodcache.outputs.path }}
key: go-provider-${{ matrix.platform.os }}-${{ matrix.platform.arch }}-${{ hashFiles('provider/go.sum') }}
restore-keys: |
go-provider-${{ matrix.platform.os }}-${{ matrix.platform.arch }}-
- name: Prepare local workspace before restoring previously built
run: make prepare_local_workspace
- name: Download schema-embed.json
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
# Use a pattern to avoid failing if the artifact doesn't exist
pattern: schema-embed.*
# Avoid creating directories for each artifact
merge-multiple: true
path: provider/cmd/pulumi-resource-docker
- name: Restore prerequisites
uses: ./.github/actions/download-prerequisites
- name: Restore makefile progress
# This mirrors the targets completed in the prerequisites job
run: make --touch provider schema

- name: Build provider
@@ -71,7 +90,7 @@ jobs:
run: make provider_dist-${{ matrix.platform.os }}-${{ matrix.platform.arch }}

- name: Upload artifacts
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: pulumi-resource-docker-v${{ inputs.version }}-${{ matrix.platform.os }}-${{ matrix.platform.arch }}.tar.gz
path: bin/pulumi-resource-docker-v${{ inputs.version }}-${{ matrix.platform.os }}-${{ matrix.platform.arch }}.tar.gz
6 changes: 3 additions & 3 deletions .github/workflows/build_sdk.yml
Original file line number Diff line number Diff line change
@@ -65,7 +65,7 @@ jobs:
with:
persist-credentials: false
- name: Cache examples generation
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4
with:
path: |
.pulumi/examples-cache
@@ -76,8 +76,8 @@ jobs:
tools: pulumictl, pulumicli, ${{ matrix.language }}
- name: Prepare local workspace
run: make prepare_local_workspace
- name: Download codegen
uses: ./.github/actions/download-codegen
- name: Download prerequisites
uses: ./.github/actions/download-prerequisites
- name: Update path
run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
- name: Restore makefile progress
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ jobs:
with:
persist-credentials: false
- name: Install go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
with:
# The versions of golangci-lint and setup-go here cross-depend and need to update together.
go-version: 1.23
@@ -64,7 +64,7 @@ jobs:
continue-on-error: true
run: make prepare_local_workspace
- name: golangci-lint
uses: golangci/golangci-lint-action@ec5d18412c0aeab7936cb16880d708ba2a64e1ae # v6
uses: golangci/golangci-lint-action@4696ba8babb6127d732c3c6dde519db15edab9ea # v6
with:
version: v1.60
version: v1.64.6
working-directory: provider
85 changes: 85 additions & 0 deletions .github/workflows/main-post-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt

name: "Main post-build"

on:
workflow_call:
inputs:
version:
type: string
required: true

env:
ARM_CLIENT_ID: 30e520fa-12b4-4e21-b473-9426c5ac2e1e
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }}
ARM_SUBSCRIPTION_ID: 0282681f-7a9e-424b-80b2-96babd57a8a1
ARM_TENANT_ID: 706143bc-e1d4-4593-aee2-c9dc60ab9be7
AWS_REGION: us-west-2
AZURE_LOCATION: westus
DIGITALOCEAN_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOOGLE_CI_SERVICE_ACCOUNT_EMAIL: pulumi-ci@pulumi-ci-gcp-provider.iam.gserviceaccount.com
GOOGLE_CI_WORKLOAD_IDENTITY_POOL: pulumi-ci
GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER: pulumi-ci
GOOGLE_PROJECT: pulumi-ci-gcp-provider
GOOGLE_PROJECT_NUMBER: "895284651812"
GOOGLE_REGION: us-central1
GOOGLE_ZONE: us-central1-a
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }}
PRIVATE_SSH_KEY_FOR_DIGITALOCEAN: ${{ secrets.PRIVATE_SSH_KEY_FOR_DIGITALOCEAN }}
PUBLISH_REPO_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
PUBLISH_REPO_USERNAME: ${{ secrets.OSSRH_USERNAME }}
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
PULUMI_API: https://api.pulumi-staging.io
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
PYPI_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
PYPI_USERNAME: __token__
SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }}
SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }}
TF_APPEND_USER_AGENT: pulumi

jobs:
generate_coverage_data:
continue-on-error: true
env:
COVERAGE_OUTPUT_DIR: ${{ secrets.COVERAGE_OUTPUT_DIR }}
name: generate_coverage_data
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
with:
tool-cache: false
swap-storage: false
- name: Checkout Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
with:
aws-access-key-id: ${{ secrets.AWS_CORP_S3_UPLOAD_ACCESS_KEY_ID }}
aws-region: us-west-2
aws-secret-access-key: ${{ secrets.AWS_CORP_S3_UPLOAD_SECRET_ACCESS_KEY }}
- name: Setup tools
uses: ./.github/actions/setup-tools
with:
tools: pulumictl, pulumicli, go, schema-tools
- name: Echo Coverage Output Dir
run: 'echo "Coverage output directory: ${{ env.COVERAGE_OUTPUT_DIR }}"'
- name: Generate Coverage Data
run: PULUMI_MISSING_DOCS_ERROR=true make tfgen
- name: Summarize Provider Coverage Results
run: cat ${{ env.COVERAGE_OUTPUT_DIR }}/shortSummary.txt
- name: Upload coverage data to S3
run: >-
summaryName="${PROVIDER}_summary_$(date +"%Y-%m-%d_%H-%M-%S").json"
s3FullURI="s3://${{ secrets.S3_COVERAGE_BUCKET_NAME }}/summaries/${summaryName}"
aws s3 cp "${{ env.COVERAGE_OUTPUT_DIR }}/summary.json" "${s3FullURI}" --acl bucket-owner-full-control
Loading