@@ -19,34 +19,34 @@ steps:
19
19
ln -s $$PWD $$shadow || stat $$shadow
20
20
21
21
# 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
23
23
tar xvfz ko.tar.gz
24
24
chmod +x ko
25
25
alias ko=$${PWD}/ko
26
26
27
27
# 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"
30
30
# ./cmd/krane is a separate module, so switch directories.
31
31
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"
33
33
cd ../../
34
34
35
35
# Use the ko binary to build the crane-ish builder *debug* images.
36
36
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"
39
39
# ./cmd/krane is a separate module, so switch directories.
40
40
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"
42
42
cd ../../
43
43
44
44
# 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"
47
47
# ./cmd/krane is a separate module, so switch directories.
48
48
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"
50
50
cd ../../
51
51
52
52
# Use the crane builder to get the digest for crane-ish.
0 commit comments