Skip to content

Commit

Permalink
fix release, replace connector with processor
Browse files Browse the repository at this point in the history
  • Loading branch information
lovromazgon committed Oct 16, 2024
1 parent f490b99 commit e87cea9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.vscode

# Binary, built with `make build`
/conduit-connector-connectorname
/conduit-processor-processorname.wasm

### OS ###
.DS_Store
Expand Down
12 changes: 4 additions & 8 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ version: 2
builds:
- main: ./cmd/processor/main.go
goos:
- darwin
- linux
- windows
- wasip1
goarch:
- wasm
env:
- CGO_ENABLED=0
ldflags:
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -32,4 +32,4 @@ fmt:

.PHONY: lint
lint:
golangci-lint run
golangci-lint run
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
Binary file removed processor.wasm
Binary file not shown.

0 comments on commit e87cea9

Please sign in to comment.