Skip to content

Commit 87de872

Browse files
committed
Revert "feat: Migrate Webflow provider to boilerplate template"
This reverts commit dd7338a.
1 parent dd7338a commit 87de872

File tree

144 files changed

+3356
-29604
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+3356
-29604
lines changed

.ci-mgmt.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
template: native
2-
provider: webflow
2+
provider: provider-boilerplate
33
major-version: 0
44
providerDefaultBranch: main
55
publishRegistry: false
6-
providerVersion: github.com/jdetmar/pulumi-webflow/provider.Version
6+
providerVersion: github.com/pulumi/pulumi-provider-boilerplate/provider.Version
77
parallel: 3
8-
sdkModuleDir: sdk/go/webflow
8+
sdkModuleDir: sdk/go/pulumi-provider-boilerplate
99
esc:
1010
enabled: true
1111
environment: imports/github-secrets
12+
# For some reason this is required. If it's omitted all of the env keys get duplicated.
1213
envOverride:
1314
FOO: BAR

.goreleaser.prerelease.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# Webflow Pulumi Provider - GoReleaser Configuration
2-
project_name: pulumi-webflow
1+
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt
2+
3+
project_name: pulumi-provider-boilerplate
34
builds:
45
- id: build-provider
56
dir: provider
@@ -13,13 +14,13 @@ builds:
1314
- amd64
1415
- arm64
1516
ignore: &a1 []
16-
main: ./cmd/pulumi-resource-webflow/
17+
main: ./cmd/pulumi-resource-provider-boilerplate/
1718
ldflags: &a2
1819
- -s
1920
- -w
2021
- -X
21-
github.com/jdetmar/pulumi-webflow/provider.Version={{.Tag}}
22-
binary: pulumi-resource-webflow
22+
github.com/pulumi/pulumi-provider-boilerplate/provider/pkg/version.Version={{.Tag}}
23+
binary: pulumi-resource-provider-boilerplate
2324
- id: build-provider-sign-windows
2425
dir: provider
2526
env:
@@ -31,9 +32,9 @@ builds:
3132
- amd64
3233
- arm64
3334
ignore: *a1
34-
main: ./cmd/pulumi-resource-webflow/
35+
main: ./cmd/pulumi-resource-provider-boilerplate/
3536
ldflags: *a2
36-
binary: pulumi-resource-webflow
37+
binary: pulumi-resource-provider-boilerplate
3738
hooks:
3839
post:
3940
- make sign-goreleaser-exe-{{ .Arch }}
@@ -45,7 +46,7 @@ snapshot:
4546
changelog:
4647
skip: true
4748
release:
48-
disable: false
49+
disable: true
4950
blobs:
5051
- provider: s3
5152
region: us-west-2

.goreleaser.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Webflow Pulumi Provider - GoReleaser Configuration
2-
project_name: pulumi-webflow
1+
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt
2+
project_name: pulumi-provider-boilerplate
33
builds:
44
- id: build-provider
55
dir: provider
@@ -13,13 +13,13 @@ builds:
1313
- amd64
1414
- arm64
1515
ignore: &a1 []
16-
main: ./cmd/pulumi-resource-webflow/
16+
main: ./cmd/pulumi-resource-provider-boilerplate/
1717
ldflags: &a2
1818
- -s
1919
- -w
2020
- -X
21-
github.com/jdetmar/pulumi-webflow/provider.Version={{.Tag}}
22-
binary: pulumi-resource-webflow
21+
github.com/pulumi/pulumi-provider-boilerplate/provider/pkg/version.Version={{.Tag}}
22+
binary: pulumi-resource-provider-boilerplate
2323
- id: build-provider-sign-windows
2424
dir: provider
2525
env:
@@ -31,9 +31,9 @@ builds:
3131
- amd64
3232
- arm64
3333
ignore: *a1
34-
main: ./cmd/pulumi-resource-webflow/
34+
main: ./cmd/pulumi-resource-provider-boilerplate/
3535
ldflags: *a2
36-
binary: pulumi-resource-webflow
36+
binary: pulumi-resource-provider-boilerplate
3737
hooks:
3838
post:
3939
- make sign-goreleaser-exe-{{ .Arch }}

CONTRIBUTING.md

Lines changed: 0 additions & 213 deletions
This file was deleted.

Makefile

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,49 @@
1-
PROJECT_NAME := Pulumi Webflow Provider
1+
PROJECT_NAME := Pulumi Provider Boilerplate
22

3-
PACK := webflow
3+
PACK := provider-boilerplate
44
PACKDIR := sdk
5-
PROJECT := github.com/jdetmar/pulumi-webflow
6-
NODE_MODULE_NAME := pulumi-webflow
7-
NUGET_PKG_NAME := Pulumi.Webflow
5+
PROJECT := github.com/pulumi/pulumi-provider-boilerplate
6+
NODE_MODULE_NAME := @pulumi/boilerplate
7+
NUGET_PKG_NAME := Pulumi.Boilerplate
88

99
PROVIDER := pulumi-resource-${PACK}
1010
PROVIDER_PATH := provider
11-
VERSION_PATH := ${PROVIDER_PATH}.Version
11+
VERSION_PATH := ${PROVIDER_PATH}/version.Version
1212

1313
PULUMI := pulumi
1414

15-
SCHEMA_FILE := provider/cmd/pulumi-resource-webflow/schema.json
15+
SCHEMA_FILE := provider/cmd/pulumi-resource-provider-boilerplate/schema.json
1616
export GOPATH := $(shell go env GOPATH)
1717

1818
WORKING_DIR := $(shell pwd)
1919
TESTPARALLELISM := 4
2020

21+
prepare:
22+
@if test -z "${NAME}"; then echo "NAME not set"; exit 1; fi
23+
@if test -z "${REPOSITORY}"; then echo "REPOSITORY not set"; exit 1; fi
24+
@if test -z "${ORG}"; then echo "ORG not set"; exit 1; fi
25+
@if test ! -d "provider/cmd/pulumi-resource-provider-boilerplate"; then "Project already prepared"; exit 1; fi # SED_SKIP
26+
27+
# SED needs to not fail when encountering unicode characters
28+
LC_CTYPE=C
29+
LANG=C
30+
31+
mv "provider/cmd/pulumi-resource-provider-boilerplate" provider/cmd/pulumi-resource-${NAME} # SED_SKIP
32+
33+
# In MacOS the -i parameter needs an empty to execute in place.
34+
if [[ "${OS}" == "Darwin" ]]; then \
35+
find . \( -path './.git' -o -path './sdk' \) -prune -o -not -name 'go.sum' -type f -exec sed -i '' '/SED_SKIP/!s,github.com/pulumi/pulumi-[x]yz,${REPOSITORY},g' {} \; ; \
36+
find . \( -path './.git' -o -path './sdk' \) -prune -o -not -name 'go.sum' -type f -exec sed -i '' '/SED_SKIP/!s/[xX]yz/${NAME}/g' {} \; ; \
37+
find . \( -path './.git' -o -path './sdk' \) -prune -o -not -name 'go.sum' -type f -exec sed -i '' '/SED_SKIP/!s/[aA]bc/${ORG}/g' {} \; ; \
38+
else \
39+
find . \( -path './.git' -o -path './sdk' \) -prune -o -not -name 'go.sum' -type f -exec sed -i '/SED_SKIP/!s,github.com/pulumi/pulumi-[x]yz,${REPOSITORY},g' {} \; ; \
40+
find . \( -path './.git' -o -path './sdk' \) -prune -o -not -name 'go.sum' -type f -exec sed -i '/SED_SKIP/!s/[xX]yz/${NAME}/g' {} \; ; \
41+
find . \( -path './.git' -o -path './sdk' \) -prune -o -not -name 'go.sum' -type f -exec sed -i '/SED_SKIP/!s/[aA]bc/${ORG}/g' {} \; ; \
42+
fi
43+
2144
# Override during CI using `make [TARGET] PROVIDER_VERSION=""` or by setting a PROVIDER_VERSION environment variable
2245
# Local & branch builds will just used this fixed default version unless specified
23-
PROVIDER_VERSION ?= 0.1.0-alpha.0+dev
46+
PROVIDER_VERSION ?= 1.0.0-alpha.0+dev
2447
# Use this normalised version everywhere rather than the raw input to ensure consistency.
2548
VERSION_GENERIC = $(shell pulumictl convert-version --language generic --version "$(PROVIDER_VERSION)")
2649

@@ -64,9 +87,9 @@ sdk/dotnet: $(SCHEMA_FILE)
6487
sdk/go: ${SCHEMA_FILE}
6588
rm -rf $@
6689
$(PULUMI) package gen-sdk --language go ${SCHEMA_FILE} --version "${VERSION_GENERIC}"
67-
cp go.mod ${PACKDIR}/go/${PACK}/go.mod
68-
cd ${PACKDIR}/go/${PACK} && \
69-
go mod edit -module=github.com/jdetmar/pulumi-${PACK}/${PACKDIR}/go/${PACK} && \
90+
cp go.mod ${PACKDIR}/go/pulumi-${PACK}/go.mod
91+
cd ${PACKDIR}/go/pulumi-${PACK} && \
92+
go mod edit -module=github.com/pulumi/pulumi-${PACK}/${PACKDIR}/go/pulumi-${PACK} && \
7093
go mod tidy
7194

7295
.PHONY: provider
@@ -183,7 +206,7 @@ sign-goreleaser-exe-%: bin/jsign-6.0.jar
183206
echo "To rebuild with signing delete the unsigned windows exe file and rebuild with the fixed configuration"; \
184207
if [[ "${CI}" == "true" ]]; then exit 1; fi; \
185208
else \
186-
file=dist/build-provider-sign-windows_windows_${GORELEASER_ARCH}/pulumi-resource-webflow.exe; \
209+
file=dist/build-provider-sign-windows_windows_${GORELEASER_ARCH}/pulumi-resource-provider-boilerplate.exe; \
187210
mv $${file} $${file}.unsigned; \
188211
az login --service-principal \
189212
--username "${AZURE_SIGNING_CLIENT_ID}" \

0 commit comments

Comments
 (0)