Skip to content

Commit

Permalink
Set up Travis CI for release binaries
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
  • Loading branch information
ahmetb committed Sep 8, 2019
1 parent f7a36f5 commit 04165f6
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 95 deletions.
12 changes: 12 additions & 0 deletions .travis.yml
Expand Up @@ -28,3 +28,15 @@ env:
- GOPROXY=https://proxy.golang.org
- secure: Ly5oLE9sC7NDvwyZEzOi8gPeHdu3NTP2OuDa8BOUngAanXhaEInzBJ+Pod+TIKFzpope4/z8idMN3rZfPV5LcXzhufk82LSpYlGhZgFDYajvv3eNN20arZQf4kjohd5U2aY1XrYgrgBbodv7dCLnitxotO65tTzQN5xh6evwW6Ji2Em7t42kvz9VHj2nptWKsciQEr6KNb2xDJ7PSvFKdPKq0q3Vuy7PFToZvNbsk+FBLSjYpAHG1KrlyX/WiM1mLu7jCJ4yuPx4n9+CM5Zzycbc/6mrs8ZiR+myyaCMzh6pEltdR0vzSlFIl2TJvUwzTUyTXcZsQ/ENa1ZdOkQwI4jpV3IDTQ6AlMRtBSbL5/uSOvHYs1HBYTbJJeZLiMjru9SM6D9AUW9HRr0JQGeQFsPE/4mzl39Xgl+3GE4+6sfNiaurpvgNArQNBAs2nZ0V3myiDoSG/sAL/2YzXHiG0HVhVk65P33d9SevJjBJRTobhRf4Lt0lT2IO6XF/4kQIvMnaCPQRS1X5tMIHFeTzn1dwrFiZqd1Sbwq5cd8H25nt1XnXsCTgRegJPNUxqRHnDpR5M3HRiW+TmjJIte7Y6exCihonM3afj3rsu3Q/ePwj7ckzgq8CP2yJ//Sxu4FH65LGQ/2bHJUneKL33Uq1W68c+qtKWMGLB4LNRGJVZkc=
- secure: o6ZTdC1H4elXUrqt8XFfV7zuN9mWjQcV5iMicyG7TU/Fn8HIOluzRYPNgmdtuUpLYaQ7KD1t79+QNwuWtQOOHO/eQJ2/LCwO6cSVfxa6sM560r6qOtXraJugq0sCjOY8mNcwo7toY8vtf8yHa1an4L8CSm0SkH0h2EaBE0SE+Vfmb0T0RD/5f2i0Ni8Vn9QLe2P32CRT8VWhFNs+rqj1VwpspDjwa/X+R44RBgLmf61bZQpW5bKauLTR/JrXejppkSXRRqYFDokYTbAVOZbTacwqj7b4D+H6tUb8PaG6wMu5GLe1/rLwREn49cWA3LLX/U7wcUqbIW9jYYFRjt4Cs4YFZXIsaqhAcBcitajFXiZsOdYgHnIHNR4C86oH/dM5UjVSXcpuAw8xcJ4AAEaF3EE3C+bfWZZBHbmfdF1mDbezuTKGynzsQs6i9tlOlrgL9KVsj4YThPqk8Mfa3UOHSG6dOKVqxECPb5voSzKQvRyrzPVjONgmuHf4r/7E8ur1hsXuZGnaVphWTG+fPX4Sdiuo2kn1pOCLt1C8aXqsDpKcnzBjm1yeV8m7jIOBDhPm0mrGHjiCix7NqgxUPuAwLC1zIAXIKyAIpJzig+WlQC6gFu/7zlm0qrowxLImX4seb4rWp90OFcutek0NEVy1BO2LNn4TspaeTWkqD9vR4yQ=
deploy:
provider: releases
on:
tags: true
files:
- krew.tar.gz
- krew.tar.gz.sha256
- krew.zip
- krew.zip.sha256
- krew.yaml
api_key:
secure: t4a69ruCl15etso89c/GSone/gEvWnG6+w4q6NUhjViVaJJuIFDth1C1KxuF/wWW9r2R6zpGNj1uEhfXlc1VB1gGJnq/dkxW7iiVpjPFZUpBYJlK49esrytTGmlNuoKSlX4WTyXEgyH/zui8psJdeVhdDu4yCDrWdkb54gjyp7enluvPNxD40naGybeCNUfWLHvbCOQU4zPQIS2E2Sb7IPlup4LfcUDZYoGuGiBxN9nbU4GOk5gYB1jcQ2j2bDdWtEqp0T19auyWtv/gkU7Mn6Ebt+PG3OxBuyVbw2rq0eB7SeR/6lSrkj2TX4jiMsStNRE+W7Es3t+b8BSOLJcXfi7GA2iyDA70vZYS97bo8TCnezKr65O39ADtmgjVAx+eGOUhuOJj3d1Ft6yK7EILaYMq9zy90EyeMTcuqekFSUo8b1dnyP3fgkDyEyZ0YUiTlUUDkjJO+m+kMqoGH4FpkTgD+JmsXNTBzJ9PpRhP6d/Ti8OuwtjT7iEGmgp5aqPTti01vcxDK7xremNx5Vbqd7QHwFvOcJFPD9oF7rEMbFLpGfn61YHqefGnAxAItLmAOeMAH8A1j5xByB/4NsCukKJSJc3is0ClGL/d44BmeVtVrCM6/0lsCSOfyC5ph2f8o/yyC/26ShFsDyN6vB57VWTzXbUm3ybaT3GgRFTyC+Q=
17 changes: 2 additions & 15 deletions docs/RELEASING_KREW.md
Expand Up @@ -67,18 +67,5 @@ Krew tags versions starting with `v`. Example: `v0.2.0-rc.1`.

## Release artifacts

When a release is tagged, the Build Trigger configured on Google Cloud Build
will pick up the `hack/cloudbuild-release.yaml`, build the release artifacts,
and upload them to Google Cloud Storage bucket `gs://krew/${TAG}/`
automatically.

The last tagged release will also be available under `gs://krew/latest/`

Similarly, another Build Trigger configured on GCB builds each commit merged
to `master` and pushes the artifacts to `gs://krew/builds/{short_commit_sha}`.

The Google Cloud Storage bucket `gs://krew` is hosted in
`google-samples` GCP project. This bucket is publicly viewable/listable.

If there's custom action needed (e.g. re-tagging a release), use `gsutil`
tool or Google Cloud Console to modify this bucket.
When a tag is pushed to the repository, Travis CI will make a release on GitHub
and upload the release artifacts as files on the release.
24 changes: 0 additions & 24 deletions hack/Dockerfile

This file was deleted.

27 changes: 0 additions & 27 deletions hack/cloudbuild-release.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions hack/cloudbuild.yaml

This file was deleted.

8 changes: 4 additions & 4 deletions hack/krew.yaml
Expand Up @@ -34,7 +34,7 @@ spec:
You can find documentation at https://github.com/kubernetes-sigs/krew.
platforms:
- uri: https://storage.googleapis.com/krew/KREW_TAG/krew.tar.gz
- uri: https://github.com/kubernetes-sigs/krew/releases/download/KREW_TAG/krew.tar.gz
sha256: KREW_TAR_CHECKSUM
bin: krew
files:
Expand All @@ -44,7 +44,7 @@ spec:
matchLabels:
os: darwin
arch: amd64
- uri: https://storage.googleapis.com/krew/KREW_TAG/krew.tar.gz
- uri: https://github.com/kubernetes-sigs/krew/releases/download/KREW_TAG/krew.tar.gz
sha256: KREW_TAR_CHECKSUM
bin: krew
files:
Expand All @@ -54,7 +54,7 @@ spec:
matchLabels:
os: linux
arch: amd64
- uri: https://storage.googleapis.com/krew/KREW_TAG/krew.tar.gz
- uri: https://github.com/kubernetes-sigs/krew/releases/download/KREW_TAG/krew.tar.gz
sha256: KREW_TAR_CHECKSUM
bin: krew
files:
Expand All @@ -64,7 +64,7 @@ spec:
matchLabels:
os: linux
arch: arm
- uri: https://storage.googleapis.com/krew/KREW_TAG/krew.zip
- uri: https://github.com/kubernetes-sigs/krew/releases/download/KREW_TAG/krew.zip
sha256: KREW_ZIP_CHECKSUM
bin: krew.exe
files:
Expand Down
2 changes: 1 addition & 1 deletion hack/make-release-notes.sh
Expand Up @@ -25,7 +25,7 @@ if ! [[ "$TAG" =~ v.* ]]; then
fi

readme="https://github.com/kubernetes-sigs/krew/blob/${TAG}/README.md"
download_base="https://storage.googleapis.com/krew"
download_base="https://github.com/kubernetes-sigs/krew/releases/download"
download_assets=(
krew.tar.gz
krew.tar.gz.sha256
Expand Down

0 comments on commit 04165f6

Please sign in to comment.