Skip to content

Commit fae6ba6

Browse files
committed
Add go 1.25
1 parent 7a945ac commit fae6ba6

8 files changed

Lines changed: 78 additions & 0 deletions

File tree

.github/workflows/build-push.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: build-push
2+
on:
3+
push:
4+
workflow_dispatch:
5+
6+
jobs:
7+
base:
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
dir:
12+
- go1.25
13+
uses: libops/.github/.github/workflows/build-push-ghcr.yaml@main
14+
with:
15+
image: ${{ matrix.dir }}
16+
context: ${{ matrix.dir }}
17+
permissions:
18+
contents: read
19+
packages: write
20+
secrets: inherit

go1.25/Dockerfile

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
ARG LEHIGH_TAG=main
2+
FROM islandora/base:6.0.11@sha256:1bea55c375ee9165ab62f192b7eea9d4cdafeeee1b70d56d3f4ece644e2282e6
3+
4+
ARG TARGETARCH
5+
ARG \
6+
# renovate: datasource=github-tags depName=golang packageName=golang/go versioning=go-mod-directive
7+
GO_VERSION=go1.25.3 \
8+
GO_BASE_URL="https://go.dev/dl/${GO_VERSION}" \
9+
GO_AMD64=linux-amd64.tar.gz \
10+
GO_AMD64_SHA256="0335f314b6e7bfe08c3d0cfaa7c19db961b7b99fb20be62b0a826c992ad14e0f" \
11+
GO_ARM64=linux-arm64.tar.gz \
12+
GO_ARM64_SHA256="1d42ebc84999b5e2069f5e31b67d6fc5d67308adad3e178d5a2ee2c9ff2001f5"
13+
14+
RUN --mount=type=cache,id=base-downloads-${TARGETARCH},sharing=locked,target=/opt/downloads \
15+
if [ "${TARGETARCH}" = "amd64" ]; \
16+
then \
17+
download.sh \
18+
--url "${GO_BASE_URL}.${GO_AMD64}" \
19+
--sha256 "${GO_AMD64_SHA256}" \
20+
--dest /usr/local ; \
21+
else \
22+
download.sh \
23+
--url "${GO_BASE_URL}.${GO_ARM64}" \
24+
--sha256 "${GO_ARM64_SHA256}" \
25+
--dest /usr/local ; \
26+
fi
27+
28+
ENV \
29+
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin \
30+
PORT=8080
31+
32+
RUN go version | grep "${GO_VERSION}"
33+
34+
RUN create-service-user.sh --name goapp && \
35+
cleanup.sh
36+
37+
COPY --link rootfs /
38+
39+
HEALTHCHECK CMD /bin/bash -c 'curl -sf http://localhost:$PORT/healthcheck'

go1.25/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Base
2+
3+
Base Docker image to build go services

go1.25/rootfs/etc/s6-overlay/s6-rc.d/goapp/dependencies.d/container-environment

Whitespace-only changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/command/with-contenv bash
2+
3+
set -eou pipefail
4+
5+
cd /app
6+
7+
exec s6-setuidgid goapp /app/binary
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
longrun

go1.25/rootfs/etc/s6-overlay/s6-rc.d/user/contents.d/goapp

Whitespace-only changes.

renovate.json5

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
3+
extends: [
4+
'github>libops/renovate-config:default.json5',
5+
],
6+
}
7+
8+

0 commit comments

Comments
 (0)