File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
+ source $( dirname $0 ) /version
4
5
cd $( dirname $0 ) /..
5
6
7
+ echo " [validate-ci] starting to validate"
6
8
echo " Running go mod tidy"
7
9
go mod tidy
8
10
9
11
echo " Running go mod verify"
10
12
go mod verify
11
13
12
- echo " Verifying code is generated and repo is clean "
13
- go generate
14
-
15
- source ./scripts/version
14
+ if [ -f " generate.go " ] ; then
15
+ echo " Verifying code is generated and repo is clean "
16
+ go generate
17
+ fi
16
18
17
19
if [ -n " $DIRTY " ]; then
18
20
echo Git is dirty
19
21
git status
20
22
git diff
21
23
exit 1
22
24
fi
25
+
26
+ echo " [validate-ci] success"
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- set -x
3
2
4
3
CHARTS_BUILD_SCRIPTS_REPO=https://github.com/rancher/charts-build-scripts.git
5
4
CHARTS_BUILD_SCRIPT_VERSION=v0.9.2
44
43
IMAGE=${IMAGE:- " $REPO /${BUILD_TARGET} :${TAG} " }
45
44
46
45
function print_version_debug() {
46
+ echo " DIRTY: $DIRTY "
47
47
echo " BUILD_TARGET: $BUILD_TARGET " ;
48
48
echo " SUFFIX: $SUFFIX " ;
49
49
echo " HELM_IMAGE_TAG: $HELM_IMAGE_TAG " ;
You can’t perform that action at this time.
0 commit comments