Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/gofmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.25.1]
go-version: [1.25.3]

steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.25.1']
go-version: [1.25.3]

steps:
- uses: actions/setup-go@v5
Expand Down
12 changes: 9 additions & 3 deletions docker/dockerfile-api
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ ARG BUILD_TAGS="posts,experience,profile,projects,social,talks,gus,gocanto"
ARG BINARY_NAME=oullin_api

# Base image digests
ARG GO_VERSION=1.25.3
ARG GO_IMAGE_VARIANT=alpine3.22
ARG GO_TOOLCHAIN=go1.25.3
ARG GOLANG_ALPINE_DIGEST=sha256:c3dc5d5e8cf34ccb2172fb8d1aa399aa13cd8b60d27bba891d18e3b436a0c5f6
ARG ALPINE_DIGEST=sha256:4b7ce07002c69e8f3d704a9c5d6fd3053be500b7f1c69fc0d80990c2ad8dd412
ARG ALPINE_VERSION=3.22
ARG ALPINE_DIGEST=sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1

# Non-root user/group settings.
ARG APP_USER=appuser
Expand All @@ -38,9 +42,11 @@ ARG TZ=Asia/Singapore
# ----------------------------------------------------------------------------------------------------------------------
# BUILDER STAGE
# ----------------------------------------------------------------------------------------------------------------------
FROM golang:1.25.3-alpine3.22@${GOLANG_ALPINE_DIGEST} AS builder
FROM golang:${GO_VERSION}-${GO_IMAGE_VARIANT}@${GOLANG_ALPINE_DIGEST} AS builder

# Bring in the build args needed in this stage.
ARG GO_TOOLCHAIN
ENV GOTOOLCHAIN=${GO_TOOLCHAIN}
ARG APP_DIR
ARG BINARY_NAME
ARG APP_VERSION
Expand Down Expand Up @@ -86,7 +92,7 @@ RUN go build \
# ----------------------------------------------------------------------------------------------------------------------
# FINAL STAGE
# ----------------------------------------------------------------------------------------------------------------------
FROM alpine:3.22@${ALPINE_DIGEST}
FROM alpine:${ALPINE_VERSION}@${ALPINE_DIGEST}

# Bring in the runtime args.
ARG APP_USER
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/oullin

go 1.25.1
go 1.25.3

require (
github.com/DATA-DOG/go-sqlmock v1.5.2
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
golang.org/x/crypto v0.43.0 h1:dduJYIi3A3KOfdGOHX8AVZ/jGiyPa3IbBozJ5kNuE04=
golang.org/x/crypto v0.43.0/go.mod h1:BFbav4mRNlXJL4wNeejLpWxB7wMbc79PdRGhWKncxR0=
golang.org/toolchain v0.0.1-go1.25.3.linux-amd64 h1:OsvRiFtt0A9JsTaoQsnFK4wKOOAY2UtJvkOT+Djl7tQ=
golang.org/toolchain v0.0.1-go1.25.3.linux-amd64/go.mod h1:c/4eKWFBYMD/i1j7ipNwtrHQP02jj74611NzmDqwkJE=
golang.org/x/image v0.32.0 h1:6lZQWq75h7L5IWNk0r+SCpUJ6tUVd3v4ZHnbRKLkUDQ=
golang.org/x/image v0.32.0/go.mod h1:/R37rrQmKXtO6tYXAjtDLwQgFLHmhW+V6ayXlxzP2Pc=
golang.org/x/net v0.46.0 h1:giFlY12I07fugqwPuWJi68oOnpfqFnJIJzaIIm2JVV4=
Expand Down
Loading