docker build deploy with gitea
This commit is contained in:
parent
39dc920231
commit
723c2d37ca
4 changed files with 6 additions and 5 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
# Build the manager binary
|
# Build the manager binary
|
||||||
FROM golang:1.22 AS builder
|
FROM golang:1.23 AS builder
|
||||||
ARG TARGETOS
|
ARG TARGETOS
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
|
|
||||||
|
|
|
||||||
4
Makefile
4
Makefile
|
|
@ -50,9 +50,9 @@ endif
|
||||||
# This is useful for CI or a project to utilize a specific version of the operator-sdk toolkit.
|
# This is useful for CI or a project to utilize a specific version of the operator-sdk toolkit.
|
||||||
OPERATOR_SDK_VERSION ?= unknown
|
OPERATOR_SDK_VERSION ?= unknown
|
||||||
# Image URL to use all building/pushing image targets
|
# Image URL to use all building/pushing image targets
|
||||||
IMG ?= controller:latest
|
IMG ?= git.mayers.cloud/superflo22/split-horizon-operator:dev
|
||||||
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
|
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
|
||||||
ENVTEST_K8S_VERSION = 1.31.0
|
ENVTEST_K8S_VERSION = 1.320
|
||||||
|
|
||||||
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
|
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
|
||||||
ifeq (,$(shell go env GOBIN))
|
ifeq (,$(shell go env GOBIN))
|
||||||
|
|
|
||||||
|
|
@ -4,5 +4,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
images:
|
images:
|
||||||
- name: controller
|
- name: controller
|
||||||
newName: controller
|
newName: git.mayers.cloud/superflo22/split-horizon-operator
|
||||||
newTag: latest
|
newTag: dev
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,7 @@ spec:
|
||||||
- --leader-elect
|
- --leader-elect
|
||||||
- --health-probe-bind-address=:8081
|
- --health-probe-bind-address=:8081
|
||||||
image: controller:latest
|
image: controller:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
name: manager
|
name: manager
|
||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue