Skip to content
Permalink
Browse files

Set up Travis CI for release binaries

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
  • Loading branch information...
ahmetb committed Sep 8, 2019
1 parent f7a36f5 commit 1f53fb16aa1833245faf4d4c30ec2d7a47c1e452
Showing with 20 additions and 95 deletions.
  1. +13 −0 .travis.yml
  2. +2 −15 docs/RELEASING_KREW.md
  3. +0 −24 hack/Dockerfile
  4. +0 −27 hack/cloudbuild-release.yaml
  5. +0 −24 hack/cloudbuild.yaml
  6. +4 −4 hack/krew.yaml
  7. +1 −1 hack/make-release-notes.sh
@@ -28,3 +28,16 @@ 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
skip_cleanup: true
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=
@@ -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.

This file was deleted.

This file was deleted.

This file was deleted.

@@ -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:
@@ -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:
@@ -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:
@@ -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:
@@ -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

0 comments on commit 1f53fb1

Please sign in to comment.
You can’t perform that action at this time.