From 16bdf8cde42f8219c424d6aa8881e6188ae2fe4d Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Tue, 9 Sep 2025 18:07:43 +0500 Subject: [PATCH] Update to v5 and gitea actions (#1) Reviewed-on: https://code.pztrn.name/containers/go-toolbox/pulls/1 Co-authored-by: Stanislav N. aka pztrn Co-committed-by: Stanislav N. aka pztrn --- .gitea/workflows/on-tag.yaml | 27 +++++++++++++++++++++++++++ scripts/workers/dlv.sh | 2 +- scripts/workers/gofumpt.sh | 2 +- scripts/workers/golang.sh | 2 +- scripts/workers/golangci-lint.sh | 2 +- scripts/workers/mockery.sh | 2 +- scripts/workers/taskfile.sh | 2 +- 7 files changed, 33 insertions(+), 6 deletions(-) create mode 100644 .gitea/workflows/on-tag.yaml diff --git a/.gitea/workflows/on-tag.yaml b/.gitea/workflows/on-tag.yaml new file mode 100644 index 0000000..c7ecc50 --- /dev/null +++ b/.gitea/workflows/on-tag.yaml @@ -0,0 +1,27 @@ +--- +name: "Build container" +run-name: "Build container" +on: + push: + tags: + - "**" + +jobs: + BuildImage: + runs-on: "ubuntu-22.04" + steps: + - name: "checkout source" + uses: actions/checkout@v4 + - name: Login to Docker Registry + uses: docker/login-action@v3 + with: + registry: code.pztrn.name + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_TOKEN }} + - name: Build and push image + uses: docker/build-push-action@v5 + with: + context: . + push: true + platforms: linux/amd64 + tags: code.pztrn.name/containers/go-toolbox:${{ gitea.ref_name }} diff --git a/scripts/workers/dlv.sh b/scripts/workers/dlv.sh index 6e1d236..f221a43 100755 --- a/scripts/workers/dlv.sh +++ b/scripts/workers/dlv.sh @@ -1,6 +1,6 @@ #!/bin/bash -dlv_version=1.23.0 +dlv_version=1.25.2 set -xe diff --git a/scripts/workers/gofumpt.sh b/scripts/workers/gofumpt.sh index 6fd760a..5d33b02 100755 --- a/scripts/workers/gofumpt.sh +++ b/scripts/workers/gofumpt.sh @@ -1,6 +1,6 @@ #!/bin/bash -gofumpt_version="0.7.0" +gofumpt_version="0.9.0" set -xe diff --git a/scripts/workers/golang.sh b/scripts/workers/golang.sh index dfca9db..9ae322e 100755 --- a/scripts/workers/golang.sh +++ b/scripts/workers/golang.sh @@ -6,7 +6,7 @@ set -xe -go_version=1.23.1 +go_version=1.25.1 # shellcheck disable=SC2086,SC2046,SC2164 cd $(dirname ${BASH_SOURCE[0]}) diff --git a/scripts/workers/golangci-lint.sh b/scripts/workers/golangci-lint.sh index f843ba9..0f97740 100755 --- a/scripts/workers/golangci-lint.sh +++ b/scripts/workers/golangci-lint.sh @@ -4,7 +4,7 @@ # Line above disables shellcheck linters: # * SC2154 - variable referenced but not assigned (false positive, assigned when sourced arch.sh). -golangci_lint_version=1.61.0 +golangci_lint_version=2.4.0 # shellcheck disable=SC2086,SC2046,SC2164 cd "$(dirname ${BASH_SOURCE[0]})" diff --git a/scripts/workers/mockery.sh b/scripts/workers/mockery.sh index c582e07..8f2354c 100755 --- a/scripts/workers/mockery.sh +++ b/scripts/workers/mockery.sh @@ -1,6 +1,6 @@ #!/bin/bash -mockery_v2_version=2.46.0 +mockery_v2_version=2.53.4 cd /tmp || exit 1 diff --git a/scripts/workers/taskfile.sh b/scripts/workers/taskfile.sh index 563578a..de1feb3 100755 --- a/scripts/workers/taskfile.sh +++ b/scripts/workers/taskfile.sh @@ -4,7 +4,7 @@ # Line above disables shellcheck linters: # * SC2154 - variable referenced but not assigned (false positive, assigned when sourced arch.sh). -taskfile_version=3.39.2 +taskfile_version=3.44.1 # shellcheck disable=SC2086,SC2046,SC2164 cd "$(dirname ${BASH_SOURCE[0]})"