From ec523a74932f24fdf7b331e3144b7e6a1eaca1ae Mon Sep 17 00:00:00 2001 From: Noam Gal Date: Tue, 20 Jul 2021 13:08:12 +0300 Subject: [PATCH] fixed ref=vX.Y.Z (#23) --- Makefile | 2 +- docs/releases/release_notes.md | 4 ++-- manifests/runtime.yaml | 2 +- pkg/runtime/runtime.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index e73abd50f..5fffd07c6 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION=v0.0.27 +VERSION=v0.0.28 OUT_DIR=dist YEAR?=$(shell date +"%Y") diff --git a/docs/releases/release_notes.md b/docs/releases/release_notes.md index 0d22fe7ad..40fe30b5e 100644 --- a/docs/releases/release_notes.md +++ b/docs/releases/release_notes.md @@ -8,7 +8,7 @@ ### Linux ```bash # download and extract the binary -curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.27/cf-linux-amd64.tar.gz | tar zx +curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.28/cf-linux-amd64.tar.gz | tar zx # move the binary to your $PATH mv ./cf-linux-amd64 /usr/local/bin/cf @@ -20,7 +20,7 @@ cf version ### Mac ```bash # download and extract the binary -curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.27/cf-darwin-amd64.tar.gz | tar zx +curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.28/cf-darwin-amd64.tar.gz | tar zx # move the binary to your $PATH mv ./cf-darwin-amd64 /usr/local/bin/cf diff --git a/manifests/runtime.yaml b/manifests/runtime.yaml index b06517b96..37978a837 100644 --- a/manifests/runtime.yaml +++ b/manifests/runtime.yaml @@ -5,7 +5,7 @@ metadata: namespace: "{{ namespace }}" spec: defVersion: 1.0.0 - version: 0.0.27 + version: 0.0.28 bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd components: - name: events diff --git a/pkg/runtime/runtime.go b/pkg/runtime/runtime.go index af8cd8803..130061cdf 100644 --- a/pkg/runtime/runtime.go +++ b/pkg/runtime/runtime.go @@ -263,7 +263,7 @@ func buildFullURL(urlString string, version *semver.Version) string { urlObj, _ := url.Parse(urlString) v := urlObj.Query() if v.Get("ref") == "" { - v.Add("ref", version.String()) + v.Add("ref", "v"+version.String()) urlObj.RawQuery = v.Encode() }