Skip to content

Commit

Permalink
cr-15431 (#636)
Browse files Browse the repository at this point in the history
* cr-15431

* cr-15431
  • Loading branch information
eti-codefresh authored Nov 8, 2022
1 parent f20e1a1 commit a5a804e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=v0.1.3
VERSION=v0.1.4

OUT_DIR=dist
YEAR?=$(shell date +"%Y")
Expand Down
38 changes: 18 additions & 20 deletions cmd/commands/git-source.go
Original file line number Diff line number Diff line change
Expand Up @@ -605,26 +605,24 @@ func createDemoResources(ctx context.Context, opts *GitSourceCreateOptions, gsRe
return fmt.Errorf("failed to create calendar example pipeline. Error: %w", err)
}

if opts.AccessMode == platmodel.AccessModeIngress {
err = createDemoGitPipeline(&gitSourceGitDemoPipelineOptions{
runtimeName: opts.RuntimeName,
gsCloneOpts: opts.GsCloneOpts,
gitProvider: opts.GitProvider,
gsFs: gsFs,
hostName: opts.HostName,
skipIngress: opts.SkipIngress,
ingressHost: opts.IngressHost,
ingressClass: opts.IngressClass,
ingressController: opts.IngressController,
accessMode: opts.AccessMode,
gatewayName: opts.GatewayName,
gatewayNamespace: opts.GatewayNamespace,
useGatewayAPI: opts.useGatewayAPI,
})
if err != nil {
return fmt.Errorf("failed to create github example pipeline. Error: %w", err)
}
}
err = createDemoGitPipeline(&gitSourceGitDemoPipelineOptions{
runtimeName: opts.RuntimeName,
gsCloneOpts: opts.GsCloneOpts,
gitProvider: opts.GitProvider,
gsFs: gsFs,
hostName: opts.HostName,
skipIngress: opts.SkipIngress,
ingressHost: opts.IngressHost,
ingressClass: opts.IngressClass,
ingressController: opts.IngressController,
accessMode: opts.AccessMode,
gatewayName: opts.GatewayName,
gatewayNamespace: opts.GatewayNamespace,
useGatewayAPI: opts.useGatewayAPI,
})
if err != nil {
return fmt.Errorf("failed to create github example pipeline. Error: %w", err)
}

commitMsg := fmt.Sprintf("Created demo pipelines in %s Directory", opts.GsCloneOpts.Path())

Expand Down
4 changes: 2 additions & 2 deletions docs/releases/release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ cf version

```bash
# download and extract the binary
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.2/cf-linux-amd64.tar.gz | tar zx
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.4/cf-linux-amd64.tar.gz | tar zx

# move the binary to your $PATH
mv ./cf-linux-amd64 /usr/local/bin/cf
Expand All @@ -36,7 +36,7 @@ cf version

```bash
# download and extract the binary
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.2/cf-darwin-amd64.tar.gz | tar zx
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.4/cf-darwin-amd64.tar.gz | tar zx

# move the binary to your $PATH
mv ./cf-darwin-amd64 /usr/local/bin/cf
Expand Down

0 comments on commit a5a804e

Please sign in to comment.