From 90249bf42295cfded64492fb88900d27ea590b9e Mon Sep 17 00:00:00 2001 From: elad-codefresh <82316166+elad-codefresh@users.noreply.github.com> Date: Tue, 10 Aug 2021 15:05:36 +0300 Subject: [PATCH] bump (#53) --- Makefile | 2 +- cmd/commands/git-source.go | 11 ++--------- docs/releases/release_notes.md | 4 ++-- manifests/runtime.yaml | 2 +- 4 files changed, 6 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index fff0337d0..f71c11d67 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION=v0.0.56 +VERSION=v0.0.57 OUT_DIR=dist YEAR?=$(shell date +"%Y") diff --git a/cmd/commands/git-source.go b/cmd/commands/git-source.go index 4307919aa..33fb395fc 100644 --- a/cmd/commands/git-source.go +++ b/cmd/commands/git-source.go @@ -26,7 +26,6 @@ import ( "github.com/argoproj-labs/argocd-autopilot/pkg/application" "github.com/argoproj-labs/argocd-autopilot/pkg/fs" "github.com/argoproj-labs/argocd-autopilot/pkg/git" - apstore "github.com/argoproj-labs/argocd-autopilot/pkg/store" wf "github.com/argoproj/argo-workflows/v3/pkg/apis/workflow" wfv1alpha1 "github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1" "github.com/go-git/go-billy/v5/memfs" @@ -162,9 +161,6 @@ func RunCreateGitSource(ctx context.Context, opts *GitSourceCreateOptions) error } func createDemoWorkflowTemplate(gsFs fs.FS, gsName, runtimeName string) error { - var err error - - gsPath := gsFs.Join(apstore.Default.AppsDir, gsName, runtimeName, "demo-wf-template.yaml") wfTemplate := &wfv1alpha1.WorkflowTemplate{ TypeMeta: metav1.TypeMeta{ Kind: wf.WorkflowTemplateKind, @@ -190,9 +186,6 @@ func createDemoWorkflowTemplate(gsFs fs.FS, gsName, runtimeName string) error { }, }, } - if err = gsFs.WriteYamls(gsPath, wfTemplate); err != nil { - return err - } - - return err + + return gsFs.WriteYamls("demo-wf-template.yaml", wfTemplate) } diff --git a/docs/releases/release_notes.md b/docs/releases/release_notes.md index b58369d56..90fe37d1d 100644 --- a/docs/releases/release_notes.md +++ b/docs/releases/release_notes.md @@ -20,7 +20,7 @@ cf version ### Linux ```bash # download and extract the binary -curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.56/cf-linux-amd64.tar.gz | tar zx +curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.57/cf-linux-amd64.tar.gz | tar zx # move the binary to your $PATH mv ./cf-linux-amd64 /usr/local/bin/cf @@ -32,7 +32,7 @@ cf version ### Mac ```bash # download and extract the binary -curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.56/cf-darwin-amd64.tar.gz | tar zx +curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.57/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 174538e2f..0b73e2182 100644 --- a/manifests/runtime.yaml +++ b/manifests/runtime.yaml @@ -5,7 +5,7 @@ metadata: namespace: "{{ namespace }}" spec: defVersion: 1.0.0 - version: 0.0.56 + version: 0.0.57 bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd components: - name: events