Enable build workflow

This commit is contained in:
Moto Ishizawa
2020-02-02 21:38:11 +09:00
parent 6e400a70ed
commit b2b235f6a5
2 changed files with 30 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
NAME ?= summerwind/actions-runner-controller
VERSION ?= latest
# Image URL to use all building/pushing image targets
IMG ?= summerwind/actions-runner-controller:latest
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
CRD_OPTIONS ?= "crd:trivialVersions=true"
@@ -35,7 +35,7 @@ uninstall: manifests
# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
deploy: manifests
cd config/manager && kustomize edit set image controller=${IMG}
cd config/manager && kustomize edit set image controller=${NAME}:${VERSION}
kustomize build config/default | kubectl apply -f -
# Generate manifests e.g. CRD, RBAC etc.
@@ -56,11 +56,11 @@ generate: controller-gen
# Build the docker image
docker-build: test
docker build . -t ${IMG}
docker build . -t ${NAME}:${VERSION}
# Push the docker image
docker-push:
docker push ${IMG}
docker push ${NAME}:${VERSION}
# find or download controller-gen
# download controller-gen if necessary