Skip to content

Commit

Permalink
Update ko sample
Browse files Browse the repository at this point in the history
Signed-off-by: David Gageot <david@gageot.net>
  • Loading branch information
dgageot committed Mar 5, 2020
1 parent 4939f21 commit b68128a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion examples/custom/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
set -e

if ! [ -x "$(command -v ko)" ]; then
GO111MODULE=on go get -mod=readonly github.com/google/ko/cmd/ko
pushd $(mktemp -d)
go mod init tmp; go get github.com/google/ko/cmd/ko
popd
fi

output=$(ko publish --local --preserve-import-paths --tags= . | tee)
Expand Down
2 changes: 1 addition & 1 deletion examples/custom/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/GoogleContainerTools/skaffold/examples/custom

go 1.13
go 1.14
4 changes: 3 additions & 1 deletion integration/examples/custom/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
set -e

if ! [ -x "$(command -v ko)" ]; then
GO111MODULE=on go get -mod=readonly github.com/google/ko/cmd/ko
pushd $(mktemp -d)
go mod init tmp; go get github.com/google/ko/cmd/ko
popd
fi

output=$(ko publish --local --preserve-import-paths --tags= . | tee)
Expand Down
2 changes: 1 addition & 1 deletion integration/examples/custom/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/GoogleContainerTools/skaffold/examples/custom

go 1.13
go 1.14

0 comments on commit b68128a

Please sign in to comment.