Skip to content

Commit 73ee7e2

Browse files
ahmetbk8s-ci-robot
authored andcommitted
Set up Travis CI for release binaries (#334)
* Set up Travis CI for release binaries Signed-off-by: Ahmet Alp Balkan <[email protected]> * move flag.Parse() to main Signed-off-by: Ahmet Alp Balkan <[email protected]>
1 parent 9f1175a commit 73ee7e2

File tree

8 files changed

+24
-98
lines changed

8 files changed

+24
-98
lines changed

.travis.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
sudo: false
22
language: go
33
go:
4-
- 1.11.x
4+
- 1.13.x
55
go_import_path: sigs.k8s.io/krew
66
install: true
77
notifications:
@@ -28,3 +28,16 @@ env:
2828
- GOPROXY=https://proxy.golang.org
2929
- secure: Ly5oLE9sC7NDvwyZEzOi8gPeHdu3NTP2OuDa8BOUngAanXhaEInzBJ+Pod+TIKFzpope4/z8idMN3rZfPV5LcXzhufk82LSpYlGhZgFDYajvv3eNN20arZQf4kjohd5U2aY1XrYgrgBbodv7dCLnitxotO65tTzQN5xh6evwW6Ji2Em7t42kvz9VHj2nptWKsciQEr6KNb2xDJ7PSvFKdPKq0q3Vuy7PFToZvNbsk+FBLSjYpAHG1KrlyX/WiM1mLu7jCJ4yuPx4n9+CM5Zzycbc/6mrs8ZiR+myyaCMzh6pEltdR0vzSlFIl2TJvUwzTUyTXcZsQ/ENa1ZdOkQwI4jpV3IDTQ6AlMRtBSbL5/uSOvHYs1HBYTbJJeZLiMjru9SM6D9AUW9HRr0JQGeQFsPE/4mzl39Xgl+3GE4+6sfNiaurpvgNArQNBAs2nZ0V3myiDoSG/sAL/2YzXHiG0HVhVk65P33d9SevJjBJRTobhRf4Lt0lT2IO6XF/4kQIvMnaCPQRS1X5tMIHFeTzn1dwrFiZqd1Sbwq5cd8H25nt1XnXsCTgRegJPNUxqRHnDpR5M3HRiW+TmjJIte7Y6exCihonM3afj3rsu3Q/ePwj7ckzgq8CP2yJ//Sxu4FH65LGQ/2bHJUneKL33Uq1W68c+qtKWMGLB4LNRGJVZkc=
3030
- secure: o6ZTdC1H4elXUrqt8XFfV7zuN9mWjQcV5iMicyG7TU/Fn8HIOluzRYPNgmdtuUpLYaQ7KD1t79+QNwuWtQOOHO/eQJ2/LCwO6cSVfxa6sM560r6qOtXraJugq0sCjOY8mNcwo7toY8vtf8yHa1an4L8CSm0SkH0h2EaBE0SE+Vfmb0T0RD/5f2i0Ni8Vn9QLe2P32CRT8VWhFNs+rqj1VwpspDjwa/X+R44RBgLmf61bZQpW5bKauLTR/JrXejppkSXRRqYFDokYTbAVOZbTacwqj7b4D+H6tUb8PaG6wMu5GLe1/rLwREn49cWA3LLX/U7wcUqbIW9jYYFRjt4Cs4YFZXIsaqhAcBcitajFXiZsOdYgHnIHNR4C86oH/dM5UjVSXcpuAw8xcJ4AAEaF3EE3C+bfWZZBHbmfdF1mDbezuTKGynzsQs6i9tlOlrgL9KVsj4YThPqk8Mfa3UOHSG6dOKVqxECPb5voSzKQvRyrzPVjONgmuHf4r/7E8ur1hsXuZGnaVphWTG+fPX4Sdiuo2kn1pOCLt1C8aXqsDpKcnzBjm1yeV8m7jIOBDhPm0mrGHjiCix7NqgxUPuAwLC1zIAXIKyAIpJzig+WlQC6gFu/7zlm0qrowxLImX4seb4rWp90OFcutek0NEVy1BO2LNn4TspaeTWkqD9vR4yQ=
31+
deploy:
32+
provider: releases
33+
skip_cleanup: true
34+
on:
35+
tags: true
36+
file:
37+
- out/krew.tar.gz
38+
- out/krew.tar.gz.sha256
39+
- out/krew.zip
40+
- out/krew.zip.sha256
41+
- out/krew.yaml
42+
api_key:
43+
secure: t4a69ruCl15etso89c/GSone/gEvWnG6+w4q6NUhjViVaJJuIFDth1C1KxuF/wWW9r2R6zpGNj1uEhfXlc1VB1gGJnq/dkxW7iiVpjPFZUpBYJlK49esrytTGmlNuoKSlX4WTyXEgyH/zui8psJdeVhdDu4yCDrWdkb54gjyp7enluvPNxD40naGybeCNUfWLHvbCOQU4zPQIS2E2Sb7IPlup4LfcUDZYoGuGiBxN9nbU4GOk5gYB1jcQ2j2bDdWtEqp0T19auyWtv/gkU7Mn6Ebt+PG3OxBuyVbw2rq0eB7SeR/6lSrkj2TX4jiMsStNRE+W7Es3t+b8BSOLJcXfi7GA2iyDA70vZYS97bo8TCnezKr65O39ADtmgjVAx+eGOUhuOJj3d1Ft6yK7EILaYMq9zy90EyeMTcuqekFSUo8b1dnyP3fgkDyEyZ0YUiTlUUDkjJO+m+kMqoGH4FpkTgD+JmsXNTBzJ9PpRhP6d/Ti8OuwtjT7iEGmgp5aqPTti01vcxDK7xremNx5Vbqd7QHwFvOcJFPD9oF7rEMbFLpGfn61YHqefGnAxAItLmAOeMAH8A1j5xByB/4NsCukKJSJc3is0ClGL/d44BmeVtVrCM6/0lsCSOfyC5ph2f8o/yyC/26ShFsDyN6vB57VWTzXbUm3ybaT3GgRFTyC+Q=

cmd/validate-krew-manifest/main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ func init() {
4444
fmt.Printf("can't set log to stderr %+v", err)
4545
os.Exit(1)
4646
}
47-
// TODO(ahmetb) iterate over glog flags and hide them (not sure if possible without using pflag)
48-
flag.Parse()
4947
}
5048

5149
func main() {
50+
// TODO(ahmetb) iterate over glog flags and hide them (not sure if possible without using pflag)
51+
flag.Parse()
52+
5253
defer glog.Flush()
5354

5455
if flManifest == "" {

docs/RELEASING_KREW.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,5 @@ Krew tags versions starting with `v`. Example: `v0.2.0-rc.1`.
6767

6868
## Release artifacts
6969

70-
When a release is tagged, the Build Trigger configured on Google Cloud Build
71-
will pick up the `hack/cloudbuild-release.yaml`, build the release artifacts,
72-
and upload them to Google Cloud Storage bucket `gs://krew/${TAG}/`
73-
automatically.
74-
75-
The last tagged release will also be available under `gs://krew/latest/`
76-
77-
Similarly, another Build Trigger configured on GCB builds each commit merged
78-
to `master` and pushes the artifacts to `gs://krew/builds/{short_commit_sha}`.
79-
80-
The Google Cloud Storage bucket `gs://krew` is hosted in
81-
`google-samples` GCP project. This bucket is publicly viewable/listable.
82-
83-
If there's custom action needed (e.g. re-tagging a release), use `gsutil`
84-
tool or Google Cloud Console to modify this bucket.
70+
When a tag is pushed to the repository, Travis CI will make a release on GitHub
71+
and upload the release artifacts as files on the release.

hack/Dockerfile

Lines changed: 0 additions & 24 deletions
This file was deleted.

hack/cloudbuild-release.yaml

Lines changed: 0 additions & 27 deletions
This file was deleted.

hack/cloudbuild.yaml

Lines changed: 0 additions & 24 deletions
This file was deleted.

hack/krew.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ spec:
3434
You can find documentation at https://github.com/kubernetes-sigs/krew.
3535
3636
platforms:
37-
- uri: https://storage.googleapis.com/krew/KREW_TAG/krew.tar.gz
37+
- uri: https://github.com/kubernetes-sigs/krew/releases/download/KREW_TAG/krew.tar.gz
3838
sha256: KREW_TAR_CHECKSUM
3939
bin: krew
4040
files:
@@ -44,7 +44,7 @@ spec:
4444
matchLabels:
4545
os: darwin
4646
arch: amd64
47-
- uri: https://storage.googleapis.com/krew/KREW_TAG/krew.tar.gz
47+
- uri: https://github.com/kubernetes-sigs/krew/releases/download/KREW_TAG/krew.tar.gz
4848
sha256: KREW_TAR_CHECKSUM
4949
bin: krew
5050
files:
@@ -54,7 +54,7 @@ spec:
5454
matchLabels:
5555
os: linux
5656
arch: amd64
57-
- uri: https://storage.googleapis.com/krew/KREW_TAG/krew.tar.gz
57+
- uri: https://github.com/kubernetes-sigs/krew/releases/download/KREW_TAG/krew.tar.gz
5858
sha256: KREW_TAR_CHECKSUM
5959
bin: krew
6060
files:
@@ -64,7 +64,7 @@ spec:
6464
matchLabels:
6565
os: linux
6666
arch: arm
67-
- uri: https://storage.googleapis.com/krew/KREW_TAG/krew.zip
67+
- uri: https://github.com/kubernetes-sigs/krew/releases/download/KREW_TAG/krew.zip
6868
sha256: KREW_ZIP_CHECKSUM
6969
bin: krew.exe
7070
files:

hack/make-release-notes.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if ! [[ "$TAG" =~ v.* ]]; then
2525
fi
2626

2727
readme="https://github.com/kubernetes-sigs/krew/blob/${TAG}/README.md"
28-
download_base="https://storage.googleapis.com/krew"
28+
download_base="https://github.com/kubernetes-sigs/krew/releases/download"
2929
download_assets=(
3030
krew.tar.gz
3131
krew.tar.gz.sha256

0 commit comments

Comments
 (0)