docs(changelog): release v0.4.2 #137
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| branches: [main, develop] | |
| push: | |
| branches: [main, develop] | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Go vet | |
| run: go vet ./... | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: latest | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| needs: lint | |
| strategy: | |
| matrix: | |
| include: | |
| - goos: linux | |
| goarch: amd64 | |
| - goos: linux | |
| goarch: arm64 | |
| - goos: darwin | |
| goarch: amd64 | |
| - goos: darwin | |
| goarch: arm64 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Build binary | |
| env: | |
| CGO_ENABLED: "0" | |
| GOOS: ${{ matrix.goos }} | |
| GOARCH: ${{ matrix.goarch }} | |
| run: | | |
| go build \ | |
| -trimpath \ | |
| -ldflags="-s -w -X main.Version=${GITHUB_SHA::8} -X main.Revision=${GITHUB_SHA}" \ | |
| -o pebblify-${{ matrix.goos }}-${{ matrix.goarch }} \ | |
| ./cmd/pebblify | |
| docker: | |
| name: Docker build | |
| runs-on: ubuntu-latest | |
| needs: lint | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: docker/setup-qemu-action@v4 | |
| - uses: docker/setup-buildx-action@v4 | |
| - name: Docker metadata | |
| id: meta | |
| uses: docker/metadata-action@v6 | |
| with: | |
| images: ghcr.io/${{ github.repository }} | |
| labels: | | |
| org.opencontainers.image.title=Pebblify | |
| org.opencontainers.image.description=LevelDB to PebbleDB migration tool for Cosmos/CometBFT nodes. | |
| org.opencontainers.image.url=https://www.dockermint.io | |
| org.opencontainers.image.documentation=https://docs.dockermint.io/pebblify/ | |
| org.opencontainers.image.licenses=Apache-2.0 | |
| org.opencontainers.image.vendor=Dockermint | |
| org.opencontainers.image.authors=Dockermint | |
| org.opencontainers.image.base.name=alpine:3.22 | |
| - name: Build image (no push) | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| push: false | |
| platforms: linux/amd64,linux/arm64 | |
| build-args: | | |
| VERSION=${{ github.sha }} | |
| REVISION=${{ github.sha }} | |
| CREATED=${{ github.event.head_commit.timestamp }} | |
| labels: ${{ steps.meta.outputs.labels }} |