Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cr-15431 #636

Merged
merged 2 commits into from
Nov 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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