NOISSUE - Update CI scripts (#3433)

Signed-off-by: dusan <borovcanindusan1@gmail.com>
This commit is contained in:
Dušan Borovčanin
2026-04-07 10:33:04 +02:00
committed by GitHub
parent b753294101
commit 3f329eb3c2
6 changed files with 23 additions and 47 deletions
+11 -1
View File
@@ -4,10 +4,12 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
directory: "./.github/workflows"
target-branch: "main"
schedule:
interval: "weekly"
day: "monday"
time: "06:00"
timezone: "Europe/Paris"
groups:
gh-dependency:
@@ -16,16 +18,24 @@ updates:
- package-ecosystem: "gomod"
directory: "/"
target-branch: "main"
schedule:
interval: "weekly"
day: "monday"
time: "06:15"
timezone: "Europe/Paris"
groups:
go-dependency:
patterns:
- "*"
- package-ecosystem: "docker"
directory: "/docker"
target-branch: "main"
schedule:
interval: "weekly"
day: "monday"
time: "06:30"
timezone: "Europe/Paris"
groups:
docker-dependency:
+1 -5
View File
@@ -78,14 +78,10 @@ jobs:
with:
fetch-depth: 0
- name: Get Go version from go.mod
id: go-version
run: echo "version=$(grep '^go ' go.mod | awk '{print $2}')" >> $GITHUB_OUTPUT
- name: Install Go
uses: actions/setup-go@v6
with:
go-version: ${{ steps.go-version.outputs.version }}
go-version-file: go.mod
cache-dependency-path: "go.sum"
- name: Check for changes in specific paths
+4 -9
View File
@@ -8,7 +8,7 @@ on:
branches:
- main
paths-ignore:
- '**.md'
- '**/*.md'
- 'docs/**'
- '.github/workflows/**'
- 'LICENSE'
@@ -37,27 +37,22 @@ jobs:
fetch-depth: 0
fetch-tags: true
- name: Get Go version from go.mod
id: go-version
run: echo "version=$(grep '^go ' go.mod | awk '{print $2}')" >> $GITHUB_OUTPUT
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: ${{ steps.go-version.outputs.version }}
go-version-file: go.mod
cache-dependency-path: "go.sum"
- name: Set up Docker Build
uses: docker/setup-buildx-action@v4
- name: Login to DockerHub
- name: Login to GHCR
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ secrets.actor }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker images
run: |
make latest -j $(nproc)
+1 -5
View File
@@ -19,14 +19,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v6
- name: Get Go version from go.mod
id: go-version
run: echo "version=$(grep '^go ' go.mod | awk '{print $2}')" >> $GITHUB_OUTPUT
- name: Install Go
uses: actions/setup-go@v6
with:
go-version: ${{ steps.go-version.outputs.version }}
go-version-file: go.mod
cache-dependency-path: "go.sum"
- name: Set GOBIN
+3 -15
View File
@@ -14,14 +14,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v6
- name: Get Go version from go.mod
id: go-version
run: echo "version=$(grep '^go ' go.mod | awk '{print $2}')" >> $GITHUB_OUTPUT
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: ${{ steps.go-version.outputs.version }}
go-version-file: go.mod
cache-dependency-path: "go.sum"
- name: Run linters
@@ -38,14 +34,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v6
- name: Get Go version from go.mod
id: go-version
run: echo "version=$(grep '^go ' go.mod | awk '{print $2}')" >> $GITHUB_OUTPUT
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: ${{ steps.go-version.outputs.version }}
go-version-file: go.mod
cache-dependency-path: "go.sum"
- name: Build all binaries
@@ -68,14 +60,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v6
- name: Get Go version from go.mod
id: go-version
run: echo "version=$(grep '^go ' go.mod | awk '{print $2}')" >> $GITHUB_OUTPUT
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: ${{ steps.go-version.outputs.version }}
go-version-file: go.mod
cache-dependency-path: "go.sum"
- name: Compile check for ${{ matrix.variant.name }}
+3 -12
View File
@@ -8,7 +8,7 @@ on:
branches:
- main
paths-ignore:
- '**.md'
- '**/*.md'
- 'docs/**'
- 'LICENSE'
- 'MAINTAINERS'
@@ -29,14 +29,10 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v6
- name: Get Go version from go.mod
id: go-version
run: echo "version=$(grep '^go ' go.mod | awk '{print $2}')" >> $GITHUB_OUTPUT
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: ${{ steps.go-version.outputs.version }}
go-version-file: go.mod
cache-dependency-path: "go.sum"
- name: Install protolint
@@ -56,7 +52,6 @@ jobs:
runs-on: ubuntu-latest
outputs:
modules: ${{ steps.set-matrix.outputs.modules }}
workflow_changed: ${{ steps.changes.outputs.workflow }}
steps:
- name: Checkout
uses: actions/checkout@v6
@@ -288,14 +283,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v6
- name: Get Go version from go.mod
id: go-version
run: echo "version=$(grep '^go ' go.mod | awk '{print $2}')" >> $GITHUB_OUTPUT
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: ${{ steps.go-version.outputs.version }}
go-version-file: go.mod
cache-dependency-path: "go.sum"
- name: Verify dependencies