System: Ubuntu 14.04 (Trusty Tahr)
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by:
version: '1.0' | |
steps: | |
unit_test: | |
image: golang:1.8 | |
description: grab dependencies, run unit tests | |
commands: | |
- mkdir -p /go/src/github.com/kubernetes-helm | |
- >- | |
ln -s /codefresh/volume/${{CF_REPO_NAME}} |
kubectl config use-context $KUBE_CONTEXT | |
kubectl -n $NAMESPACE create secret docker-registry codefresh \ | |
--docker-server=r.cfcr.io \ | |
--docker-username=$CODEFRESH_USERNAME \ | |
--docker-password=$DOCKER_ACCESS_TOKEN \ | |
--docker-email=$CODEFRESH_EMAIL | |
kubectl -n $NAMESPACE patch serviceaccount default \ | |
-p '{"imagePullSecrets":[{"name":"codefresh"}]}' |
package main | |
// using asymmetric crypto/RSA keys | |
import ( | |
"crypto/rsa" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" |
System: Ubuntu 14.04 (Trusty Tahr)
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by:
$ helm plugin install https://github.com/chartmuseum/helm-push | |
Downloading and installing helm-push v0.4.0 ... | |
https://github.com/chartmuseum/helm-push/releases/download/v0.4.0/helm-push_0.4.0_darwin_amd64.tar.gz | |
Installed plugin: push |
$ export HELM_REPO_ACCESS_TOKEN="4ae15d8045cg0b61084e42bc.af098218f3973b522213ga73aad6e211" | |
$ helm repo add codefresh cm://h.cfcr.io/myaccount/default | |
"codefresh" has been added to your repositories |
$ helm push mychart/ codefresh | |
Pushing mychart-0.1.0.tgz to codefresh... | |
Done. | |
$ helm repo update | |
Hang tight while we grab the latest from your chart repositories... | |
...Successfully got an update from the "codefresh" chart repository | |
Update Complete. ⎈ Happy Helming!⎈ | |
$ helm install --dry-run --name=demo codefresh/mychart | |
NAME: demo |
version: '1.0' | |
steps: | |
fetch_community_chart: | |
title: Download latest HackMD chart | |
image: codefresh/cfstep-helm:latest | |
commands: | |
- helm fetch stable/hackmd --untar | |
push_to_helm_repo: | |
title: Push HackMD chart to Helm repo | |
image: codefresh/cfstep-helm:latest |
version: '1.0' | |
steps: | |
get_tiller_version: | |
title: Determine Tiller version | |
image: codefresh/cfstep-helm:latest | |
commands: | |
- cf_export TILLER_VERSION=$(helm --kube-context "$KUBE_CONTEXT" version --template={{.Server.SemVer}} | cut -c2-) | |
install_chart: | |
title: Install HackMD chart into cluster | |
image: codefresh/cfstep-helm:${{TILLER_VERSION}} |
I hereby claim:
To claim this, I am signing this object: