File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,7 @@ cli-local: $(OUT_DIR)/$(CLI_NAME)-$(shell go env GOOS)-$(shell go env GOARCH)
76
76
@ln $(OUT_DIR ) /$(CLI_NAME ) -$(shell go env GOOS) -$(shell go env GOARCH) /usr/local/bin/$(CLI_NAME ) -dev
77
77
78
78
.PHONY : cli-e2e
79
- cli-e2e : cli-package
80
-
81
- .PHONY : cli-package
82
- cli-package : $(OUT_DIR ) /$(CLI_NAME ) -$(shell go env GOOS) -$(shell go env GOARCH)
79
+ cli-e2e : $(OUT_DIR ) /$(CLI_NAME ) -$(shell go env GOOS) -$(shell go env GOARCH)
83
80
@cp $(OUT_DIR ) /$(CLI_NAME ) -$(shell go env GOOS) -$(shell go env GOARCH) $(OUT_DIR ) /$(CLI_NAME )
84
81
85
82
$(OUT_DIR ) /$(CLI_NAME ) -linux-amd64 : GO_FLAGS='GOOS=linux GOARCH=amd64 CGO_ENABLED=0'
@@ -175,8 +172,3 @@ $(GOBIN)/golangci-lint:
175
172
@mkdir dist || true
176
173
@echo installing: golangci-lint
177
174
@curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOBIN ) v1.50.1
178
-
179
- .PHONY : e2e-local-manifests
180
- e2e-local-manifests :
181
- cat /codefresh/volume/cli-v2/manifests/runtime.yaml | sed ' s@github.com/codefresh-io/cli-v2/@/codefresh/volume/cli-v2/@' > /tmp/tmp_runtime.yaml
182
- mv /tmp/tmp_runtime.yaml manifests/runtime.yaml
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ REPO="https://github.com/codefresh-io/csdp-official"
4
4
BRANCH=" $1 "
5
5
6
6
DEFAULT_MANIFESTS_LOCATION=" https://raw.githubusercontent.com/codefresh-io/csdp-official/stable/csdp/hybrid/basic/runtime.yaml"
7
- CUSTOM_MANIFESTS_LOCATION =" https://github. com/codefresh-io/csdp-official/csdp/hybrid/basic/runtime.yaml?ref= $BRANCH "
7
+ RUNTIME_DEFINITION_URL =" https://raw.githubusercontent. com/codefresh-io/csdp-official/$BRANCH / csdp/hybrid/basic/runtime.yaml"
8
8
9
9
git ls-remote --heads ${REPO} ${BRANCH} | grep ${BRANCH} > /dev/null
10
10
@@ -14,4 +14,6 @@ if [ "$?" == "1" ]; then
14
14
exit 0
15
15
fi
16
16
17
- echo " $CUSTOM_MANIFESTS_LOCATION "
17
+ RUNTIME_DEFINITION_FILE=" /codefresh/volume/runtime.yaml"
18
+ curl --silent " $RUNTIME_DEFINITION_URL " | yq " (.spec.components[] | select(.type == \" kustomize\" ) | .url) += \" ?ref=$BRANCH \" " | yq " .spec.bootstrapSpecifier += \" ?ref=$BRANCH \" " > $RUNTIME_DEFINITION_FILE
19
+ echo $RUNTIME_DEFINITION_FILE
You can’t perform that action at this time.
0 commit comments