build with go v1.25 (#814)
This commit is contained in:
committed by
GitHub
parent
e0fcd058df
commit
16f88a1336
6
.github/workflows/checks.yml
vendored
6
.github/workflows/checks.yml
vendored
@@ -15,7 +15,7 @@ on:
|
|||||||
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GO_VERSION: "1.24"
|
GO_VERSION: "1.25"
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
@@ -95,9 +95,9 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v3
|
uses: golangci/golangci-lint-action@v8
|
||||||
with:
|
with:
|
||||||
version: v1.64.8
|
version: v2.7.2
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
name: fmt
|
name: fmt
|
||||||
|
|||||||
2
.github/workflows/docker.yml
vendored
2
.github/workflows/docker.yml
vendored
@@ -6,7 +6,7 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GO_VERSION: "1.24"
|
GO_VERSION: "1.25"
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
IMAGE_REPOSITORY: sosedoff/pgweb
|
IMAGE_REPOSITORY: sosedoff/pgweb
|
||||||
|
|
||||||
|
|||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -6,7 +6,7 @@ on:
|
|||||||
- "v*"
|
- "v*"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GO_VERSION: "1.24"
|
GO_VERSION: "1.25"
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
DOCKER_REPOSITORY: sosedoff/pgweb
|
DOCKER_REPOSITORY: sosedoff/pgweb
|
||||||
GHCR_REPOSITORY: sosedoff/pgweb
|
GHCR_REPOSITORY: sosedoff/pgweb
|
||||||
|
|||||||
7
.golangci.yml
Normal file
7
.golangci.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
version: "2"
|
||||||
|
linters:
|
||||||
|
disable:
|
||||||
|
- errcheck
|
||||||
|
settings:
|
||||||
|
staticcheck:
|
||||||
|
checks: ["all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022", "-ST1005", "-QF1004"]
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Builder Stage
|
# Builder Stage
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
FROM golang:1.24-bullseye AS build
|
FROM golang:1.25-trixie AS build
|
||||||
|
|
||||||
# Set default build argument for CGO_ENABLED
|
# Set default build argument for CGO_ENABLED
|
||||||
ARG CGO_ENABLED=0
|
ARG CGO_ENABLED=0
|
||||||
@@ -21,7 +21,7 @@ RUN make build
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Fetch signing key
|
# Fetch signing key
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
FROM debian:bullseye-slim AS keyring
|
FROM debian:trixie-slim AS keyring
|
||||||
ADD https://www.postgresql.org/media/keys/ACCC4CF8.asc keyring.asc
|
ADD https://www.postgresql.org/media/keys/ACCC4CF8.asc keyring.asc
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -qq --no-install-recommends gpg
|
apt-get install -qq --no-install-recommends gpg
|
||||||
@@ -30,14 +30,14 @@ RUN gpg -o keyring.pgp --dearmor keyring.asc
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Release Stage
|
# Release Stage
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
FROM debian:bullseye-slim
|
FROM debian:trixie-slim
|
||||||
|
|
||||||
ARG keyring=/usr/share/keyrings/postgresql-archive-keyring.pgp
|
ARG keyring=/usr/share/keyrings/postgresql-archive-keyring.pgp
|
||||||
COPY --from=keyring /keyring.pgp $keyring
|
COPY --from=keyring /keyring.pgp $keyring
|
||||||
RUN . /etc/os-release && \
|
RUN . /etc/os-release && \
|
||||||
echo "deb [signed-by=${keyring}] http://apt.postgresql.org/pub/repos/apt/ ${VERSION_CODENAME}-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
|
echo "deb [signed-by=${keyring}] http://apt.postgresql.org/pub/repos/apt/ ${VERSION_CODENAME}-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -qq --no-install-recommends ca-certificates openssl netcat curl postgresql-client
|
apt-get install -qq --no-install-recommends ca-certificates openssl netcat-openbsd curl postgresql-client
|
||||||
|
|
||||||
COPY --from=build /build/pgweb /usr/bin/pgweb
|
COPY --from=build /build/pgweb /usr/bin/pgweb
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user