Skip to content

Commit

Permalink
Add project_name goreleaser config for native providers (#636)
Browse files Browse the repository at this point in the history
  • Loading branch information
rquitales authored Sep 29, 2023
1 parent 1b0bd72 commit 78781cb
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt

project_name: pulumi-aws-native
before:
hooks:
- make init_submodules
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt

project_name: pulumi-aws-native
before:
hooks:
- make init_submodules
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt

project_name: pulumi-azure-native
before:
hooks:
- make init_submodules
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt

project_name: pulumi-azure-native
before:
hooks:
- make init_submodules
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt

project_name: pulumi-command
before:
hooks:
- make codegen
Expand Down
1 change: 1 addition & 0 deletions native-provider-ci/providers/command/repo/.goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt

project_name: pulumi-command
before:
hooks:
- make codegen
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt

project_name: pulumi-google-native
before:
hooks:
- make init_submodules
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt

project_name: pulumi-google-native
before:
hooks:
- make init_submodules
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt

project_name: pulumi-kubernetes
before:
hooks:
- make k8sgen
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt

project_name: pulumi-kubernetes
before:
hooks:
- make k8sgen
Expand Down
4 changes: 4 additions & 0 deletions native-provider-ci/src/goreleaser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export interface Blob {

export interface GoreleaserConfig {
name?: string;
project_name: string;
builds: Build[];
archives: Archive[];
before?: Before;
Expand All @@ -87,6 +88,7 @@ interface GoReleaserOpts {

export class PulumiGoreleaserPreConfig implements GoreleaserConfig {
name?: string;
project_name: string;
before?: Before;
builds: Build[];
archives: Archive[];
Expand Down Expand Up @@ -117,6 +119,8 @@ export class PulumiGoreleaserPreConfig implements GoreleaserConfig {
ldflags.push(`-X ${opts.providerVersion}={{.Tag}}`);
}

this.project_name = `pulumi-${opts.provider}`;

if (!opts.skipCodegen) {
if (opts.provider === "command") {
this.before = {
Expand Down

0 comments on commit 78781cb

Please sign in to comment.