Skip to content

Commit

Permalink
feat: add goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
3n0ugh committed Jun 21, 2024
1 parent 65a86e6 commit ca6019c
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 10 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release

on:
push:
tags:
- '*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22.4'

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27 changes: 27 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
project_name: go-pq-cdc

release:
github:
name: go-pq-cdc
owner: Trendyol

before:
hooks:
- go mod tidy

builds:
- skip: true

changelog:
sort: asc
use: github
filters:
exclude:
- '^test:'
- '^docs:'
- '^chore:'
- 'merge conflict'
- Merge pull request
- Merge remote-tracking branch
- Merge branch
- go mod tidy
18 changes: 8 additions & 10 deletions todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,15 @@
- [x] Add slot create/exists test
- [x] Add unit tests
- [x] Add Contribution.md
- [ ] Add ci pipeline for project
- [ ] Go Lint
- [ ] Go Vet
- [ ] Go vulncheck
- [ ] Go Test (-race)
- [ ] Sonar - or any other code analysis tool
- [ ] Add cd pipeline for project
- [ ] Create Config&Run docker images
- [ ] Add goreleaser implementation
- [x] Add ci pipeline for project
- [x] Go Lint
- [x] Go Vet
- [x] Go vulncheck
- [x] Go Test (-race)
- [x] Sonar - or any other code analysis tool
- [x] Add cd pipeline for project
- [x] Add goreleaser implementation
- [x] Add License file
- [ ] Add Dockerfile
- [ ] Add Documentation
- [ ] Create Grafana dashboard
- [x] Expose pg_stats
Expand Down

0 comments on commit ca6019c

Please sign in to comment.