Skip to content

Commit 9cbfd9c

Browse files
committed
feat(kubectl-trace): only push images on success
Signed-off-by: Lorenzo Fontana <[email protected]>
1 parent 8c62a48 commit 9cbfd9c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ script:
1010
- make test
1111
- make _output/bin/kubectl-trace
1212
- make integration
13+
after_success:
1314
- ./hack/release-image.sh

integration/cmd_run_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func (k *KubectlTraceSuite) TestRunNode(c *check.C) {
1313

1414
nodeName := nodes[0].String()
1515
bpftraceProgram := `kprobe:do_sys_open { printf("%s: %s\n", comm, str(arg1)) }'`
16-
out := k.KubectlTraceCmd(c, "run", "-e", bpftraceProgram, nodeName, "-a")
16+
out := k.KubectlTraceCmd(c, "run", "-e", bpftraceProgram, nodeName)
1717
match, err := regexp.MatchString("trace (\\w+-){4}\\w+ created", out)
1818
c.Assert(err, check.IsNil)
1919
c.Assert(match, check.Equals, true)

0 commit comments

Comments
 (0)