Skip to content

fix(docker): update base image to Go 1.25 (unbreak release Docker bui… #3978

fix(docker): update base image to Go 1.25 (unbreak release Docker bui…

fix(docker): update base image to Go 1.25 (unbreak release Docker bui… #3978

Workflow file for this run

name: test
on:
push:
branches: [ main ]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Test
# The test coverate and the test report are needed for the SonarCloud analysis
run: make test-integration GOTEST_FLAGS="-v -count=1"
build-cross:
# Cross-compile for the 32-bit release target. Regular CI only builds on
# 64-bit, so a dependency that fails to compile on 32-bit (e.g. one using
# math.MaxUint32 as an untyped int constant) would otherwise only surface
# when GoReleaser cross-compiles at release time. GoReleaser ships a
# linux/386 (i386) artifact, so guard that build here.
name: build (linux/386)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Build linux/386
run: GOOS=linux GOARCH=386 go build ./...
docker-build:
# Build the release Docker image. The image is otherwise only built by the
# release workflow, so a Dockerfile issue (e.g. a base image whose Go version
# is older than the go.mod directive) would only surface at release time.
name: docker build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Docker image
run: docker build -t conduit:ci .