From dda98b59f72281c05fcce117d62a8d6fd5226808 Mon Sep 17 00:00:00 2001 From: Rowan Seymour Date: Wed, 5 Jun 2024 13:52:40 -0500 Subject: [PATCH 1/3] Update goreleaser config to v2 --- .gitignore | 5 +++-- .goreleaser.yaml | 20 ++++++++++++++++++++ deploy | 1 - goreleaser.yml | 19 ------------------- 4 files changed, 23 insertions(+), 22 deletions(-) create mode 100644 .goreleaser.yaml delete mode 120000 deploy delete mode 100644 goreleaser.yml diff --git a/.gitignore b/.gitignore index 1446c34..99d906f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,7 @@ *.dylib fabfile.py fabfile.pyc -deploy/ +deploy rp-indexer # Test binary, build with `go test -c` @@ -19,4 +19,5 @@ rp-indexer *~ -.DS_Store \ No newline at end of file +.DS_Store +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..6c7fba7 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,20 @@ +version: 2 +builds: + - main: ./cmd/rp-indexer/main.go + binary: rp-indexer + goos: + - darwin + - linux + goarch: + - amd64 + - arm64 + +changelog: + filters: + exclude: + - "^Update CHANGELOG.md" + +archives: + - files: + - LICENSE + - README.md diff --git a/deploy b/deploy deleted file mode 120000 index 3ebc6a1..0000000 --- a/deploy +++ /dev/null @@ -1 +0,0 @@ -../utils/deploy \ No newline at end of file diff --git a/goreleaser.yml b/goreleaser.yml deleted file mode 100644 index 86e271c..0000000 --- a/goreleaser.yml +++ /dev/null @@ -1,19 +0,0 @@ -build: - main: ./cmd/rp-indexer/main.go - binary: rp-indexer - goos: - - darwin - - linux - goarch: - - amd64 - - arm64 - -changelog: - filters: - exclude: - - "^Update CHANGELOG.md" - -archives: - - files: - - LICENSE - - README.md From c13804b261927bf88b2b3a3f87b1c3b8afffc576 Mon Sep 17 00:00:00 2001 From: Rowan Seymour Date: Wed, 5 Jun 2024 14:00:51 -0500 Subject: [PATCH 2/3] Add healthcheck for elastic service in CI tests --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e325417..f2e7ec4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: discovery.type: single-node ports: - 9200:9200 - options: --ulimit memlock=-1:-1 --ulimit nofile=65536:65536 + options: --health-cmd "curl http://localhost:9200/_cluster/health" --health-interval 10s --health-timeout 5s --health-retries 5 steps: - name: Checkout code From aac8179e81f12eebd3feee743e1df3214e9f65c3 Mon Sep 17 00:00:00 2001 From: Rowan Seymour Date: Wed, 5 Jun 2024 14:07:22 -0500 Subject: [PATCH 3/3] Update github actions versions --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2e7ec4..2623871 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,17 +51,17 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ env.go-version }} - name: Publish release - uses: goreleaser/goreleaser-action@v4 + uses: goreleaser/goreleaser-action@v6 with: args: release --clean env: