From 5f0df0db0d41614a3008cc95c7d62aec126fdfe7 Mon Sep 17 00:00:00 2001 From: Geri Ochoa Date: Tue, 19 Jul 2022 16:49:36 -0400 Subject: [PATCH] Fix code typos Fix typographical errors in the code samples. --- .../en/docs/How-to guides/clone-repository.md | 2 +- .../docs/How-to guides/kaniko-build-push.md | 54 +++++++++---------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/content/en/docs/How-to guides/clone-repository.md b/content/en/docs/How-to guides/clone-repository.md index 4c301fbb..d262080e 100644 --- a/content/en/docs/How-to guides/clone-repository.md +++ b/content/en/docs/How-to guides/clone-repository.md @@ -224,7 +224,7 @@ the [Git authentication section][pipelines-git] in the Pipelines documentation. - name: git-credentials description: My ssh credentials tasks: - - name: fetch-repo + - name: fetch-source taskRef: name: git-clone workspaces: diff --git a/content/en/docs/How-to guides/kaniko-build-push.md b/content/en/docs/How-to guides/kaniko-build-push.md index 9a60dfd9..d5055004 100644 --- a/content/en/docs/How-to guides/kaniko-build-push.md +++ b/content/en/docs/How-to guides/kaniko-build-push.md @@ -129,7 +129,7 @@ hub][tekton-hub]. tasks: ... - name: build-push - runAfter: ["fetch-repo"] + runAfter: ["fetch-source"] taskRef: name: kaniko workspaces: @@ -272,36 +272,36 @@ You are ready to install the Tasks and run the pipeline. 1. Monitor the Pipeline execution: ```bash - tkn pipelinerun logs clone-read-run -f + tkn pipelinerun logs clone-build-push-run -f ``` After a few seconds, the output confirms that the image was built and pushed successfully: ``` - [fetch-repo : clone] + '[' false '=' true ] - [fetch-repo : clone] + '[' false '=' true ] - [fetch-repo : clone] + '[' false '=' true ] - [fetch-repo : clone] + CHECKOUT_DIR=/workspace/output/ - [fetch-repo : clone] + '[' true '=' true ] - [fetch-repo : clone] + cleandir - [fetch-repo : clone] + '[' -d /workspace/output/ ] - [fetch-repo : clone] + rm -rf '/workspace/output//*' - [fetch-repo : clone] + rm -rf '/workspace/output//.[!.]*' - [fetch-repo : clone] + rm -rf '/workspace/output//..?*' - [fetch-repo : clone] + test -z - [fetch-repo : clone] + test -z - [fetch-repo : clone] + test -z - [fetch-repo : clone] + /ko-app/git-init '-url=https://github.com/google/docsy-example.git' '-revision=' '-refspec=' '-path=/workspace/output/' '-sslVerify=true' '-submodules=true' '-depth=1' '-sparseCheckoutDirectories=' - [fetch-repo : clone] {"level":"info","ts":1654637310.4419358,"caller":"git/git.go:170","msg":"Successfully cloned https://github.com/google/docsy-example.git @ 1c7f7e300c90cd690ca5be66b43fe58713bb21c9 (grafted, HEAD) in path /workspace/output/"} - [fetch-repo : clone] {"level":"info","ts":1654637320.384655,"caller":"git/git.go:208","msg":"Successfully initialized and updated submodules in path /workspace/output/"} - [fetch-repo : clone] + cd /workspace/output/ - [fetch-repo : clone] + git rev-parse HEAD - [fetch-repo : clone] + RESULT_SHA=1c7f7e300c90cd690ca5be66b43fe58713bb21c9 - [fetch-repo : clone] + EXIT_CODE=0 - [fetch-repo : clone] + '[' 0 '!=' 0 ] - [fetch-repo : clone] + printf '%s' 1c7f7e300c90cd690ca5be66b43fe58713bb21c9 - [fetch-repo : clone] + printf '%s' https://github.com/google/docsy-example.git + [fetch-source : clone] + '[' false '=' true ] + [fetch-source : clone] + '[' false '=' true ] + [fetch-source : clone] + '[' false '=' true ] + [fetch-source : clone] + CHECKOUT_DIR=/workspace/output/ + [fetch-source : clone] + '[' true '=' true ] + [fetch-source : clone] + cleandir + [fetch-source : clone] + '[' -d /workspace/output/ ] + [fetch-source : clone] + rm -rf '/workspace/output//*' + [fetch-source : clone] + rm -rf '/workspace/output//.[!.]*' + [fetch-source : clone] + rm -rf '/workspace/output//..?*' + [fetch-source : clone] + test -z + [fetch-source : clone] + test -z + [fetch-source : clone] + test -z + [fetch-source : clone] + /ko-app/git-init '-url=https://github.com/google/docsy-example.git' '-revision=' '-refspec=' '-path=/workspace/output/' '-sslVerify=true' '-submodules=true' '-depth=1' '-sparseCheckoutDirectories=' + [fetch-source : clone] {"level":"info","ts":1654637310.4419358,"caller":"git/git.go:170","msg":"Successfully cloned https://github.com/google/docsy-example.git @ 1c7f7e300c90cd690ca5be66b43fe58713bb21c9 (grafted, HEAD) in path /workspace/output/"} + [fetch-source : clone] {"level":"info","ts":1654637320.384655,"caller":"git/git.go:208","msg":"Successfully initialized and updated submodules in path /workspace/output/"} + [fetch-source : clone] + cd /workspace/output/ + [fetch-source : clone] + git rev-parse HEAD + [fetch-source : clone] + RESULT_SHA=1c7f7e300c90cd690ca5be66b43fe58713bb21c9 + [fetch-source : clone] + EXIT_CODE=0 + [fetch-source : clone] + '[' 0 '!=' 0 ] + [fetch-source : clone] + printf '%s' 1c7f7e300c90cd690ca5be66b43fe58713bb21c9 + [fetch-source : clone] + printf '%s' https://github.com/google/docsy-example.git [build-push : build-and-push] WARN [build-push : build-and-push] User provided docker configuration exists at /kaniko/.docker/config.json @@ -349,7 +349,7 @@ spec: - name: shared-data - name: docker-credentials tasks: - - name: fetch-repo + - name: fetch-source taskRef: name: git-clone workspaces: @@ -359,7 +359,7 @@ spec: - name: url value: $(params.repo-url) - name: build-push - runAfter: ["fetch-repo"] + runAfter: ["fetch-source"] taskRef: name: kaniko workspaces: