Skip to content

Commit

Permalink
new version, new improvements
Browse files Browse the repository at this point in the history
- pretty output and color support
- pipe output to file
  • Loading branch information
vigo authored Dec 23, 2024
1 parent 56c9be9 commit ec6cefb
Show file tree
Hide file tree
Showing 14 changed files with 747 additions and 261 deletions.
8 changes: 0 additions & 8 deletions .bumpversion.cfg

This file was deleted.

30 changes: 30 additions & 0 deletions .bumpversion.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[tool.bumpversion]
current_version = "0.1.4"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
search = "{current_version}"
replace = "{new_version}"
regex = false
ignore_missing_version = false
ignore_missing_files = false
tag = true
sign_tags = false
tag_name = "v{new_version}"
tag_message = "Bump version: {current_version} → {new_version}"
allow_dirty = false
commit = true
message = "Bump version: {current_version} → {new_version}"
commit_args = "--no-verify"
setup_hooks = []
pre_commit_hooks = []
post_commit_hooks = []

[[tool.bumpversion.files]]
filename = "README.md"
search = "version-{current_version}-orange.svg"
replace = "version-{new_version}-orange.svg"

[[tool.bumpversion.files]]
filename = "release/release.go"
search = const Version string = "{current_version}"
replace = const Version string = "{new_version}"
25 changes: 17 additions & 8 deletions .github/workflows/go-lint.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
name: Golang CI Lint
name: golangci-lint

on:
pull_request:
paths:
- '**.go'
push:
branches:
- main
paths:
- '**.go'

concurrency:
group: golangci-lint
group: basichttpdebugger-golangci-lint
cancel-in-progress: true

jobs:
golangci:
name: golangci linter
runs-on: ubuntu-latest
env:
GOPRIVATE: github.com/vbyazilim
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: latest
version: v1.62
args: --timeout=5m
20 changes: 8 additions & 12 deletions .github/workflows/push-to-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,21 @@ on:

jobs:
docker:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v4
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to DockerHub

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push

- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/push-to-github-cr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ on:

jobs:
docker:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down
Loading

0 comments on commit ec6cefb

Please sign in to comment.