Skip to content

Commit 0f2db49

Browse files
authored
release: use ko 0.13.0 to build images (google#1607)
1 parent 53189d3 commit 0f2db49

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

cloudbuild.yaml

+10-10
Original file line numberDiff line numberDiff line change
@@ -19,34 +19,34 @@ steps:
1919
ln -s $$PWD $$shadow || stat $$shadow
2020
2121
# Install ko from release.
22-
curl -L -o ko.tar.gz https://github.com/google/ko/releases/download/v0.8.2/ko_0.8.2_Linux_i386.tar.gz
22+
curl -L -o ko.tar.gz https://github.com/google/ko/releases/download/v0.13.0/ko_0.13.0_Linux_i386.tar.gz
2323
tar xvfz ko.tar.gz
2424
chmod +x ko
2525
alias ko=$${PWD}/ko
2626
2727
# Use the ko binary to build the crane-ish builder images.
28-
ko publish --platform=all -B github.com/google/go-containerregistry/cmd/crane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
29-
ko publish --platform=all -B github.com/google/go-containerregistry/cmd/gcrane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
28+
ko build --platform=all -B github.com/google/go-containerregistry/cmd/crane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
29+
ko build --platform=all -B github.com/google/go-containerregistry/cmd/gcrane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
3030
# ./cmd/krane is a separate module, so switch directories.
3131
cd ./cmd/krane
32-
ko publish --platform=all -B github.com/google/go-containerregistry/cmd/krane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
32+
ko build --platform=all -B github.com/google/go-containerregistry/cmd/krane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
3333
cd ../../
3434
3535
# Use the ko binary to build the crane-ish builder *debug* images.
3636
export KO_CONFIG_PATH=$(pwd)/.ko/debug/
37-
ko publish --platform=all -B github.com/google/go-containerregistry/cmd/crane -t "debug"
38-
ko publish --platform=all -B github.com/google/go-containerregistry/cmd/gcrane -t "debug"
37+
ko build --platform=all -B github.com/google/go-containerregistry/cmd/crane -t "debug"
38+
ko build --platform=all -B github.com/google/go-containerregistry/cmd/gcrane -t "debug"
3939
# ./cmd/krane is a separate module, so switch directories.
4040
cd ./cmd/krane
41-
ko publish --platform=all -B github.com/google/go-containerregistry/cmd/krane -t "debug"
41+
ko build --platform=all -B github.com/google/go-containerregistry/cmd/krane -t "debug"
4242
cd ../../
4343
4444
# Tag-specific debug images are pushed to gcr.io/go-containerregistry/TOOL/debug:...
45-
KO_DOCKER_REPO=gcr.io/$PROJECT_ID/crane/debug ko publish --platform=all --bare github.com/google/go-containerregistry/cmd/crane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
46-
KO_DOCKER_REPO=gcr.io/$PROJECT_ID/gcrane/debug ko publish --platform=all --bare github.com/google/go-containerregistry/cmd/gcrane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
45+
KO_DOCKER_REPO=gcr.io/$PROJECT_ID/crane/debug ko build --platform=all --bare github.com/google/go-containerregistry/cmd/crane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
46+
KO_DOCKER_REPO=gcr.io/$PROJECT_ID/gcrane/debug ko build --platform=all --bare github.com/google/go-containerregistry/cmd/gcrane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
4747
# ./cmd/krane is a separate module, so switch directories.
4848
cd ./cmd/krane
49-
KO_DOCKER_REPO=gcr.io/$PROJECT_ID/krane/debug ko publish --platform=all --bare github.com/google/go-containerregistry/cmd/krane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
49+
KO_DOCKER_REPO=gcr.io/$PROJECT_ID/krane/debug ko build --platform=all --bare github.com/google/go-containerregistry/cmd/krane -t latest -t "$COMMIT_SHA" -t "$TAG_NAME"
5050
cd ../../
5151
5252
# Use the crane builder to get the digest for crane-ish.

0 commit comments

Comments
 (0)