From 6c3fc188fbf5521ac30c31bceb6d0044a9b14ae3 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sat, 16 May 2026 01:32:17 -0400 Subject: [PATCH] test: iterate a little more Signed-off-by: Xe Iaso --- .tekton/anubis-test.yaml | 12 ++++++------ test/ssh-ci/Dockerfile | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.tekton/anubis-test.yaml b/.tekton/anubis-test.yaml index 1844bc99..71bfd06c 100644 --- a/.tekton/anubis-test.yaml +++ b/.tekton/anubis-test.yaml @@ -30,13 +30,14 @@ spec: type: string description: docker repo to store cache files default: "registry.int.xeserv.us/techarohq/anubis/cache" + - name: go-version + type: string + description: "Go version to use" + default: "1.26.3" workspaces: - name: repo description: | Cloned repo files. - - name: go-mod-cache - description: | - Go module cache - name: dockerconfig-atcr description: | Docker config for pushing images to atcr @@ -71,12 +72,13 @@ spec: name: kaniko params: - name: IMAGE - value: registry.int.xeserv.us/xeiaso.net/site/ci:$(params.commit) + value: registry.int.xeserv.us/xeiaso.net/site/ci:$(params.branch) - name: DOCKERFILE value: ./test/ssh-ci/Dockerfile - name: EXTRA_ARGS value: [ + "--build-arg=GO_VERSION=$(params.go-version)", "--cache", "--cache-copy-layers", "--cache-run-layers", @@ -91,8 +93,6 @@ spec: workspaces: - name: repo mountPath: /src - - name: go-mod-cache - mountPath: /go steps: - name: test image: $(tasks.docker-build-ci.results.IMAGE_URL)@$(tasks.docker-build-ci.results.IMAGE_DIGEST) diff --git a/test/ssh-ci/Dockerfile b/test/ssh-ci/Dockerfile index 7d151958..c8fbe6ab 100644 --- a/test/ssh-ci/Dockerfile +++ b/test/ssh-ci/Dockerfile @@ -1,12 +1,12 @@ ARG ALPINE_VERSION=3.22 -ARG GO_VERSION=1.26.2 +ARG GO_VERSION=1.26.3 # Go toolchain bootstrapper FROM golang:${GO_VERSION} AS go -RUN CGO_ENABLED=0 go install golang.org/dl/go${GO_VERSION}@latest \ +RUN CGO_ENABLED=0 go install golang.org/dl/go1.23.6@latest \ && mkdir -p /app/bin \ - && mv /go/bin/go${GO_VERSION} /app/bin/go + && mv /go/bin/go1.23.6 /app/bin/go FROM alpine:${ALPINE_VERSION} COPY --from=go /app/bin/go /usr/local/bin/go