9b3ce84250
Switches pre-commit and test to the estate gobuilder image for TLS trust to s3.ceph.unkin.net and a prebuilt go-cache-plugin, then wires the shared S3-backed GOCACHEPROG. - pre-commit.yaml, test.yaml: golang:1.25 -> gobuilder:0.1.2-alma9 - add GOCACHE_* / AWS_* env (org secrets) with absolute cache-dir - set kubernetes resources + default serviceAccountName per step - docker-build/release steps unchanged (compile inside Dockerfile)
31 lines
867 B
YAML
31 lines
867 B
YAML
when:
|
|
- event: pull_request
|
|
|
|
steps:
|
|
- name: pre-commit
|
|
image: artifactapi.k8s.syd1.au.unkin.net/docker-internal/gobuilder:0.1.2-alma9
|
|
environment:
|
|
GOCACHE_S3_BUCKET: gocache
|
|
GOCACHE_S3_REGION: us-east-1
|
|
GOCACHE_S3_ENDPOINT_URL: https://s3.ceph.unkin.net
|
|
GOCACHE_S3_PATH_STYLE: "true"
|
|
GOCACHE_KEY_PREFIX: ci-cephrgw-operator
|
|
GOCACHEPROG: go-cache-plugin --cache-dir=/tmp/gocache
|
|
AWS_ACCESS_KEY_ID:
|
|
from_secret: GOCACHE_AWS_ACCESS_KEY_ID
|
|
AWS_SECRET_ACCESS_KEY:
|
|
from_secret: GOCACHE_AWS_SECRET_ACCESS_KEY
|
|
commands:
|
|
- test -z "$(gofmt -l .)"
|
|
- go vet ./...
|
|
backend_options:
|
|
kubernetes:
|
|
serviceAccountName: default
|
|
resources:
|
|
requests:
|
|
memory: 1Gi
|
|
cpu: "1"
|
|
limits:
|
|
memory: 4Gi
|
|
cpu: "2"
|