diff --git a/.gitignore b/.gitignore index ae10e4a..6d0b35d 100644 --- a/.gitignore +++ b/.gitignore @@ -21,7 +21,7 @@ .vscode # Binary, built with `make build` -/conduit-connector-connectorname +/conduit-processor-processorname.wasm ### OS ### .DS_Store diff --git a/.goreleaser.yml b/.goreleaser.yml index 668f478..2673bd5 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -2,9 +2,9 @@ version: 2 builds: - main: ./cmd/processor/main.go goos: - - darwin - - linux - - windows + - wasip1 + goarch: + - wasm env: - CGO_ENABLED=0 ldflags: @@ -14,11 +14,7 @@ checksum: archives: - name_template: >- {{ .ProjectName }}_ - {{- .Version }}_ - {{- title .Os }}_ - {{- if eq .Arch "amd64" }}x86_64 - {{- else if eq .Arch "386" }}i386 - {{- else }}{{ .Arch }}{{ end }} + {{- .Version }}.wasm changelog: sort: asc use: github diff --git a/Makefile b/Makefile index cc351ad..032e43b 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ VERSION=$(shell git describe --tags --dirty --always) .PHONY: build build: - GOARCH=wasm GOOS=wasip1 go build -o processor.wasm cmd/processor/main.go + GOARCH=wasm GOOS=wasip1 go build -o conduit-processor-processorname.wasm cmd/processor/main.go .PHONY: test test: @@ -32,4 +32,4 @@ fmt: .PHONY: lint lint: - golangci-lint run \ No newline at end of file + golangci-lint run diff --git a/README.md b/README.md index ab9682c..8dc927c 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ start working on a Conduit processor in a matter of seconds. ## Quick start 1. Click [_Use this template_]() and clone your new repository. -2. Initialize the repository using [`setup.sh`](https://github.com/ConduitIO/conduit-connector-template/blob/main/setup.sh) and commit your changes. +2. Initialize the repository using [`setup.sh`](https://github.com/ConduitIO/conduit-processor-template/blob/main/setup.sh) and commit your changes. ```sh ./setup.sh github.com/myusername/conduit-processor-myprocessor git add -A @@ -41,15 +41,15 @@ some repository settings. 1. Navigate to Settings -> General and allow auto-merge of PRs. - ![Allow auto-merge](https://github.com/ConduitIO/conduit-connector-template/assets/8320753/695b15f0-85b4-49cb-966d-649e9bf03455) + ![Allow auto-merge](https://github.com/ConduitIO/conduit-processor-template/assets/8320753/695b15f0-85b4-49cb-966d-649e9bf03455) 2. Navigate to Settings -> Branches and add a branch protection rule. - ![Add branch protection rule](https://github.com/ConduitIO/conduit-connector-template/assets/8320753/9f5a07bc-d141-42b9-9918-e8d9cc648482) + ![Add branch protection rule](https://github.com/ConduitIO/conduit-processor-template/assets/8320753/9f5a07bc-d141-42b9-9918-e8d9cc648482) 3. Create a rule for branch `main` that requires status checks `build` and `golangci-lint`. - ![Status checks](https://github.com/ConduitIO/conduit-connector-template/assets/8320753/96219185-c329-432a-8623-9b4462015f32) + ![Status checks](https://github.com/ConduitIO/conduit-processor-template/assets/8320753/96219185-c329-432a-8623-9b4462015f32) ## Recommended repository settings diff --git a/processor.wasm b/processor.wasm deleted file mode 100644 index 4507a10..0000000 Binary files a/processor.wasm and /dev/null differ