Added some debug messages in shell.go. Added docker push and tag to makefile
This commit is contained in:
parent
0606dfa663
commit
9748b34f19
4
Makefile
4
Makefile
@ -3,7 +3,7 @@ OS ?= $(shell $(GO) env GOOS)
|
||||
ARCH ?= $(shell $(GO) env GOARCH)
|
||||
|
||||
IMAGE_NAME := "cert-manager-webhook-sthome"
|
||||
IMAGE_TAG := "0.0.3-alpha.1"
|
||||
IMAGE_TAG := "0.0.3-alpha.2"
|
||||
|
||||
OUT := $(shell pwd)/_out
|
||||
|
||||
@ -35,6 +35,8 @@ clean:
|
||||
build: dependencies
|
||||
go run cmd/buildnumber.go
|
||||
docker build -t "$(IMAGE_NAME):$(IMAGE_TAG)" .
|
||||
docker tag $(IMAGE_NAME) "docker.io/stuurmcp/$(IMAGE_NAME):$(IMAGE_TAG)"
|
||||
docker image push "stuurmcp/$(IMAGE_NAME):$(IMAGE_TAG)"
|
||||
|
||||
.PHONY: rendered-manifest.yaml
|
||||
rendered-manifest.yaml: $(OUT)/rendered-manifest.yaml
|
||||
|
||||
@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
version = "0.0.3-alpha.1"
|
||||
version = "0.0.3-alpha.2"
|
||||
buildTime string
|
||||
)
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
appVersion: "v0.0.3-alpha.1"
|
||||
appVersion: "v0.0.3-alpha.2"
|
||||
description: Cert-Manager webhook for sthome
|
||||
name: sthome-webhook
|
||||
version: 0.0.3-alpha.1
|
||||
version: 0.0.3-alpha.2
|
||||
|
||||
|
||||
@ -31,7 +31,7 @@ clusterIssuer:
|
||||
image:
|
||||
repository: stuurmcp/cert-manager-webhook-sthome
|
||||
#repository: wstat.sthome.net:5000/cert-manager-webhook-sthome
|
||||
tag: 0.0.3-alpha.1
|
||||
tag: 0.0.3-alpha.2
|
||||
#pullPolicy should be IfNotPresent. Set to Always for testing purposes
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
|
||||
@ -24,11 +24,13 @@ func Execute(script string, command []string) (bool, error) {
|
||||
|
||||
err = cmd.Start()
|
||||
if err != nil {
|
||||
klog.Errorf("CZ: Script Start return error: %s\n", err)
|
||||
return false, err
|
||||
}
|
||||
|
||||
err = cmd.Wait()
|
||||
if err != nil {
|
||||
klog.Errorf("CZ: Script Wait return error: %s\n", err)
|
||||
return false, err
|
||||
}
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ import (
|
||||
|
||||
// These are set during build time via -ldflags
|
||||
var (
|
||||
version = "0.0.3+dev"
|
||||
version = "0.0.3-alpha.2"
|
||||
gitCommit string
|
||||
buildDate string
|
||||
)
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
0.0.3+dev
|
||||
20240328-2332
|
||||
19
|
||||
0.0.3-alpha.2
|
||||
20240329-1707
|
||||
27
|
||||
Loading…
Reference in New Issue
Block a user