Build the container image in ci

Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
This commit is contained in:
2026-04-23 21:29:14 +02:00
parent 9621dfa6f4
commit cb54cb2c0b
2 changed files with 7 additions and 20 deletions

View File

@@ -1,26 +1,16 @@
---
when:
event:
- push
matrix:
include:
- NAME: AMD
ARCH: amd64
steps:
build:
image: zot.badhouseplants.net/badhouseplants/badhouseplants-builder:latest
name: Build shoebill operator image
- name: Build and push a container image
image: gitea.badhouseplants.net/badhouseplants/container-builder:latest
environment:
REGISTRY_TOKEN:
from_secret: REG_SECRET
privileged: true
commands:
- |
if [[ "${CI_COMMIT_TAG}" ]]; then
export CUSTOM_TAG="${CI_COMMIT_TAG}";
fi
- build-container
secrets:
- registry_token
backend_options:
kubernetes:
resources:
@@ -28,9 +18,6 @@ steps:
memory: 500Mi
cpu: 200m
limits:
memory: 1000Mi
cpu: 1000m
memory: 500Mi
securityContext:
privileged: true
nodeSelector:
kubernetes.io/arch: "${ARCH}"

View File

@@ -1,4 +1,4 @@
FROM golang:1.22
FROM golang:1.26.2
WORKDIR /app
COPY go.mod ./