-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add windows signing for native provider releases #1318
Conversation
0ed5155
to
eb7a8bf
Compare
4b980b6
to
b74fa49
Compare
goarch: ["amd64", "arm64"], | ||
ignore: ignores, | ||
main: `./cmd/pulumi-resource-${opts.provider}/`, | ||
ldflags: ldflags, | ||
binary: `pulumi-resource-${opts.provider}`, | ||
}, | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Building for Windows needs to be separated out to allow calling for a post build hook.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's quite confusing that this is named goreleaser - we don't use goreleaser anywhere any more. Edit: oh do we still goreleaser but only for native CI?
It's also a bit unfortunate that we're exposing another custom make target that gets called in a specific way. Can we not make this more transparent and just a configuration option when calling the normal build targets?
In fact, can we just copy the approach taken already in all bridged providers and also avoid drift in the approaches? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm OK with that if tested e2e. IF we're planning to rip out goreleaser sounds like we forgot to scope that in? So deal with it in another unit of work?
### Proposed changes This PR adds a new Makefile target `make sign-goreleaser-exe` target to sign all built GoReleaser windows binaries. This PR contains 2 changes: - Makefile target - Copied ci-mgmt workflow files for validation purposes (generated from: pulumi/ci-mgmt#1318) Please see the linked ci-mgmt issue for status of GitHub actions workflows to validate that the binaries are signed.
### Proposed changes This PR adds a new Makefile target `make sign-goreleaser-exe` target to sign all built GoReleaser windows binaries. This PR contains 2 changes: - Makefile target - Copied ci-mgmt workflow files for validation purposes (generated from: pulumi/ci-mgmt#1318) Please see the linked ci-mgmt issue for status of GitHub actions workflows to validate that the binaries are signed.
### Proposed changes This PR adds a new Makefile target `make sign-goreleaser-exe` target to sign all built GoReleaser windows binaries. This PR contains 2 changes: - Makefile target - Copied ci-mgmt workflow files for validation purposes (generated from: pulumi/ci-mgmt#1318) Please see the linked ci-mgmt issue for status of GitHub actions workflows to validate that the binaries are signed.
### Proposed changes This PR adds a new Makefile target `make sign-goreleaser-exe` target to sign all built GoReleaser windows binaries. This PR contains 2 changes: - Makefile target - Copied ci-mgmt workflow files for validation purposes (generated from: pulumi/ci-mgmt#1318) Please see the linked ci-mgmt issue for status of GitHub actions workflows to validate that the binaries are signed.
### Proposed changes This PR adds a new Makefile target `make sign-goreleaser-exe` target to sign all built GoReleaser windows binaries. This PR contains 2 changes: - Makefile target - Copied ci-mgmt workflow files for validation purposes (generated from: pulumi/ci-mgmt#1318) Please see the linked ci-mgmt issue for status of GitHub actions workflows to validate that the binaries are signed.
### Proposed changes This PR adds a new Makefile target `make sign-goreleaser-exe` target to sign all built GoReleaser windows binaries. This PR contains 2 changes: - Makefile target - Copied ci-mgmt workflow files for validation purposes (generated from: pulumi/ci-mgmt#1318) Please see the linked ci-mgmt issue for status of GitHub actions workflows to validate that the binaries are signed.
This PR enables Windows singing for native provider releases made with GoReleaser. These changes require the
make sign-goreleaser-exe
target to exist. This is done in the individual provider repos as the Makefiles are not managed centrally by ci-mgmt.For testing purposes, these changes are also copied to their respective native provider repos with a prerelease tag cut to validate that the binaries are signed.
Confirmed native providers with signed prerelease windows builds: