Skip to content

Commit

Permalink
Create image with tag
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Oct 29, 2020
1 parent 99098dd commit af5b053
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ uninstall: manifests

# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
deploy: manifests
cd config/manager && kustomize edit set image controller=${TAG}
cd config/manager && kustomize edit set image controller=alexellis2/registry-creds-controller${TAG}
kustomize build config/default | kubectl apply -f -

shrinkwrap:
cd config/manager && kustomize edit set image controller=${TAG}
cd config/manager && kustomize edit set image controller=alexellis2/registry-creds-controller${TAG}
kustomize build config/default > mainfest.yaml

# Generate manifests e.g. CRD, RBAC etc.
Expand All @@ -65,7 +65,7 @@ docker-build:
@docker buildx create --use --name=multiarch --node=multiarch && \
docker buildx build \
--output "type=docker,push=false" \
--tag $(TAG) \
--tag alexellis2/registry-creds-controller$(TAG) \
.

.PHONY: docker-publish # Push the docker image to the remote registry
Expand All @@ -74,7 +74,7 @@ docker-publish:
docker buildx build \
--platform linux/amd64,linux/arm/v7,linux/arm64 \
--output "type=image,push=true" \
--tag $(TAG) .
--tag alexellis2/registry-creds-controller$(TAG) .

# find or download controller-gen
# download controller-gen if necessary
Expand Down

0 comments on commit af5b053

Please sign in to comment.