Skip to content

Commit f8b7d17

Browse files
committed
ci: update workflows and add versioning pipeline with Go 1.23.6 update
1 parent 52a828c commit f8b7d17

File tree

6 files changed

+38
-10
lines changed

6 files changed

+38
-10
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
name: goreleaser
1+
name: Create Release
22

33
on:
44
push:
55
tags:
66
- "*"
7+
workflow_call:
78

89
permissions:
910
contents: write
@@ -38,7 +39,7 @@ jobs:
3839
run: sudo apt update && sudo apt install -y libgpgme-dev
3940

4041
- name: Run GoReleaser
41-
uses: goreleaser/goreleaser-action@v5
42+
uses: goreleaser/goreleaser-action@v6
4243
with:
4344
distribution: goreleaser
4445
version: latest

.github/workflows/security.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
types: [opened, synchronize, reopened]
88

99
env:
10-
GO_VERSION: "1.23.4"
10+
GO_VERSION: "1.23.6"
1111

1212
jobs:
1313
SAST:
@@ -30,13 +30,12 @@ jobs:
3030
run: go generate ./...
3131

3232
- name: Run SAST (golangci-lint)
33-
uses: golangci/golangci-lint-action@v4
33+
uses: golangci/golangci-lint-action@v6
3434
with:
3535
version: "latest"
3636
only-new-issues: true
3737
args: --timeout=10m
38-
skip-pkg-cache: true
39-
skip-build-cache: true
38+
skip-cache: true
4039

4140
SCA:
4241
name: Perform SCA analysis (govulncheck)

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup Go
1515
uses: actions/setup-go@v5
1616
with:
17-
go-version: 1.23.4
17+
go-version: 1.23.6
1818

1919
- name: Install deps
2020
run: sudo apt update && sudo apt install -y libgpgme-dev

.github/workflows/versioning.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Versioning
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
versioning:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
fetch-tags: true
20+
- name: Calculate version
21+
id: calculate-version
22+
uses: bitshifted/git-auto-semver@v1
23+
with:
24+
main_branch: main
25+
create_tag: true
26+
tag_prefix: "v"
27+
release:
28+
needs: [versioning]
29+
uses: ./.github/workflows/release.yml

.golangci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ linters:
1515
- errname
1616
#- errorlint
1717
- exhaustive
18-
- exportloopref
1918
#- funlen
2019
- goconst
2120
- gocritic
@@ -31,7 +30,7 @@ linters:
3130
#- prealloc
3231
- predeclared
3332
- staticcheck
34-
- tenv
33+
- usetesting
3534
- tparallel
3635
- typecheck
3736
- unconvert

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/Altinity/docker-sync
22

3-
go 1.23.3
3+
go 1.23.6
44

55
require (
66
github.com/aws/aws-sdk-go v1.55.5

0 commit comments

Comments
 (0)