Skip to content

Commit 63d9a2c

Browse files
authored
Upgrade backend dependencies and base images (#4360)
Signed-off-by: Sergio Castaño Arteaga <tegioz@icloud.com>
1 parent a788877 commit 63d9a2c

17 files changed

Lines changed: 227 additions & 1548 deletions

File tree

.github/workflows/build-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions: read-all
1010
jobs:
1111
build-docker-images:
1212
if: github.ref == 'refs/heads/master'
13-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-24.04
1414
steps:
1515
- name: Free disk space
1616
uses: jlumbroso/free-disk-space@main

.github/workflows/chart-testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions: read-all
1010

1111
jobs:
1212
lint-and-test:
13-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-24.04
1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@v4

.github/workflows/ci.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions: read-all
1010

1111
jobs:
1212
linter-backend:
13-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-24.04
1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@v4
@@ -25,13 +25,13 @@ jobs:
2525
sudo tar -C /usr/local -xzf ${FILENAME}
2626
sudo ldconfig /usr/local/lib
2727
- name: Run golangci-lint
28-
uses: golangci/golangci-lint-action@v6
28+
uses: golangci/golangci-lint-action@v7
2929
with:
30-
version: v1.64.5
30+
version: v2.1.2
3131
args: --timeout 10m
3232

3333
linter-openapi:
34-
runs-on: ubuntu-20.04
34+
runs-on: ubuntu-24.04
3535
steps:
3636
- name: Checkout Code
3737
uses: actions/checkout@v4
@@ -46,7 +46,7 @@ jobs:
4646
VALIDATE_OPENAPI: true
4747

4848
linter-artifacthub:
49-
runs-on: ubuntu-20.04
49+
runs-on: ubuntu-24.04
5050
container:
5151
image: artifacthub/ah
5252
options: --user root
@@ -58,7 +58,7 @@ jobs:
5858
run: ah lint
5959

6060
linter-clomonitor:
61-
runs-on: ubuntu-20.04
61+
runs-on: ubuntu-24.04
6262
env:
6363
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
6464
container:
@@ -71,7 +71,7 @@ jobs:
7171
run: clomonitor-linter --path . --url https://github.com/artifacthub/hub
7272

7373
tests-database:
74-
runs-on: ubuntu-20.04
74+
runs-on: ubuntu-24.04
7575
container:
7676
image: artifacthub/db-tests
7777
services:
@@ -97,7 +97,7 @@ jobs:
9797
run: PGPASSWORD=tests pg_prove --host postgres --dbname tests --username tests --verbose schema/*.sql functions/*/*.sql
9898

9999
tests-backend:
100-
runs-on: ubuntu-20.04
100+
runs-on: ubuntu-24.04
101101
steps:
102102
- name: Checkout code
103103
uses: actions/checkout@v4
@@ -122,7 +122,7 @@ jobs:
122122
run: go test -cover -race -v -mod=readonly ./...
123123

124124
tests-frontend:
125-
runs-on: ubuntu-20.04
125+
runs-on: ubuntu-24.04
126126
env:
127127
NODE_OPTIONS: --max_old_space_size=4096
128128
steps:
@@ -149,7 +149,7 @@ jobs:
149149
run: yarn test --watchAll=false --passWithNoTests --verbose --maxWorkers=4
150150

151151
tests-widget:
152-
runs-on: ubuntu-20.04
152+
runs-on: ubuntu-24.04
153153
env:
154154
NODE_OPTIONS: --max_old_space_size=4096
155155
steps:
@@ -176,7 +176,7 @@ jobs:
176176
run: yarn test --watchAll=false --passWithNoTests --verbose --maxWorkers=4
177177

178178
build-backend:
179-
runs-on: ubuntu-20.04
179+
runs-on: ubuntu-24.04
180180
steps:
181181
- name: Checkout code
182182
uses: actions/checkout@v4
@@ -208,7 +208,7 @@ jobs:
208208
run: go build -v
209209

210210
build-frontend:
211-
runs-on: ubuntu-20.04
211+
runs-on: ubuntu-24.04
212212
env:
213213
NODE_OPTIONS: --max_old_space_size=4096
214214
steps:
@@ -229,7 +229,7 @@ jobs:
229229
run: yarn build
230230

231231
build-widget:
232-
runs-on: ubuntu-20.04
232+
runs-on: ubuntu-24.04
233233
env:
234234
NODE_OPTIONS: --max_old_space_size=4096
235235
steps:

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
permissions:
1313
security-events: write
1414
name: Analyze
15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-24.04
1616
strategy:
1717
fail-fast: false
1818
matrix:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions: read-all
99

1010
jobs:
1111
release:
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-24.04
1313
steps:
1414
- name: Free disk space
1515
uses: jlumbroso/free-disk-space@main

.golangci.yml

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
version: "2"
12
linters:
2-
disable-all: true
3+
default: none
34
enable:
45
- asciicheck
56
- bodyclose
@@ -8,30 +9,44 @@ linters:
89
- errorlint
910
- goconst
1011
- gocritic
11-
- goimports
1212
- gosec
13-
- gosimple
1413
- govet
1514
- ineffassign
1615
- misspell
1716
- nakedret
1817
- prealloc
1918
- revive
2019
- staticcheck
21-
- stylecheck
22-
- typecheck
2320
- unconvert
2421
- unparam
2522
- unused
26-
fast: false
27-
28-
linters-settings:
29-
gocritic:
30-
disabled-checks:
31-
- singleCaseSwitch
32-
goconst:
33-
min-occurrences: 5
34-
revive:
35-
rules:
36-
- name: unused-parameter
37-
disabled: true
23+
settings:
24+
goconst:
25+
min-occurrences: 5
26+
gocritic:
27+
disabled-checks:
28+
- singleCaseSwitch
29+
revive:
30+
rules:
31+
- name: unused-parameter
32+
disabled: true
33+
exclusions:
34+
generated: lax
35+
presets:
36+
- comments
37+
- common-false-positives
38+
- legacy
39+
- std-error-handling
40+
paths:
41+
- third_party$
42+
- builtin$
43+
- examples$
44+
formatters:
45+
enable:
46+
- goimports
47+
exclusions:
48+
generated: lax
49+
paths:
50+
- third_party$
51+
- builtin$
52+
- examples$

cmd/ah/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build ah
2-
FROM golang:1.24.1-alpine3.21 AS ah-builder
2+
FROM golang:1.24.2-alpine3.21 AS ah-builder
33
ARG VERSION
44
ARG GIT_COMMIT
55
WORKDIR /go/src/github.com/artifacthub/ah

cmd/hub/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build backend
2-
FROM golang:1.24.1-alpine3.21 AS backend-builder
2+
FROM golang:1.24.2-alpine3.21 AS backend-builder
33
WORKDIR /go/src/github.com/artifacthub/hub
44
COPY go.* ./
55
COPY cmd/hub cmd/hub

cmd/scanner/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build scanner
2-
FROM golang:1.24.1-alpine3.21 AS scanner-builder
2+
FROM golang:1.24.2-alpine3.21 AS scanner-builder
33
WORKDIR /go/src/github.com/artifacthub/scanner
44
COPY go.* ./
55
COPY cmd/scanner cmd/scanner

cmd/tracker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build tracker
2-
FROM golang:1.24.1-bullseye AS builder
2+
FROM golang:1.24.2-bullseye AS builder
33
WORKDIR /tmp
44
ENV LIBTENSORFLOW_TGZ libtensorflow-cpu-linux-x86_64-2.11.0.tar.gz
55
RUN wget -q --no-check-certificate https://storage.googleapis.com/tensorflow/libtensorflow/$LIBTENSORFLOW_TGZ

0 commit comments

Comments
 (0)