test: iterate a little more

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2026-05-16 01:32:17 -04:00
parent a0589d3c7a
commit 6c3fc188fb
2 changed files with 9 additions and 9 deletions
+6 -6
View File
@@ -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)
+3 -3
View File
@@ -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