Commit Graph

283 Commits

Author SHA1 Message Date
Pulumi Bot
38333c57b0 Update GitHub Actions workflows. (#355)
This PR was automatically generated by the
update-native-provider-workflows workflow in the pulumi/ci-mgmt repo,
from commit c09ca3824257955e13392d96586b14a0fe49405a.
2024-12-16 15:01:46 -08:00
Pulumi Bot
80d25003de Update GitHub Actions workflows. (#348)
This PR was automatically generated by the
update-native-provider-workflows workflow in the pulumi/ci-mgmt repo,
from commit 7420998a8bb5f45102a45aadd31dde676da6d1d2.
v0.0.8
2024-12-10 09:06:27 -08:00
Bryce Lampe
195fbfc784 Add support for multiple exporters (#235)
Buildkit 0.13 introduced support for [multiple
exporters](https://docs.docker.com/build/exporters/#multiple-exporters).
We currently return an error in these situations.

Instead, inspect the builder's version when loading the node and relax
this error if we see it's running at least 0.13.

Fixes https://github.com/pulumi/pulumi-docker-build/issues/21.
2024-12-10 09:05:36 -08:00
Bryce Lampe
2907567484 Don't attempt to parse custom syntax (#346)
The provider currently attempts to parse your Dockerfile in case there
are any obviously broken syntax errors.

However, Dockerfiles can use custom syntaxes which are implemented as
their own images. Buildkit detects `# syntax=` directives, pulls the
image, and uses it to parse.

It doesn't make sense for us to attempt to replicate that behavior, so
when we detect a custom syntax we will simply disable this validation.
If there are syntax errors the user will discover them after the build
is attempted.

Fixes https://github.com/pulumi/pulumi-docker-build/issues/300
2024-12-09 15:41:58 -08:00
Bryce Lampe
0a045d12bf regenerate sdk 2024-12-04 20:22:31 +00:00
pulumi-renovate[bot]
9f3d3db1dd Pin dependencies 2024-12-04 20:22:31 +00:00
pulumi-renovate[bot]
a18d56b485 Update module github.com/moby/buildkit to v0.18.1 (#330)
Co-authored-by: pulumi-renovate[bot] <189166143+pulumi-renovate[bot]@users.noreply.github.com>
2024-12-04 10:18:32 -08:00
Pulumi Bot
2f620af3be Update GitHub Actions workflows. (#343)
This PR was automatically generated by the
update-native-provider-workflows workflow in the pulumi/ci-mgmt repo,
from commit e7696dfaff0baa5b84126fc6971cc40e89d490cf.
2024-12-04 09:29:48 -08:00
Bryce Lampe
9aa209c0fe Disable Dependabot version bumps 2024-11-25 17:23:38 -08:00
pulumi-renovate[bot]
2c2f8a68a3 fix(deps): update first-party pulumi dependencies 2024-11-25 17:21:25 -08:00
pulumi-renovate[bot]
7479f9f2a5 fix(deps): update github.com/tonistiigi/fsutil digest to 8d32dbd (main) (#309) 2024-11-20 20:43:44 -08:00
pulumi-renovate[bot]
e15f743f8c fix(deps): update module go.uber.org/mock to v0.5.0 (main) (#311) 2024-11-21 04:20:12 +00:00
pulumi-renovate[bot]
ec4594a854 fix(deps): update module github.com/moby/buildkit to v0.17.1 (main) (#315) 2024-11-21 04:18:32 +00:00
pulumi-renovate[bot]
0ce316d7de fix(deps): update module github.com/docker/buildx to v0.18.0 (main) (#312) 2024-11-20 20:00:22 -08:00
Pulumi Bot
0b7a26a9b6 Update GitHub Actions workflows. (#301)
This PR was automatically generated by the
update-native-provider-workflows workflow in the pulumi/ci-mgmt repo,
from commit 915e1137e1e0cac4db9d582f73bc5f578774b762.

Co-authored-by: Bryce Lampe <bryce@pulumi.com>
2024-11-20 18:46:58 -08:00
Bryce Lampe
b66e4a56fd regenerate sdk 2024-11-20 18:30:11 -08:00
Bryce Lampe
0d17198e54 lint 2024-11-20 18:30:11 -08:00
pulumi-renovate[bot]
fb7912a889 fix(deps): update first-party pulumi dependencies 2024-11-20 18:30:11 -08:00
Renovate Bot
4c03012268 Update first-party Pulumi dependencies 2024-10-20 17:01:10 -07:00
Renovate Bot
bf6080cdc4 Update first-party Pulumi dependencies v0.0.7 2024-10-13 17:00:57 -07:00
Ramon Quitales
3d57abba75 upgrade: bump pulumi/pulumi to 3.136.1 (#284)
This is the required commit to unblock CI:
bc7700a50c

Resolves: #272
2024-10-11 16:22:58 -07:00
Anton Tayanovskyy
9d3d0712f2 Fix: do not over-specify SDK dependencies (#271)
Re: https://github.com/pulumi/ci-mgmt/issues/1091
2024-10-02 14:03:54 -04:00
Bryce Lampe
30a26f61e4 Upgrade pulumi-go-provider (#268)
Fixes https://github.com/pulumi/pulumi-docker-build/issues/262.

@iwahbe I realized while putting this together that the provider config
case wasn't actually tested e2e, and I'm skeptical it was ever actually
working. I think it would be reasonable to pull in
https://github.com/pulumi/pulumi-docker-build/pull/253 IMO.
2024-09-27 09:57:50 -07:00
Pulumi Bot
242d99d4d6 Automated upgrade: bump pulumi/pulumi to 3.134.1 (#266)
Automated upgrade: bump pulumi/pulumi to 3.134.1
2024-09-26 10:45:31 -07:00
Pulumi Bot
8151f0369f Automated upgrade: bump pulumi/pulumi to 3.131.0 (#244)
Automated upgrade: bump pulumi/pulumi to 3.131.0

---------

Co-authored-by: Bryce Lampe <bryce@pulumi.com>
2024-09-10 09:26:19 -07:00
Pulumi Bot
3e25f4a26a Update GitHub Actions workflows. (#250)
This PR was automatically generated by the
update-native-provider-workflows workflow in the pulumi/ci-mgmt repo,
from commit ef73d27abae63a21fe95561ad39d3c5b15060b3e.
2024-09-10 03:55:58 -07:00
Pulumi Bot
1affb91b69 Update GitHub Actions workflows. (#240)
This PR was automatically generated by the
update-native-provider-workflows workflow in the pulumi/ci-mgmt repo,
from commit 1ade282c11c4b1e46d1ede6d849c8972f0e2f4e2.
2024-08-29 03:53:53 -07:00
Ramon Quitales
06cf6ec5f8 Fix weekly-pulumi-update (#232)
Fixes: #212

This PR follows the `weekly-pulumi-update` CI workflow steps to update
our `pulumi/pulumi` dependency, with manual intervention to resolve
tooling update conflicts. Before generating the SDKs, it's necessary to
update the language tools and otel packages to ensure compatibility with
the latest changes.

Additional command executed for the manual updates:

```sh
TOOLS=(
    "github.com/pulumi/pulumi/sdk/go/pulumi-language-go/v3"
    "github.com/pulumi/pulumi/sdk/nodejs/cmd/pulumi-language-nodejs/v3"
    "github.com/pulumi/pulumi/sdk/python/cmd/pulumi-language-python/v3"
    "go.opentelemetry.io/otel/exporters/otlp/otlptrace"
)

for TOOL in "${TOOLS[@]}"; do
    go get -u $TOOL
    go mod tidy
done
```
2024-08-26 09:57:49 -07:00
Bryce Lampe
5d7ff1eeca lint 2024-08-14 13:17:24 -07:00
Renovate Bot
b1d2d5b5b3 Update module github.com/docker/docker to v27.1.1+incompatible [SECURITY] 2024-08-14 13:17:24 -07:00
Bryce Lampe
d9c3284f40 Check if local exports exist (#197)
Check if local exports exist during diffing. For tar, the file must
exist. For local, the directory must exist and be populated.

Fixes https://github.com/pulumi/pulumi-docker-build/issues/177.
v0.0.6
2024-08-13 13:52:10 -07:00
Bryce Lampe
81a7aa4ec4 No-op during Read if credentials are invalid (#194)
The `Image` resource already ignores errors during read but the `Index`
resource was requiring the inspect call to always succeed. This will often 
fail due to https://github.com/pulumi/pulumi/issues/4981 (note however in
this case credentials are stored with the resource instead of the provider).

This changes our logic to instead emit a warning if the credentials are
invalid.

Fixes https://github.com/pulumi/pulumi-docker-build/issues/121.
2024-08-13 12:54:14 -07:00
Bryce Lampe
0ba90b8cde Prepare for v0.0.5 release (#189)
### Fixed

- Fixed Go SDK publishing.

### Changed

- Upgraded docker from 27.0.3 to 27.1.0.
v0.0.5
2024-08-08 16:48:00 -07:00
dependabot[bot]
3d127da671 Bump the security group with 2 updates (#170)
---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bryce Lampe <bryce@pulumi.com>
2024-08-08 23:46:33 +00:00
Pulumi Bot
0bd5fe74bc Update GitHub Actions workflows. (#187)
This PR was automatically generated by the
rollout-single-native-provider-workflow workflow in the pulumi/ci-mgmt
repo, from commit 667960097c863755ff354e7143e97d4c96275133.
2024-08-08 23:21:14 +00:00
Pulumi Bot
5cc3415b34 Automated Pulumi/Pulumi upgrade (#175)
Co-authored-by: Bryce Lampe <bryce@pulumi.com>
2024-08-08 16:05:09 -07:00
dependabot[bot]
724836b5ef Bump the other group across 1 directory with 13 updates (#152)
---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bryce Lampe <bryce@pulumi.com>
v0.0.4
2024-07-12 16:40:59 -07:00
Pulumi Bot
78057473ac Update GitHub Actions workflows. (#148)
This PR was automatically generated by the
update-native-provider-workflows workflow in the pulumi/ci-mgmt repo,
from commit d11810c38fc2292ffd01a6d900bc6f3d58d0207c.
2024-07-11 09:19:22 -07:00
Pulumi Bot
cc8725ef27 Automated Pulumi/Pulumi upgrade (#135)
Co-authored-by: Bryce Lampe <bryce@pulumi.com>
2024-07-11 09:17:55 -07:00
Bryce Lampe
bbdefef3c8 Fix an issue where warnings aren't displayed correctly (#136)
This is a byte array that needs to be string'd.
2024-06-27 14:07:25 -07:00
Pulumi Bot
3ce3c83c3e Update GitHub Actions workflows. (#133)
This PR was automatically generated by the
update-native-provider-workflows workflow in the pulumi/ci-mgmt repo,
from commit 9069b7018768de0109f6bf2c25a24fae9099ab9e.
2024-06-27 09:32:30 -07:00
dependabot[bot]
343eadd0b6 Bump the security group across 1 directory with 3 updates (#128) 2024-06-26 12:32:54 -07:00
dependabot[bot]
1febe659ca Bump the docker group with 5 updates (#113)
Bumps the docker group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [github.com/docker/buildx](https://github.com/docker/buildx) |
`0.13.1` | `0.15.1` |
| [github.com/docker/cli](https://github.com/docker/cli) |
`26.0.0-rc1+incompatible` | `26.1.4+incompatible` |
|
[github.com/docker/distribution](https://github.com/docker/distribution)
| `2.8.2+incompatible` | `2.8.3+incompatible` |
| [github.com/docker/docker](https://github.com/docker/docker) |
`26.0.0-rc1+incompatible` | `26.1.4+incompatible` |
| [github.com/moby/buildkit](https://github.com/moby/buildkit) |
`0.13.0` | `0.14.1` |

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Bryce Lampe <bryce@pulumi.com>
2024-06-26 11:07:02 -07:00
Pulumi Bot
233b5e0508 Update GitHub Actions workflows. (#126)
This PR was automatically generated by the
rollout-single-native-provider-workflow workflow in the pulumi/ci-mgmt
repo, from commit efce542f8f2497c86a80bcae970bb5b5573b286a.

---------

Co-authored-by: Bryce Lampe <bryce@pulumi.com>
2024-06-25 23:11:18 +00:00
dependabot[bot]
b8ecfb287a Bump the pulumi group across 1 directory with 6 updates (#111)
This upgrades pulumi to v3.121.0 and bumps several other first-party dependencies.

Note that vendored language plugins must be bumped manually because their go modules are currently untagged:

* go get github.com/pulumi/pulumi/sdk/python/cmd/pulumi-language-python/v3@79e814fe0f2137ade87ee5af384e6cb71e4aa6ff
*  go get github.com/pulumi/pulumi/sdk/nodejs/cmd/pulumi-language-nodejs/v3@79e814fe0f2137ade87ee5af384e6cb71e4aa6ff
* go get github.com/pulumi/pulumi/sdk/go/pulumi-language-go/v3@79e814fe0f2137ade87ee5af384e6cb71e4aa6ff
* go get github.com/pulumi/pulumi-dotnet/pulumi-language-dotnet@fa777213effdc3a80bb893194d63cd8b7ca7a868
* go get github.com/pulumi/pulumi-yaml@15eb402

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bryce Lampe <bryce@pulumi.com>
2024-06-25 14:17:24 -07:00
Bryce Lampe
92ed9d50e9 Re-enable grouping for dependabot security updates (#112)
We have grouped security updates enabled by default at the org level,
however when a repo defines its own `dependabot.yml` it will override
the org's defaults. We don't currently define any grouping for security
updates, hence why we have so many outstanding dependabot PRs.

This adds 3 new groups:
* A security group, to re-enable grouped security updates.
* A docker group, to bump core Docker dependencies like buildx,
buildkit, etc.
* An "other" group as a catch-all for everything else. AFAICT there's no
way to have Dependabot _only_ bump versions for Pulumi & Docker
dependencies, so just dump everything else in here.

The existing pulumi group stopped receiving updates for some reason but
[seems to be
working](https://github.com/pulumi/pulumi-docker-build/pull/111) again
after I re-opened one of the closed PRs.
2024-06-18 12:43:28 -07:00
Daniel Bradley
dd64d7b65d Fix Go SDK publishing (#106)
This provider's SDK module is rooted in `sdk/go/dockerbuild` instead
than `sdk` as other providers are set up.

Fixes https://github.com/pulumi/pulumi-docker-build/issues/93
2024-06-14 14:55:18 +01:00
Bryce Lampe
4e8cf8f4ba Fix a panic that could occur when context was omitted (#83)
I could have sworn the context property was required, but evidently it
isn't and we weren't handling the case when it was missing.

This PR updates things to set a default location of the current
directory if the context is absent. Some unit tests are also added.

Fixes #78.
v0.0.3
2024-05-31 14:41:22 +00:00
Pulumi Bot
44e082a0a0 Update GitHub Actions workflows. (#92)
This PR was automatically generated by the
update-native-provider-workflows workflow in the pulumi/ci-mgmt repo,
from commit 236437ea328a6f3dc4fbfa4924fc968fc619842a.
2024-05-31 01:57:56 -07:00
Pulumi Bot
effb497234 Automated Pulumi/Pulumi upgrade (#90) 2024-05-31 01:57:12 -07:00