codefresh 0.78.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dockerignore +14 -0
- package/.eslintrc.js +20 -0
- package/.gitattributes +29 -0
- package/.nvmrc +1 -0
- package/Dockerfile +39 -0
- package/LICENSE +21 -0
- package/README.md +55 -0
- package/__mocks__/requestretry.js +35 -0
- package/brew/template.rb +15 -0
- package/check-version.js +13 -0
- package/cli.gif +0 -0
- package/codefresh-arm.yml +54 -0
- package/codefresh-release.yml +173 -0
- package/codefresh.yml +120 -0
- package/docs/archetypes/default.md +6 -0
- package/docs/config.toml +44 -0
- package/docs/content/_header.md +6 -0
- package/docs/content/_index.md +19 -0
- package/docs/content/contexts/spec/_index.md +28 -0
- package/docs/content/contexts/spec/config.md +30 -0
- package/docs/content/contexts/spec/helm-repository.md +16 -0
- package/docs/content/contexts/spec/secret-yaml.md +32 -0
- package/docs/content/contexts/spec/secret.md +30 -0
- package/docs/content/contexts/spec/yaml.md +30 -0
- package/docs/content/external-resources.md +8 -0
- package/docs/content/getting-started/_index.md +28 -0
- package/docs/content/installation/_index.md +13 -0
- package/docs/content/installation/docker.md +15 -0
- package/docs/content/installation/homebrew.md +29 -0
- package/docs/content/installation/npm.md +22 -0
- package/docs/content/installation/yarn.md +22 -0
- package/docs/content/more/_index.md +7 -0
- package/docs/content/operate on resources/_index.md +10 -0
- package/docs/content/pipelines/Run Pipeline.md +38 -0
- package/docs/content/pipelines/spec.md +190 -0
- package/docs/docs.spec.js +8 -0
- package/docs/index.js +407 -0
- package/docs/layouts/partials/menu-footer.html +13 -0
- package/docs/themes/docdock/LICENSE.md +22 -0
- package/docs/themes/docdock/README.md +129 -0
- package/docs/themes/docdock/archetypes/default.md +9 -0
- package/docs/themes/docdock/archetypes/slide.md +46 -0
- package/docs/themes/docdock/exampleSite/config.toml +68 -0
- package/docs/themes/docdock/exampleSite/content/_index.md +50 -0
- package/docs/themes/docdock/exampleSite/content/content-organisation/_index.md +138 -0
- package/docs/themes/docdock/exampleSite/content/content-organisation/customize-style/_index.md +66 -0
- package/docs/themes/docdock/exampleSite/content/content-organisation/customize-style/disable.md +24 -0
- package/docs/themes/docdock/exampleSite/content/content-organisation/customize-style/theme-variants.md +35 -0
- package/docs/themes/docdock/exampleSite/content/content-organisation/customize-style/themestyle.md +25 -0
- package/docs/themes/docdock/exampleSite/content/content-organisation/extramenu.md +28 -0
- package/docs/themes/docdock/exampleSite/content/content-organisation/logo.md +12 -0
- package/docs/themes/docdock/exampleSite/content/create-page/_index.md +54 -0
- package/docs/themes/docdock/exampleSite/content/create-page/homepage.md +8 -0
- package/docs/themes/docdock/exampleSite/content/create-page/myslide.md +48 -0
- package/docs/themes/docdock/exampleSite/content/create-page/page-images.md +28 -0
- package/docs/themes/docdock/exampleSite/content/create-page/page-slide.md +114 -0
- package/docs/themes/docdock/exampleSite/content/credits.md +44 -0
- package/docs/themes/docdock/exampleSite/content/getting-start/_index.md +12 -0
- package/docs/themes/docdock/exampleSite/content/getting-start/configuration.md +56 -0
- package/docs/themes/docdock/exampleSite/content/getting-start/installation.md +83 -0
- package/docs/themes/docdock/exampleSite/content/search/_index.md +13 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/_index.md +10 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/alert.md +30 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/BachGavotteShort.mp3 +0 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/Carroll_AliceAuPaysDesMerveilles.pdf +0 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/adivorciarsetoca00cape.pdf +0 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/hugo.png +0 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.files/movieselectricsheep-flock-244-32500-2.mp4 +0 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/attachments.md +59 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/button.md +37 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/_index.md +46 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/_index.md +6 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/children-1-1/_index.md +6 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/_index.md +6 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/_index.md +6 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-1/children-1-1/children-1-1-1/children-1-1-1-1/children-1-1-1-1-1/_index.md +6 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-2/_index.md +11 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-2/test3.md +6 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-3/_index.md +6 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/children-4/_index.md +7 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/children/test.md +6 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/excerpt-include.md +25 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/excerpt.md +39 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/expand.md +41 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/icon.md +1254 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/mermaid.md +98 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/notice.md +61 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/panel.md +60 -0
- package/docs/themes/docdock/exampleSite/content/shortcodes/revealjs.md +119 -0
- package/docs/themes/docdock/exampleSite/content/showcase.md +15 -0
- package/docs/themes/docdock/exampleSite/layouts/partials/custom-head.html +10 -0
- package/docs/themes/docdock/exampleSite/layouts/partials/menu-footer.html +13 -0
- package/docs/themes/docdock/exampleSite/layouts/shortcodes/ghcontributors.html +31 -0
- package/docs/themes/docdock/exampleSite/static/menu-entry-icon.png +0 -0
- package/docs/themes/docdock/exampleSite/static/showcase/bitfan.site.png +0 -0
- package/docs/themes/docdock/exampleSite/static/showcase/invincible.site.png +0 -0
- package/docs/themes/docdock/exampleSite/static/style-flex.png +0 -0
- package/docs/themes/docdock/exampleSite/static/style-original.png +0 -0
- package/docs/themes/docdock/exampleSite/static/variant-gold.png +0 -0
- package/docs/themes/docdock/exampleSite/static/variant-gray.png +0 -0
- package/docs/themes/docdock/exampleSite/static/variant-green.png +0 -0
- package/docs/themes/docdock/i18n/en.toml +44 -0
- package/docs/themes/docdock/i18n/es.toml +26 -0
- package/docs/themes/docdock/i18n/fr.toml +44 -0
- package/docs/themes/docdock/i18n/nb.toml +38 -0
- package/docs/themes/docdock/images/screenshot.png +0 -0
- package/docs/themes/docdock/images/tn.png +0 -0
- package/docs/themes/docdock/layouts/404.html +39 -0
- package/docs/themes/docdock/layouts/_default/baseof.html +32 -0
- package/docs/themes/docdock/layouts/_default/li.html +22 -0
- package/docs/themes/docdock/layouts/_default/list.html +20 -0
- package/docs/themes/docdock/layouts/_default/single.html +3 -0
- package/docs/themes/docdock/layouts/index.html +30 -0
- package/docs/themes/docdock/layouts/index.json +12 -0
- package/docs/themes/docdock/layouts/partials/breadcrumb.html +8 -0
- package/docs/themes/docdock/layouts/partials/custom-content-footer.html +6 -0
- package/docs/themes/docdock/layouts/partials/custom-footer.html +0 -0
- package/docs/themes/docdock/layouts/partials/custom-head.html +2 -0
- package/docs/themes/docdock/layouts/partials/flex/body-aftercontent.html +54 -0
- package/docs/themes/docdock/layouts/partials/flex/body-beforecontent.html +68 -0
- package/docs/themes/docdock/layouts/partials/flex/head.html +17 -0
- package/docs/themes/docdock/layouts/partials/flex/scripts.html +11 -0
- package/docs/themes/docdock/layouts/partials/flex/selectnavigation.html +58 -0
- package/docs/themes/docdock/layouts/partials/header.html +10 -0
- package/docs/themes/docdock/layouts/partials/language-selector.html +18 -0
- package/docs/themes/docdock/layouts/partials/menu-footer.html +0 -0
- package/docs/themes/docdock/layouts/partials/menu.html +82 -0
- package/docs/themes/docdock/layouts/partials/next-prev-page.html +44 -0
- package/docs/themes/docdock/layouts/partials/original/body-aftercontent.html +13 -0
- package/docs/themes/docdock/layouts/partials/original/body-beforecontent.html +128 -0
- package/docs/themes/docdock/layouts/partials/original/head.html +23 -0
- package/docs/themes/docdock/layouts/partials/original/scripts.html +10 -0
- package/docs/themes/docdock/layouts/partials/pagination.html +9 -0
- package/docs/themes/docdock/layouts/shortcodes/alert.html +6 -0
- package/docs/themes/docdock/layouts/shortcodes/anchor.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/anchorlink.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/attachmentlink.html +5 -0
- package/docs/themes/docdock/layouts/shortcodes/attachments.html +33 -0
- package/docs/themes/docdock/layouts/shortcodes/button.html +6 -0
- package/docs/themes/docdock/layouts/shortcodes/children.html +104 -0
- package/docs/themes/docdock/layouts/shortcodes/code.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/emoticon.html +29 -0
- package/docs/themes/docdock/layouts/shortcodes/excerpt-include.html +14 -0
- package/docs/themes/docdock/layouts/shortcodes/excerpt.html +7 -0
- package/docs/themes/docdock/layouts/shortcodes/expand.html +16 -0
- package/docs/themes/docdock/layouts/shortcodes/header.html +16 -0
- package/docs/themes/docdock/layouts/shortcodes/icon.html +13 -0
- package/docs/themes/docdock/layouts/shortcodes/image.html +5 -0
- package/docs/themes/docdock/layouts/shortcodes/info.html +10 -0
- package/docs/themes/docdock/layouts/shortcodes/label.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/mermaid.html +3 -0
- package/docs/themes/docdock/layouts/shortcodes/note.html +4 -0
- package/docs/themes/docdock/layouts/shortcodes/notice.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/pagelink.html +12 -0
- package/docs/themes/docdock/layouts/shortcodes/pagetreesearch.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/panel.html +5 -0
- package/docs/themes/docdock/layouts/shortcodes/recently-updated.html +7 -0
- package/docs/themes/docdock/layouts/shortcodes/relref.html +14 -0
- package/docs/themes/docdock/layouts/shortcodes/revealjs.html +66 -0
- package/docs/themes/docdock/layouts/shortcodes/section.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/task.html +10 -0
- package/docs/themes/docdock/layouts/shortcodes/tasklist.html +4 -0
- package/docs/themes/docdock/layouts/shortcodes/tip.html +10 -0
- package/docs/themes/docdock/layouts/shortcodes/toc.html +2 -0
- package/docs/themes/docdock/layouts/shortcodes/unknow.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/userlink.html +1 -0
- package/docs/themes/docdock/layouts/shortcodes/viewppt.html +5 -0
- package/docs/themes/docdock/layouts/shortcodes/viewxls.html +5 -0
- package/docs/themes/docdock/layouts/shortcodes/warning.html +12 -0
- package/docs/themes/docdock/layouts/shortcodes/well.html +1 -0
- package/docs/themes/docdock/layouts/slide/single.html +38 -0
- package/docs/themes/docdock/static/css/auto-complete.css +49 -0
- package/docs/themes/docdock/static/css/bootstrap.min.css +1884 -0
- package/docs/themes/docdock/static/css/featherlight.min.css +8 -0
- package/docs/themes/docdock/static/css/font-awesome.min.css +4 -0
- package/docs/themes/docdock/static/css/horsey.css +35 -0
- package/docs/themes/docdock/static/css/hybrid.css +102 -0
- package/docs/themes/docdock/static/css/nucleus.css +617 -0
- package/docs/themes/docdock/static/fonts/FontAwesome.otf +0 -0
- package/docs/themes/docdock/static/fonts/Inconsolata.eot +0 -0
- package/docs/themes/docdock/static/fonts/Inconsolata.svg +359 -0
- package/docs/themes/docdock/static/fonts/Inconsolata.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Inconsolata.woff +0 -0
- package/docs/themes/docdock/static/fonts/Lato-Bold.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Lato-Bold.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Lato-Regular.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Lato-Regular.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.eot +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.svg +1019 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.woff +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-Normal-webfont.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.eot +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.svg +918 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.woff +0 -0
- package/docs/themes/docdock/static/fonts/Novecentosanswide-UltraLight-webfont.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Roboto-Italic.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Roboto-Medium.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Roboto-Regular.ttf +0 -0
- package/docs/themes/docdock/static/fonts/RobotoMono-Medium.ttf +0 -0
- package/docs/themes/docdock/static/fonts/RobotoMono-Regular.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_200.eot +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_200.svg +332 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_200.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_200.woff +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_200.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_300.eot +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_300.svg +331 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_300.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_300.woff +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_300.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_500.eot +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_500.svg +333 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_500.ttf +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_500.woff +0 -0
- package/docs/themes/docdock/static/fonts/Work_Sans_500.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/fontawesome-webfont.eot +0 -0
- package/docs/themes/docdock/static/fonts/fontawesome-webfont.svg +2671 -0
- package/docs/themes/docdock/static/fonts/fontawesome-webfont.ttf +0 -0
- package/docs/themes/docdock/static/fonts/fontawesome-webfont.woff +0 -0
- package/docs/themes/docdock/static/fonts/fontawesome-webfont.woff2 +0 -0
- package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.eot +0 -0
- package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.svg +288 -0
- package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.woff +0 -0
- package/docs/themes/docdock/static/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/docs/themes/docdock/static/images/clippy.svg +4 -0
- package/docs/themes/docdock/static/images/favicon.png +0 -0
- package/docs/themes/docdock/static/images/gopher-404.jpg +0 -0
- package/docs/themes/docdock/static/js/auto-complete.js +223 -0
- package/docs/themes/docdock/static/js/clipboard.min.js +7 -0
- package/docs/themes/docdock/static/js/docdock.js +309 -0
- package/docs/themes/docdock/static/js/featherlight.min.js +8 -0
- package/docs/themes/docdock/static/js/highlight.pack.js +2 -0
- package/docs/themes/docdock/static/js/html5shiv-printshiv.min.js +4 -0
- package/docs/themes/docdock/static/js/jquery-2.x.min.js +4 -0
- package/docs/themes/docdock/static/js/lunr.min.js +6 -0
- package/docs/themes/docdock/static/js/modernizr.custom.71422.js +4 -0
- package/docs/themes/docdock/static/js/search.js +91 -0
- package/docs/themes/docdock/static/mermaid/mermaid.css +273 -0
- package/docs/themes/docdock/static/mermaid/mermaid.dark.css +275 -0
- package/docs/themes/docdock/static/mermaid/mermaid.forest.css +353 -0
- package/docs/themes/docdock/static/mermaid/mermaid.js +30 -0
- package/docs/themes/docdock/static/none.html +0 -0
- package/docs/themes/docdock/static/revealjs/.travis.yml +5 -0
- package/docs/themes/docdock/static/revealjs/CONTRIBUTING.md +23 -0
- package/docs/themes/docdock/static/revealjs/Gruntfile.js +192 -0
- package/docs/themes/docdock/static/revealjs/LICENSE +19 -0
- package/docs/themes/docdock/static/revealjs/README.md +1238 -0
- package/docs/themes/docdock/static/revealjs/bower.json +27 -0
- package/docs/themes/docdock/static/revealjs/css/print/paper.css +203 -0
- package/docs/themes/docdock/static/revealjs/css/print/pdf.css +178 -0
- package/docs/themes/docdock/static/revealjs/css/reveal.css +1555 -0
- package/docs/themes/docdock/static/revealjs/css/reveal.scss +1717 -0
- package/docs/themes/docdock/static/revealjs/css/theme/README.md +21 -0
- package/docs/themes/docdock/static/revealjs/css/theme/beige.css +268 -0
- package/docs/themes/docdock/static/revealjs/css/theme/black.css +264 -0
- package/docs/themes/docdock/static/revealjs/css/theme/blood.css +287 -0
- package/docs/themes/docdock/static/revealjs/css/theme/league.css +270 -0
- package/docs/themes/docdock/static/revealjs/css/theme/moon.css +268 -0
- package/docs/themes/docdock/static/revealjs/css/theme/night.css +262 -0
- package/docs/themes/docdock/static/revealjs/css/theme/serif.css +264 -0
- package/docs/themes/docdock/static/revealjs/css/theme/simple.css +267 -0
- package/docs/themes/docdock/static/revealjs/css/theme/sky.css +271 -0
- package/docs/themes/docdock/static/revealjs/css/theme/solarized.css +268 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/beige.scss +39 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/black.scss +49 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/blood.scss +78 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/league.scss +34 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/moon.scss +57 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/night.scss +34 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/serif.scss +35 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/simple.scss +43 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/sky.scss +46 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/solarized.scss +63 -0
- package/docs/themes/docdock/static/revealjs/css/theme/source/white.scss +49 -0
- package/docs/themes/docdock/static/revealjs/css/theme/template/mixins.scss +29 -0
- package/docs/themes/docdock/static/revealjs/css/theme/template/settings.scss +43 -0
- package/docs/themes/docdock/static/revealjs/css/theme/template/theme.scss +316 -0
- package/docs/themes/docdock/static/revealjs/css/theme/white.css +264 -0
- package/docs/themes/docdock/static/revealjs/demo.html +410 -0
- package/docs/themes/docdock/static/revealjs/index.html +49 -0
- package/docs/themes/docdock/static/revealjs/js/reveal.js +5239 -0
- package/docs/themes/docdock/static/revealjs/lib/css/zenburn.css +80 -0
- package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/LICENSE +2 -0
- package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/league-gothic.css +10 -0
- package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/league-gothic.eot +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/league-gothic.ttf +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/league-gothic/league-gothic.woff +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/LICENSE +45 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.eot +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.ttf +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.woff +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.eot +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.ttf +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.woff +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.eot +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.ttf +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.woff +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff +0 -0
- package/docs/themes/docdock/static/revealjs/lib/font/source-sans-pro/source-sans-pro.css +39 -0
- package/docs/themes/docdock/static/revealjs/lib/js/classList.js +2 -0
- package/docs/themes/docdock/static/revealjs/lib/js/head.min.js +9 -0
- package/docs/themes/docdock/static/revealjs/lib/js/html5shiv.js +7 -0
- package/docs/themes/docdock/static/revealjs/package.json +43 -0
- package/docs/themes/docdock/static/revealjs/plugin/highlight/highlight.js +77 -0
- package/docs/themes/docdock/static/revealjs/plugin/markdown/example.html +129 -0
- package/docs/themes/docdock/static/revealjs/plugin/markdown/example.md +31 -0
- package/docs/themes/docdock/static/revealjs/plugin/markdown/markdown.js +412 -0
- package/docs/themes/docdock/static/revealjs/plugin/markdown/marked.js +6 -0
- package/docs/themes/docdock/static/revealjs/plugin/math/math.js +67 -0
- package/docs/themes/docdock/static/revealjs/plugin/multiplex/client.js +13 -0
- package/docs/themes/docdock/static/revealjs/plugin/multiplex/index.js +64 -0
- package/docs/themes/docdock/static/revealjs/plugin/multiplex/master.js +34 -0
- package/docs/themes/docdock/static/revealjs/plugin/multiplex/package.json +19 -0
- package/docs/themes/docdock/static/revealjs/plugin/notes/notes.html +759 -0
- package/docs/themes/docdock/static/revealjs/plugin/notes/notes.js +155 -0
- package/docs/themes/docdock/static/revealjs/plugin/notes-server/client.js +65 -0
- package/docs/themes/docdock/static/revealjs/plugin/notes-server/index.js +69 -0
- package/docs/themes/docdock/static/revealjs/plugin/notes-server/notes.html +585 -0
- package/docs/themes/docdock/static/revealjs/plugin/print-pdf/print-pdf.js +69 -0
- package/docs/themes/docdock/static/revealjs/plugin/search/search.js +206 -0
- package/docs/themes/docdock/static/revealjs/plugin/zoom-js/zoom.js +272 -0
- package/docs/themes/docdock/static/revealjs/test/examples/assets/image1.png +0 -0
- package/docs/themes/docdock/static/revealjs/test/examples/assets/image2.png +0 -0
- package/docs/themes/docdock/static/revealjs/test/examples/barebones.html +41 -0
- package/docs/themes/docdock/static/revealjs/test/examples/embedded-media.html +49 -0
- package/docs/themes/docdock/static/revealjs/test/examples/math.html +185 -0
- package/docs/themes/docdock/static/revealjs/test/examples/slide-backgrounds.html +144 -0
- package/docs/themes/docdock/static/revealjs/test/examples/slide-transitions.html +101 -0
- package/docs/themes/docdock/static/revealjs/test/qunit-1.12.0.css +244 -0
- package/docs/themes/docdock/static/revealjs/test/qunit-1.12.0.js +2212 -0
- package/docs/themes/docdock/static/revealjs/test/simple.md +12 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-element-attributes.html +134 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-element-attributes.js +46 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-external.html +36 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-external.js +24 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-options.html +41 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-options.js +26 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-slide-attributes.html +128 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown-slide-attributes.js +47 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown.html +52 -0
- package/docs/themes/docdock/static/revealjs/test/test-markdown.js +15 -0
- package/docs/themes/docdock/static/revealjs/test/test-pdf.html +83 -0
- package/docs/themes/docdock/static/revealjs/test/test-pdf.js +15 -0
- package/docs/themes/docdock/static/revealjs/test/test.html +86 -0
- package/docs/themes/docdock/static/revealjs/test/test.js +597 -0
- package/docs/themes/docdock/static/scss/flex/article.scss +356 -0
- package/docs/themes/docdock/static/scss/flex/fonts.scss +38 -0
- package/docs/themes/docdock/static/scss/flex/footer.scss +45 -0
- package/docs/themes/docdock/static/scss/flex/header.scss +89 -0
- package/docs/themes/docdock/static/scss/flex/main.scss +164 -0
- package/docs/themes/docdock/static/scss/flex/medias.scss +74 -0
- package/docs/themes/docdock/static/scss/flex/menu.scss +126 -0
- package/docs/themes/docdock/static/scss/flex/shortcode.children.scss +34 -0
- package/docs/themes/docdock/static/scss/flex/shortcode.notice.scss +63 -0
- package/docs/themes/docdock/static/scss/flex/style.scss +14 -0
- package/docs/themes/docdock/static/scss/original/_colours.scss +14 -0
- package/docs/themes/docdock/static/scss/original/_functions.scss +89 -0
- package/docs/themes/docdock/static/scss/original/_variables.scss +137 -0
- package/docs/themes/docdock/static/scss/original/fonts.scss +23 -0
- package/docs/themes/docdock/static/scss/original/main.scss +1233 -0
- package/docs/themes/docdock/static/scss/original/print.scss +29 -0
- package/docs/themes/docdock/static/scss/original/responsive.scss +124 -0
- package/docs/themes/docdock/static/scss/original/shortcodes.scss +32 -0
- package/docs/themes/docdock/static/scss/original/sidebar.scss +276 -0
- package/docs/themes/docdock/static/scss/original/style.scss +16 -0
- package/docs/themes/docdock/static/theme-flex/ribbon.png +0 -0
- package/docs/themes/docdock/static/theme-flex/script.js +277 -0
- package/docs/themes/docdock/static/theme-flex/style.css +728 -0
- package/docs/themes/docdock/static/theme-original/script.js +133 -0
- package/docs/themes/docdock/static/theme-original/style.css +1411 -0
- package/docs/themes/docdock/static/theme-original/variant-blue.css +0 -0
- package/docs/themes/docdock/static/theme-original/variant-gold.css +61 -0
- package/docs/themes/docdock/static/theme-original/variant-gray.css +61 -0
- package/docs/themes/docdock/static/theme-original/variant-green.css +61 -0
- package/docs/themes/docdock/theme.toml +22 -0
- package/lib/binary/components.js +77 -0
- package/lib/binary/downloader.js +170 -0
- package/lib/binary/index.js +11 -0
- package/lib/binary/runner.js +30 -0
- package/lib/interface/cli/Command.js +331 -0
- package/lib/interface/cli/codefresh +24 -0
- package/lib/interface/cli/commad-line-interface.js +90 -0
- package/lib/interface/cli/commands/agent/apply.cmd.js +61 -0
- package/lib/interface/cli/commands/agent/create.cmd.js +39 -0
- package/lib/interface/cli/commands/agent/delete.cmd.js +40 -0
- package/lib/interface/cli/commands/agent/get.cmd.js +44 -0
- package/lib/interface/cli/commands/agent/helper.js +28 -0
- package/lib/interface/cli/commands/agent/install.cmd.js +205 -0
- package/lib/interface/cli/commands/agent/uninstall.cmd.js +92 -0
- package/lib/interface/cli/commands/analyzer/analyze.cmd.js +34 -0
- package/lib/interface/cli/commands/analyzer/analyzer.logic.js +24 -0
- package/lib/interface/cli/commands/annotation/annotation.logic.js +59 -0
- package/lib/interface/cli/commands/annotation/annotation.sdk.spec.js +64 -0
- package/lib/interface/cli/commands/annotation/create.cmd.js +39 -0
- package/lib/interface/cli/commands/annotation/delete.cmd.js +38 -0
- package/lib/interface/cli/commands/annotation/get.cmd.js +42 -0
- package/lib/interface/cli/commands/app-proxy/helper.js +63 -0
- package/lib/interface/cli/commands/app-proxy/install.cmd.js +204 -0
- package/lib/interface/cli/commands/app-proxy/uninstall.cmd.js +175 -0
- package/lib/interface/cli/commands/app-proxy/upgrade.cmd.js +110 -0
- package/lib/interface/cli/commands/audit/download.cmd.js +57 -0
- package/lib/interface/cli/commands/auth/create-context.cmd.js +54 -0
- package/lib/interface/cli/commands/auth/current-context.cmd.js +25 -0
- package/lib/interface/cli/commands/auth/get-contexts.cmd.js +27 -0
- package/lib/interface/cli/commands/auth/use-context.cmd.js +42 -0
- package/lib/interface/cli/commands/board/apply.cmd.js +61 -0
- package/lib/interface/cli/commands/board/board.sdk.spec.js +87 -0
- package/lib/interface/cli/commands/board/create.cmd.js +33 -0
- package/lib/interface/cli/commands/board/delete.cmd.js +42 -0
- package/lib/interface/cli/commands/board/get.cmd.js +62 -0
- package/lib/interface/cli/commands/cli-config/cli-config.cmd.js +41 -0
- package/lib/interface/cli/commands/cli-config/ops/get.cmd.js +52 -0
- package/lib/interface/cli/commands/cli-config/ops/help.cmd.js +36 -0
- package/lib/interface/cli/commands/cli-config/ops/profile.cmd.js +49 -0
- package/lib/interface/cli/commands/cli-config/ops/set.cmd.js +65 -0
- package/lib/interface/cli/commands/cluster/cluster.sdk.spec.js +61 -0
- package/lib/interface/cli/commands/cluster/create.cmd.js +85 -0
- package/lib/interface/cli/commands/cluster/delete.cmd.js +39 -0
- package/lib/interface/cli/commands/cluster/get.cmd.js +30 -0
- package/lib/interface/cli/commands/completion/bash.sh.hbs +27 -0
- package/lib/interface/cli/commands/completion/completion.cmd.js +66 -0
- package/lib/interface/cli/commands/completion/zsh.sh.hbs +20 -0
- package/lib/interface/cli/commands/components/update.cmd.js +30 -0
- package/lib/interface/cli/commands/composition/composition.sdk.spec.js +95 -0
- package/lib/interface/cli/commands/composition/create.cmd.js +67 -0
- package/lib/interface/cli/commands/composition/create.completion.js +15 -0
- package/lib/interface/cli/commands/composition/delete.cmd.js +40 -0
- package/lib/interface/cli/commands/composition/get.cmd.js +43 -0
- package/lib/interface/cli/commands/composition/replace.cmd.js +76 -0
- package/lib/interface/cli/commands/composition/replace.completion.js +15 -0
- package/lib/interface/cli/commands/context/apply.cmd.js +51 -0
- package/lib/interface/cli/commands/context/context.sdk.spec.js +158 -0
- package/lib/interface/cli/commands/context/create/createConfig.cmd.js +54 -0
- package/lib/interface/cli/commands/context/create/createSecret.cmd.js +54 -0
- package/lib/interface/cli/commands/context/create/createSecretYaml.cmd.js +53 -0
- package/lib/interface/cli/commands/context/create/createYaml.cmd.js +53 -0
- package/lib/interface/cli/commands/context/create/git/base.cmd.js +38 -0
- package/lib/interface/cli/commands/context/create/git/types/bitbucket.cmd.js +64 -0
- package/lib/interface/cli/commands/context/create/git/types/github.cmd.js +79 -0
- package/lib/interface/cli/commands/context/create/git/types/gitlab.cmd.js +71 -0
- package/lib/interface/cli/commands/context/create/git/types/stash.cmd.js +69 -0
- package/lib/interface/cli/commands/context/create/helm-repo/base.cmd.js +24 -0
- package/lib/interface/cli/commands/context/create/helm-repo/types/http.cmd.js +60 -0
- package/lib/interface/cli/commands/context/create/helm-repo/types/s3.cmd.js +97 -0
- package/lib/interface/cli/commands/context/create/secret-store/base.cmd.js +33 -0
- package/lib/interface/cli/commands/context/create/secret-store/types/hashicorp-vault.cmd.js +141 -0
- package/lib/interface/cli/commands/context/create/secret-store/types/kubernetes-runtime.cmd.js +67 -0
- package/lib/interface/cli/commands/context/create/secret-store/types/kubernetes.cmd.js +67 -0
- package/lib/interface/cli/commands/context/create.cmd.js +23 -0
- package/lib/interface/cli/commands/context/delete.cmd.js +39 -0
- package/lib/interface/cli/commands/context/get.cmd.js +68 -0
- package/lib/interface/cli/commands/environment/delete.cmd.js +28 -0
- package/lib/interface/cli/commands/environment/environment.sdk.spec.js +40 -0
- package/lib/interface/cli/commands/environment/get.cmd.js +43 -0
- package/lib/interface/cli/commands/gitops/argocd/install.js +9 -0
- package/lib/interface/cli/commands/gitops/argocd/uninstall.js +11 -0
- package/lib/interface/cli/commands/gitops/argocd/upgrade.js +9 -0
- package/lib/interface/cli/commands/gitops/codefresh/install.js +50 -0
- package/lib/interface/cli/commands/gitops/codefresh/uninstall.js +14 -0
- package/lib/interface/cli/commands/gitops/codefresh/upgrade.js +9 -0
- package/lib/interface/cli/commands/gitops/common/install.js +62 -0
- package/lib/interface/cli/commands/gitops/common/uninstall.js +39 -0
- package/lib/interface/cli/commands/gitops/common/upgrade.js +45 -0
- package/lib/interface/cli/commands/gitops/install.cmd.js +111 -0
- package/lib/interface/cli/commands/gitops/install.spec.js +77 -0
- package/lib/interface/cli/commands/gitops/uninstall.cmd.js +56 -0
- package/lib/interface/cli/commands/gitops/upgrade.cmd.js +56 -0
- package/lib/interface/cli/commands/helm/chart/helm-charts.sdk.spec.js +65 -0
- package/lib/interface/cli/commands/helm/chart/install-chart.cmd.js +103 -0
- package/lib/interface/cli/commands/helm/chart/promote-chart.cmd.js +123 -0
- package/lib/interface/cli/commands/helm/helm.sdk.spec.js +81 -0
- package/lib/interface/cli/commands/helm/release/delete-release.cmd.js +102 -0
- package/lib/interface/cli/commands/helm/release/helm-releases.sdk.spec.js +53 -0
- package/lib/interface/cli/commands/helm/release/rollback-release.cmd.js +87 -0
- package/lib/interface/cli/commands/helm/release/test-release.cmd.js +93 -0
- package/lib/interface/cli/commands/helm/release/util.js +16 -0
- package/lib/interface/cli/commands/helm/repo/apply.cmd.js +54 -0
- package/lib/interface/cli/commands/helm/repo/create.cmd.js +46 -0
- package/lib/interface/cli/commands/helm/repo/delete.cmd.js +37 -0
- package/lib/interface/cli/commands/helm/repo/get.cmd.js +61 -0
- package/lib/interface/cli/commands/helm/repo/helm-repo.sdk.spec.js +58 -0
- package/lib/interface/cli/commands/helm/set-helm-config.cmd.js +93 -0
- package/lib/interface/cli/commands/hybrid/InstallationPlan.js +216 -0
- package/lib/interface/cli/commands/hybrid/delete.cmd.js +336 -0
- package/lib/interface/cli/commands/hybrid/execute-test-pipeline.cmd.js +37 -0
- package/lib/interface/cli/commands/hybrid/helper.js +1122 -0
- package/lib/interface/cli/commands/hybrid/info.cmd.js +27 -0
- package/lib/interface/cli/commands/hybrid/init.cmd.js +958 -0
- package/lib/interface/cli/commands/hybrid/installation-process.js +51 -0
- package/lib/interface/cli/commands/hybrid/key-helper.js +82 -0
- package/lib/interface/cli/commands/hybrid/migration.js +192 -0
- package/lib/interface/cli/commands/hybrid/pipeline-helper.js +71 -0
- package/lib/interface/cli/commands/hybrid/upgrade.cmd.js +195 -0
- package/lib/interface/cli/commands/image/annotate.cmd.js +61 -0
- package/lib/interface/cli/commands/image/get.cmd.js +122 -0
- package/lib/interface/cli/commands/image/image.sdk.spec.js +134 -0
- package/lib/interface/cli/commands/image/tag.cmd.js +50 -0
- package/lib/interface/cli/commands/image/untag.cmd.js +47 -0
- package/lib/interface/cli/commands/imagePullSecret/generate.cmd.js +49 -0
- package/lib/interface/cli/commands/imagePullSecret/imagePullSecret.sdk.spec.js +21 -0
- package/lib/interface/cli/commands/monitor/install.cmd.js +160 -0
- package/lib/interface/cli/commands/monitor/uninstall.cmd.js +78 -0
- package/lib/interface/cli/commands/offline-logs/base.cmd.js +33 -0
- package/lib/interface/cli/commands/offline-logs/ensure-index.cmd.js +44 -0
- package/lib/interface/cli/commands/offline-logs/ensure-index.spec.js +76 -0
- package/lib/interface/cli/commands/offline-logs/offload-to-collection.cmd.js +188 -0
- package/lib/interface/cli/commands/offline-logs/offload-to-file.cmd.js +175 -0
- package/lib/interface/cli/commands/offline-logs/offload-to-file.spec.js +59 -0
- package/lib/interface/cli/commands/offline-logs/utils.js +159 -0
- package/lib/interface/cli/commands/pipeline/delete.cmd.js +31 -0
- package/lib/interface/cli/commands/pipeline/get.cmd.js +125 -0
- package/lib/interface/cli/commands/pipeline/get.completion.js +14 -0
- package/lib/interface/cli/commands/pipeline/pipeline.sdk.spec.js +137 -0
- package/lib/interface/cli/commands/pipeline/run.base.js +153 -0
- package/lib/interface/cli/commands/pipeline/run.cf.js +58 -0
- package/lib/interface/cli/commands/pipeline/run.cmd.js +165 -0
- package/lib/interface/cli/commands/pipeline/run.completion.js +15 -0
- package/lib/interface/cli/commands/pipeline/run.local.js +200 -0
- package/lib/interface/cli/commands/project/apply.cmd.js +92 -0
- package/lib/interface/cli/commands/project/create.cmd.js +70 -0
- package/lib/interface/cli/commands/project/delete.cmd.js +39 -0
- package/lib/interface/cli/commands/project/get.cmd.js +67 -0
- package/lib/interface/cli/commands/project/project.sdk.spec.js +111 -0
- package/lib/interface/cli/commands/registry/create/create.standard.cmd.js +53 -0
- package/lib/interface/cli/commands/registry/create.cmd.js +20 -0
- package/lib/interface/cli/commands/registry/delete.cmd.js +29 -0
- package/lib/interface/cli/commands/registry/get.cmd.js +30 -0
- package/lib/interface/cli/commands/registry/registry.sdk.spec.js +43 -0
- package/lib/interface/cli/commands/repo/add.cmd.js +90 -0
- package/lib/interface/cli/commands/repo/delete.cmd.js +43 -0
- package/lib/interface/cli/commands/repo/get.cmd.js +101 -0
- package/lib/interface/cli/commands/repo/repo.sdk.spec.js +94 -0
- package/lib/interface/cli/commands/root/add.cmd.js +18 -0
- package/lib/interface/cli/commands/root/annotate.cmd.js +17 -0
- package/lib/interface/cli/commands/root/apply.cmd.js +38 -0
- package/lib/interface/cli/commands/root/apply.completion.js +15 -0
- package/lib/interface/cli/commands/root/auth.cmd.js +31 -0
- package/lib/interface/cli/commands/root/components.cmd.js +17 -0
- package/lib/interface/cli/commands/root/create.cmd.js +42 -0
- package/lib/interface/cli/commands/root/create.completion.js +15 -0
- package/lib/interface/cli/commands/root/delete.cmd.js +52 -0
- package/lib/interface/cli/commands/root/delete.completion.js +15 -0
- package/lib/interface/cli/commands/root/diff.cmd.js +38 -0
- package/lib/interface/cli/commands/root/diff.completion.js +15 -0
- package/lib/interface/cli/commands/root/download.cmd.js +18 -0
- package/lib/interface/cli/commands/root/generate.cmd.js +18 -0
- package/lib/interface/cli/commands/root/get.cmd.js +72 -0
- package/lib/interface/cli/commands/root/get.completion.js +19 -0
- package/lib/interface/cli/commands/root/install.cmd.js +17 -0
- package/lib/interface/cli/commands/root/replace.cmd.js +72 -0
- package/lib/interface/cli/commands/root/replace.completion.js +15 -0
- package/lib/interface/cli/commands/root/root.sdk.spec.js +197 -0
- package/lib/interface/cli/commands/root/runner.cmd.js +18 -0
- package/lib/interface/cli/commands/root/synchronize.cmd.js +17 -0
- package/lib/interface/cli/commands/root/uninstall.cmd.js +17 -0
- package/lib/interface/cli/commands/root/upgrade.cmd.js +38 -0
- package/lib/interface/cli/commands/root/validate.cmd.js +119 -0
- package/lib/interface/cli/commands/root/validate.completion.js +10 -0
- package/lib/interface/cli/commands/root/version.cmd.js +48 -0
- package/lib/interface/cli/commands/runtimeEnvironments/apply.cmd.js +111 -0
- package/lib/interface/cli/commands/runtimeEnvironments/attach.cmd.js +161 -0
- package/lib/interface/cli/commands/runtimeEnvironments/create.cmd.js +23 -0
- package/lib/interface/cli/commands/runtimeEnvironments/delete.cmd.js +35 -0
- package/lib/interface/cli/commands/runtimeEnvironments/diff.cmd.js +64 -0
- package/lib/interface/cli/commands/runtimeEnvironments/get.cmd.js +76 -0
- package/lib/interface/cli/commands/runtimeEnvironments/install.cmd.js +312 -0
- package/lib/interface/cli/commands/runtimeEnvironments/runtimeEnvironments.sdk.spec.js +61 -0
- package/lib/interface/cli/commands/runtimeEnvironments/uninstall.cmd.js +149 -0
- package/lib/interface/cli/commands/section/apply.cmd.js +85 -0
- package/lib/interface/cli/commands/section/create.cmd.js +69 -0
- package/lib/interface/cli/commands/section/delete.cmd.js +61 -0
- package/lib/interface/cli/commands/section/get.cmd.js +79 -0
- package/lib/interface/cli/commands/section/section.sdk.spec.js +143 -0
- package/lib/interface/cli/commands/step/delete.cmd.js +30 -0
- package/lib/interface/cli/commands/step/get.cmd.js +131 -0
- package/lib/interface/cli/commands/step/get.completion.js +14 -0
- package/lib/interface/cli/commands/step/step.sdk.spec.js +67 -0
- package/lib/interface/cli/commands/systemRuntimeEnvironments/apply.cmd.js +69 -0
- package/lib/interface/cli/commands/systemRuntimeEnvironments/delete.cmd.js +44 -0
- package/lib/interface/cli/commands/systemRuntimeEnvironments/diff.cmd.js +74 -0
- package/lib/interface/cli/commands/systemRuntimeEnvironments/get.cmd.js +103 -0
- package/lib/interface/cli/commands/systemRuntimeEnvironments/systemRuntimeEnvironments.sdk.spec.js +128 -0
- package/lib/interface/cli/commands/team/add.user.cmd.js +39 -0
- package/lib/interface/cli/commands/team/create.cmd.js +53 -0
- package/lib/interface/cli/commands/team/get.cmd.js +30 -0
- package/lib/interface/cli/commands/team/remove.user.cmd.js +39 -0
- package/lib/interface/cli/commands/team/synchronize.cmd.js +76 -0
- package/lib/interface/cli/commands/team/team.sdk.spec.js +65 -0
- package/lib/interface/cli/commands/tokens/apply.cmd.js +50 -0
- package/lib/interface/cli/commands/tokens/create.cmd.js +67 -0
- package/lib/interface/cli/commands/tokens/delete.cmd.js +43 -0
- package/lib/interface/cli/commands/tokens/get.cmd.js +38 -0
- package/lib/interface/cli/commands/tokens/tokens.sdk.spec.js +43 -0
- package/lib/interface/cli/commands/trigger/create.cmd.js +44 -0
- package/lib/interface/cli/commands/trigger/delete.cmd.js +39 -0
- package/lib/interface/cli/commands/trigger/event/create.cmd.js +60 -0
- package/lib/interface/cli/commands/trigger/event/delete.cmd.js +34 -0
- package/lib/interface/cli/commands/trigger/event/get.cmd.js +59 -0
- package/lib/interface/cli/commands/trigger/event/trigger-event.sdk.spec.js +51 -0
- package/lib/interface/cli/commands/trigger/get.cmd.js +47 -0
- package/lib/interface/cli/commands/trigger/trigger.sdk.spec.js +73 -0
- package/lib/interface/cli/commands/trigger/type/get.cmd.js +54 -0
- package/lib/interface/cli/commands/trigger/type/trigger-type.sdk.spec.js +33 -0
- package/lib/interface/cli/commands/workflow/approve.cmd.js +31 -0
- package/lib/interface/cli/commands/workflow/approve.cmd.spec.js +47 -0
- package/lib/interface/cli/commands/workflow/deny.cmd.js +31 -0
- package/lib/interface/cli/commands/workflow/deny.cmd.spec.js +47 -0
- package/lib/interface/cli/commands/workflow/get.cmd.js +161 -0
- package/lib/interface/cli/commands/workflow/logs.cmd.js +38 -0
- package/lib/interface/cli/commands/workflow/restart.cmd.js +37 -0
- package/lib/interface/cli/commands/workflow/terminate.cmd.js +31 -0
- package/lib/interface/cli/commands/workflow/wait.cmd.js +77 -0
- package/lib/interface/cli/commands/workflow/workflow-data-item/create.cmd.js +44 -0
- package/lib/interface/cli/commands/workflow/workflow-data-item/get.cmd.js +72 -0
- package/lib/interface/cli/commands/workflow/workflow.sdk.spec.js +123 -0
- package/lib/interface/cli/completion/completion.spec.js +313 -0
- package/lib/interface/cli/completion/generate +102 -0
- package/lib/interface/cli/completion/helpers.js +90 -0
- package/lib/interface/cli/completion/index.js +89 -0
- package/lib/interface/cli/completion/tree.json +1 -0
- package/lib/interface/cli/defaults.js +18 -0
- package/lib/interface/cli/helpers/auth.js +62 -0
- package/lib/interface/cli/helpers/cli-config.js +110 -0
- package/lib/interface/cli/helpers/entitiesManifests.js +60 -0
- package/lib/interface/cli/helpers/general.js +235 -0
- package/lib/interface/cli/helpers/helm.js +51 -0
- package/lib/interface/cli/helpers/helpers.sdk.spec.js +201 -0
- package/lib/interface/cli/helpers/helpers.unit.spec.js +105 -0
- package/lib/interface/cli/helpers/image.js +66 -0
- package/lib/interface/cli/helpers/kubernetes.js +61 -0
- package/lib/interface/cli/helpers/logs.js +99 -0
- package/lib/interface/cli/helpers/progressEvents.js +25 -0
- package/lib/interface/cli/helpers/sys-re.js +76 -0
- package/lib/interface/cli/helpers/validation.js +92 -0
- package/lib/logic/cli-config/Manager.js +187 -0
- package/lib/logic/cli-config/Model.js +82 -0
- package/lib/logic/cli-config/errors/MultiplePropertiesError.js +8 -0
- package/lib/logic/cli-config/errors/NoPropertyError.js +8 -0
- package/lib/logic/cli-config/errors/NotFullPropertyError.js +8 -0
- package/lib/logic/cli-config/errors/PipelineValidationError.js +12 -0
- package/lib/logic/cli-config/errors/SchemaValidationError.js +14 -0
- package/lib/logic/cli-config/errors/awaitTo.js +16 -0
- package/lib/logic/cli-config/errors/helpers.js +23 -0
- package/lib/logic/cli-config/errors/index.js +13 -0
- package/lib/logic/cli-config/manager.spec.js +152 -0
- package/lib/logic/cli-config/schema.json +61 -0
- package/lib/logic/entities/Agent.js +52 -0
- package/lib/logic/entities/Annotation.js +24 -0
- package/lib/logic/entities/Board.js +22 -0
- package/lib/logic/entities/Cluster.js +22 -0
- package/lib/logic/entities/CodefreshRepo.js +22 -0
- package/lib/logic/entities/Composition.js +22 -0
- package/lib/logic/entities/Context.js +31 -0
- package/lib/logic/entities/Entity.js +48 -0
- package/lib/logic/entities/Environment.js +38 -0
- package/lib/logic/entities/GitRepo.js +21 -0
- package/lib/logic/entities/HelmRepo.js +23 -0
- package/lib/logic/entities/Image.js +13 -0
- package/lib/logic/entities/Pipeline.js +22 -0
- package/lib/logic/entities/Project.js +25 -0
- package/lib/logic/entities/Registry.js +35 -0
- package/lib/logic/entities/RuntimeEnvironments.js +30 -0
- package/lib/logic/entities/Section.js +23 -0
- package/lib/logic/entities/StepType.js +27 -0
- package/lib/logic/entities/StepTypeVersion.js +19 -0
- package/lib/logic/entities/Team.js +36 -0
- package/lib/logic/entities/Token.js +25 -0
- package/lib/logic/entities/Trigger.js +21 -0
- package/lib/logic/entities/TriggerEvent.js +28 -0
- package/lib/logic/entities/TriggerType.js +25 -0
- package/lib/logic/entities/Workflow.js +63 -0
- package/lib/logic/entities/WorkflowDataItem.js +48 -0
- package/lib/logic/index.js +7 -0
- package/lib/logic/sdk/index.js +5 -0
- package/lib/output/Formatter.js +42 -0
- package/lib/output/Output.js +88 -0
- package/lib/output/Style.js +96 -0
- package/lib/output/__mocks__/Output.js +8 -0
- package/lib/output/formatters/Annotations.formatter.js +7 -0
- package/lib/output/formatters/Board.formatter.js +7 -0
- package/lib/output/formatters/CodefreshRepo.formatter.js +7 -0
- package/lib/output/formatters/Composition.formatter.js +8 -0
- package/lib/output/formatters/Environment.formatter.js +17 -0
- package/lib/output/formatters/GitRepo.formatter.js +7 -0
- package/lib/output/formatters/HelmRepo.formatter.js +9 -0
- package/lib/output/formatters/Image.formatter.js +12 -0
- package/lib/output/formatters/Pipeline.formatter.js +8 -0
- package/lib/output/formatters/Project.formatter.js +10 -0
- package/lib/output/formatters/Registry.formatter.js +7 -0
- package/lib/output/formatters/Section.formatter.js +8 -0
- package/lib/output/formatters/StepType.formatter.js +8 -0
- package/lib/output/formatters/Team.formatter.js +13 -0
- package/lib/output/formatters/Token.formatter.js +11 -0
- package/lib/output/formatters/TriggerEvent.formatter.js +12 -0
- package/lib/output/formatters/TriggerType.formatter.js +12 -0
- package/lib/output/formatters/Workflow.formatter.js +28 -0
- package/lib/output/formatters/index.js +38 -0
- package/lib/output/types/id.output.js +16 -0
- package/lib/output/types/json.output.js +22 -0
- package/lib/output/types/name.output.js +16 -0
- package/lib/output/types/table.output.js +107 -0
- package/lib/output/types/table.output.spec.js +93 -0
- package/lib/output/types/yaml.output.js +30 -0
- package/openapi.json +8645 -0
- package/package.json +105 -0
- package/run-check-version.js +3 -0
- package/test-setup.js +34 -0
- package/yarn.lock +6124 -0
package/.dockerignore
ADDED
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
'plugins': [
|
|
3
|
+
'jest'
|
|
4
|
+
],
|
|
5
|
+
'extends': 'airbnb-base',
|
|
6
|
+
'rules': {
|
|
7
|
+
'indent': ['error', 4, { 'SwitchCase': 1 }],
|
|
8
|
+
'no-underscore-dangle': [0],
|
|
9
|
+
'max-len': ['error', {
|
|
10
|
+
'code': 140,
|
|
11
|
+
'ignoreComments': true
|
|
12
|
+
}],
|
|
13
|
+
'no-console': 0,
|
|
14
|
+
'object-curly-newline': 0,
|
|
15
|
+
'no-return-await': 'off',
|
|
16
|
+
},
|
|
17
|
+
'env': {
|
|
18
|
+
'jest': true,
|
|
19
|
+
}
|
|
20
|
+
};
|
package/.gitattributes
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Set the default behavior, in case people don't have core.autocrlf set.
|
|
2
|
+
* text eol=lf
|
|
3
|
+
|
|
4
|
+
# (binary is a macro for -text -diff)
|
|
5
|
+
*.png binary
|
|
6
|
+
*.jpg binary
|
|
7
|
+
*.jpeg binary
|
|
8
|
+
*.svg binary
|
|
9
|
+
*.gif binary
|
|
10
|
+
*.ico binary
|
|
11
|
+
*.mov binary
|
|
12
|
+
*.mp4 binary
|
|
13
|
+
*.mp3 binary
|
|
14
|
+
*.flv binary
|
|
15
|
+
*.fla binary
|
|
16
|
+
*.swf binary
|
|
17
|
+
*.gz binary
|
|
18
|
+
*.zip binary
|
|
19
|
+
*.7z binary
|
|
20
|
+
*.ttf binary
|
|
21
|
+
*.eot binary
|
|
22
|
+
*.otf binary
|
|
23
|
+
*.woff binary
|
|
24
|
+
*.woff2 binary
|
|
25
|
+
*.pyc binary
|
|
26
|
+
*.pdf binary
|
|
27
|
+
*.ez binary
|
|
28
|
+
*.bz2 binary
|
|
29
|
+
*.swp binary
|
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
v10.23.0
|
package/Dockerfile
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# go hub binary
|
|
2
|
+
FROM golang:alpine as go
|
|
3
|
+
RUN apk --update add ca-certificates git
|
|
4
|
+
RUN go get github.com/github/hub
|
|
5
|
+
|
|
6
|
+
# python yq binary
|
|
7
|
+
FROM six8/pyinstaller-alpine:alpine-3.6-pyinstaller-v3.4 as yq
|
|
8
|
+
ARG YQ_VERSION=2.10.0
|
|
9
|
+
ENV PATH="/pyinstaller:$PATH"
|
|
10
|
+
RUN pip install yq==${YQ_VERSION}
|
|
11
|
+
RUN pyinstaller --noconfirm --onefile --log-level DEBUG --clean --distpath /tmp/ $(which yq)
|
|
12
|
+
|
|
13
|
+
# Main
|
|
14
|
+
FROM node:10.23.0-alpine3.11
|
|
15
|
+
|
|
16
|
+
RUN apk --update add --no-cache ca-certificates git curl bash yarn jq=1.6-r0
|
|
17
|
+
|
|
18
|
+
COPY --from=go /go/bin/hub /usr/local/bin/hub
|
|
19
|
+
COPY --from=yq /tmp/yq /usr/local/bin/yq
|
|
20
|
+
|
|
21
|
+
WORKDIR /cf-cli
|
|
22
|
+
|
|
23
|
+
COPY package.json /cf-cli
|
|
24
|
+
COPY yarn.lock /cf-cli
|
|
25
|
+
COPY check-version.js /cf-cli
|
|
26
|
+
COPY run-check-version.js /cf-cli
|
|
27
|
+
|
|
28
|
+
RUN yarn install --prod --frozen-lockfile && \
|
|
29
|
+
yarn cache clean
|
|
30
|
+
|
|
31
|
+
COPY . /cf-cli
|
|
32
|
+
|
|
33
|
+
RUN yarn generate-completion
|
|
34
|
+
RUN apk del yarn
|
|
35
|
+
|
|
36
|
+
RUN ln -s $(pwd)/lib/interface/cli/codefresh /usr/local/bin/codefresh
|
|
37
|
+
|
|
38
|
+
RUN codefresh components update --location components
|
|
39
|
+
ENTRYPOINT ["codefresh"]
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018 Codefresh
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Codefresh-cli
|
|
2
|
+
Build: []( https://g.codefresh.io/public/accounts/codefresh-inc/pipelines/codefresh-io/cli/build)
|
|
3
|
+
Release: []( https://g.codefresh.io/public/accounts/codefresh-inc/pipelines/codefresh-io/cli/release)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
Codefresh CLI provides a full and flexible interface to interact with Codefresh.
|
|
7
|
+
|
|
8
|
+

|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
In case you have node.js installed you can easily install with NPM.
|
|
12
|
+
|
|
13
|
+
`npm install -g codefresh`
|
|
14
|
+
|
|
15
|
+
For other installation possibilities check out the <a href="http://cli.codefresh.io/installation" target="_blank">installation documentation</a>.
|
|
16
|
+
|
|
17
|
+
## Authenticate
|
|
18
|
+
Generate a new api key from the <a href="https://g.codefresh.io/account-conf/tokens" target="_blank">account settings</a> page.
|
|
19
|
+
|
|
20
|
+
`codefresh auth create-context --api-key {{API_KEY}}`
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
```$xslt
|
|
24
|
+
codefresh <command>
|
|
25
|
+
|
|
26
|
+
Commands:
|
|
27
|
+
codefresh completion generate bash completion script
|
|
28
|
+
codefresh tag <id> [tags..] Add an image tag.
|
|
29
|
+
codefresh untag <id> [tags..] Untag an image.
|
|
30
|
+
codefresh annotate Annotate a resource with labels.
|
|
31
|
+
codefresh patch Patch a resource by filename or stdin.
|
|
32
|
+
codefresh auth Manage authentication contexts.
|
|
33
|
+
codefresh create Create a resource from a file or stdin.
|
|
34
|
+
codefresh delete Delete a resource by file or resource name.
|
|
35
|
+
codefresh generate Generate resources as Kubernetes image pull secret and Codefresh Registry token.
|
|
36
|
+
codefresh get Display one or many resources.
|
|
37
|
+
codefresh replace Replace a resource by filename.
|
|
38
|
+
codefresh version Print version.
|
|
39
|
+
codefresh logs <id> Show logs of a build.
|
|
40
|
+
codefresh restart <id> Restart a build by its id.
|
|
41
|
+
codefresh terminate <id> Terminate a build by its id.
|
|
42
|
+
codefresh wait <id..> Wait until a condition will be met on a build.
|
|
43
|
+
codefresh run <name> Run a pipeline by id or name and attach the created workflow logs.
|
|
44
|
+
codefresh delete-release [name] Delete a helm release from a kubernetes cluster.
|
|
45
|
+
codefresh install-chart Install or upgrade a Helm chart Repository flag can be either absolute url or saved repository in Codefresh.
|
|
46
|
+
codefresh helm-promotion Promote a Helm release in another environment.
|
|
47
|
+
codefresh test-release [name] Test a helm release.
|
|
48
|
+
|
|
49
|
+
Options:
|
|
50
|
+
--cfconfig Custom path for authentication contexts config file [default: "/Users/itaigendler/.cfconfig"]
|
|
51
|
+
--help Show help [boolean]
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Documentation
|
|
55
|
+
For more information please visit the official <a href="http://cli.codefresh.io" target="_blank">CLI documentation</a> site.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const _ = require('lodash');
|
|
2
|
+
|
|
3
|
+
const DEFAULT_RESPONSE = { statusCode: 200, body: { test: 'test' } };
|
|
4
|
+
|
|
5
|
+
let RESPONSE = _.clone(DEFAULT_RESPONSE);
|
|
6
|
+
|
|
7
|
+
let QUEUE = [];
|
|
8
|
+
|
|
9
|
+
const request = jest.fn(async () => {
|
|
10
|
+
if (!_.isEmpty(QUEUE)) {
|
|
11
|
+
return QUEUE.shift();
|
|
12
|
+
}
|
|
13
|
+
return RESPONSE;
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
request.defaults = () => request;
|
|
17
|
+
|
|
18
|
+
request.__setResponse = (response) => {
|
|
19
|
+
RESPONSE = response;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
request.__reset = () => {
|
|
23
|
+
RESPONSE = _.clone(DEFAULT_RESPONSE);
|
|
24
|
+
QUEUE = [];
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
request.__defaultResponse = () => {
|
|
28
|
+
return _.clone(DEFAULT_RESPONSE);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
request.__queueResponses = (queue) => {
|
|
32
|
+
QUEUE = QUEUE.concat(queue);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
module.exports = request;
|
package/brew/template.rb
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
class Codefresh < Formula
|
|
2
|
+
desc "Codefresh CLI provides a full and flexible interface to interact with Codefresh."
|
|
3
|
+
homepage "http://cli.codefresh.io"
|
|
4
|
+
url "https://github.com/codefresh-io/cli/releases/download/{{ VERSION }}/codefresh-{{ VERSION }}-macos-x64.tar.gz"
|
|
5
|
+
version "{{ VERSION }}"
|
|
6
|
+
sha256 "{{ SHA256 }}"
|
|
7
|
+
|
|
8
|
+
def install
|
|
9
|
+
bin.install "codefresh"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
test do
|
|
13
|
+
system "#{bin}/codefresh version"
|
|
14
|
+
end
|
|
15
|
+
end
|
package/check-version.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const semver = require('semver');
|
|
2
|
+
const { engines } = require('./package');
|
|
3
|
+
|
|
4
|
+
function checkVersion(version = engines.node) {
|
|
5
|
+
if (!semver.satisfies(process.version, version)) {
|
|
6
|
+
throw new Error(`Required node version ${version} not satisfied with current version ${process.version}.`);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
// checkVersion();
|
|
10
|
+
|
|
11
|
+
module.exports = {
|
|
12
|
+
checkVersion,
|
|
13
|
+
};
|
package/cli.gif
ADDED
|
Binary file
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
version: "1.0"
|
|
2
|
+
steps:
|
|
3
|
+
main_clone:
|
|
4
|
+
title: 'Cloning main repository...'
|
|
5
|
+
type: git-clone
|
|
6
|
+
repo: ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}
|
|
7
|
+
revision: ${{CF_REVISION}}
|
|
8
|
+
git: ${{GIT_CONTEXT}}
|
|
9
|
+
|
|
10
|
+
build_image:
|
|
11
|
+
title: "Building the image..."
|
|
12
|
+
type: build
|
|
13
|
+
working_directory: ${{WORKDIR}}
|
|
14
|
+
disable_push: true
|
|
15
|
+
dockerfile: ./Dockerfile
|
|
16
|
+
image_name: ${{IMAGE_NAME}}
|
|
17
|
+
tag: ${{CF_SHORT_REVISION}}
|
|
18
|
+
|
|
19
|
+
push_dev:
|
|
20
|
+
type: push
|
|
21
|
+
candidate: ${{build_image}}
|
|
22
|
+
title: "Pushing image to registry with revision tag"
|
|
23
|
+
tag: ${{CF_SHORT_REVISION}}${{ARM_TAG_POSTFIX}}
|
|
24
|
+
scale:
|
|
25
|
+
push_quay_dev:
|
|
26
|
+
registry: "${{REGISTRY_INTEGRATION_QUAY}}"
|
|
27
|
+
title: "Pushing image to quay.io registry with revision tag"
|
|
28
|
+
push_dockerhub_dev:
|
|
29
|
+
registry: "${{REGISTRY_INTEGRATION_DOCKERHUB}}"
|
|
30
|
+
title: "Pushing image to dockerhub registry with revision tag"
|
|
31
|
+
push_gcr_enterprise_dev:
|
|
32
|
+
registry: "${{REGISTRY_INTEGRATION_ENTERPRISE}}"
|
|
33
|
+
title: "Pushing image to gcr.io registry with revision tag"
|
|
34
|
+
|
|
35
|
+
push_master:
|
|
36
|
+
type: push
|
|
37
|
+
candidate: ${{build_image}}
|
|
38
|
+
title: "Pushing image with release tag"
|
|
39
|
+
when:
|
|
40
|
+
branch:
|
|
41
|
+
only: [ master ]
|
|
42
|
+
tags:
|
|
43
|
+
- "${{PACKAGE_VERSION}}${{ARM_TAG_POSTFIX}}"
|
|
44
|
+
- "latest${{ARM_TAG_POSTFIX}}"
|
|
45
|
+
scale:
|
|
46
|
+
push_quay_prod:
|
|
47
|
+
registry: "${{REGISTRY_INTEGRATION_QUAY}}"
|
|
48
|
+
title: "Pushing image to quay.io registry with release tag"
|
|
49
|
+
push_dockerhub_prod:
|
|
50
|
+
registry: "${{REGISTRY_INTEGRATION_DOCKERHUB}}"
|
|
51
|
+
title: "Pushing image to dockerhub registry with release tag"
|
|
52
|
+
push_gcr_enterprise_prod:
|
|
53
|
+
registry: "${{REGISTRY_INTEGRATION_ENTERPRISE}}"
|
|
54
|
+
title: "Pushing image to gcr.io registry with release tag"
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
# this pipeline should only be executed on master branch
|
|
2
|
+
version: '1.0'
|
|
3
|
+
|
|
4
|
+
steps:
|
|
5
|
+
|
|
6
|
+
main_clone:
|
|
7
|
+
title: 'Cloning main repository...'
|
|
8
|
+
type: git-clone
|
|
9
|
+
repo: codefresh-io/cli
|
|
10
|
+
revision: ${{CF_BRANCH}}
|
|
11
|
+
git: cf_github
|
|
12
|
+
|
|
13
|
+
fail_if_not_master:
|
|
14
|
+
title: "Validate running on master branch"
|
|
15
|
+
image: codefresh/build-cli
|
|
16
|
+
commands:
|
|
17
|
+
- 'echo This pipeline should be run only on master'
|
|
18
|
+
- 'exit 1'
|
|
19
|
+
when:
|
|
20
|
+
branch:
|
|
21
|
+
ignore: [ master ]
|
|
22
|
+
|
|
23
|
+
extract_version:
|
|
24
|
+
title: "Exporting package.json version"
|
|
25
|
+
image: codefresh/build-cli
|
|
26
|
+
commands:
|
|
27
|
+
- 'export PACKAGE_VERSION=$(jq -r ".version" package.json)'
|
|
28
|
+
- "echo Current version: $PACKAGE_VERSION"
|
|
29
|
+
- "cf_export PACKAGE_VERSION"
|
|
30
|
+
|
|
31
|
+
# in case the candidate image will not be found the release flow will crash and this means that the build pipelines has failed
|
|
32
|
+
push_step:
|
|
33
|
+
type: push
|
|
34
|
+
title: "Push release image"
|
|
35
|
+
image_name: codefresh/cli
|
|
36
|
+
tags:
|
|
37
|
+
- ${{PACKAGE_VERSION}}
|
|
38
|
+
- latest
|
|
39
|
+
scale:
|
|
40
|
+
push_to_dockerhub:
|
|
41
|
+
registry: dockerhub
|
|
42
|
+
title: "push to dockerhub"
|
|
43
|
+
candidate: codefresh/cli:${{CF_SHORT_REVISION}}
|
|
44
|
+
push_to_gcr:
|
|
45
|
+
title: "push to gcr"
|
|
46
|
+
candidate: gcr.io/codefresh-inc/codefresh/cli:${{CF_SHORT_REVISION}}
|
|
47
|
+
push_to_quay:
|
|
48
|
+
registry: cf-quay
|
|
49
|
+
title: "push to quay.io"
|
|
50
|
+
candidate: quay.io/codefresh/cli:${{CF_SHORT_REVISION}}
|
|
51
|
+
|
|
52
|
+
create_manifest_list:
|
|
53
|
+
type: "codefresh-inc/multiarch-manifester"
|
|
54
|
+
arguments:
|
|
55
|
+
image_name: codefresh/cli
|
|
56
|
+
arch_tag_postfixes:
|
|
57
|
+
arm64: "${{ARM_TAG_POSTFIX}}"
|
|
58
|
+
registries:
|
|
59
|
+
- name: 'quay.io'
|
|
60
|
+
username: '${{QUAY_USERNAME}}'
|
|
61
|
+
password: '${{QUAY_PASSWORD}}'
|
|
62
|
+
- name: 'docker.io'
|
|
63
|
+
username: '${{DOCKERHUB_USERNAME}}'
|
|
64
|
+
password: '${{DOCKERHUB_PASSWORD}}'
|
|
65
|
+
- name: 'gcr.io'
|
|
66
|
+
path_prefix: codefresh-inc
|
|
67
|
+
username: '${{GCR_CODEFRESH_INC_USERNAME}}'
|
|
68
|
+
password: '${{GCR_CODEFRESH_INC_PASSWORD}}'
|
|
69
|
+
scale:
|
|
70
|
+
master_branch_tags:
|
|
71
|
+
arguments:
|
|
72
|
+
tags:
|
|
73
|
+
- ${{PACKAGE_VERSION}}
|
|
74
|
+
- latest
|
|
75
|
+
|
|
76
|
+
generate_comletion:
|
|
77
|
+
title: "Generating commands completion tree"
|
|
78
|
+
image: codefresh/build-cli
|
|
79
|
+
commands:
|
|
80
|
+
- "yarn install"
|
|
81
|
+
- "yarn generate-completion"
|
|
82
|
+
|
|
83
|
+
deploy_to_npm:
|
|
84
|
+
title: "Publishing To Npm"
|
|
85
|
+
type: npm-publish
|
|
86
|
+
arguments:
|
|
87
|
+
NPM_TOKEN: '${{NPM_TOKEN}}'
|
|
88
|
+
DIR: ./cli
|
|
89
|
+
|
|
90
|
+
compile_executables:
|
|
91
|
+
title: "Compiling executables"
|
|
92
|
+
image: codefresh/build-cli
|
|
93
|
+
commands:
|
|
94
|
+
- "rm -rf dist"
|
|
95
|
+
- "yarn pkg"
|
|
96
|
+
|
|
97
|
+
create_release:
|
|
98
|
+
title: "Create github release"
|
|
99
|
+
image: codefresh/build-cli
|
|
100
|
+
fail_fast: false
|
|
101
|
+
commands:
|
|
102
|
+
- 'curl --fail -X POST -d ''{"tag_name":"v${{PACKAGE_VERSION}}","target_commitish":"${{CF_REVISION}}","name":"Codefresh V${{PACKAGE_VERSION}}"}'' -H "Content-Type: application/json" -H "Authorization: token ${{GITHUB_TOKEN}}" https://api.github.com/repos/codefresh-io/cli/releases'
|
|
103
|
+
|
|
104
|
+
get_release:
|
|
105
|
+
title: "Get github release"
|
|
106
|
+
image: codefresh/build-cli
|
|
107
|
+
commands:
|
|
108
|
+
- "curl --fail https://api.github.com/repos/codefresh-io/cli/releases/tags/v${{PACKAGE_VERSION}}"
|
|
109
|
+
- "export GITHUB_RELEASE_ID=$(curl --fail https://api.github.com/repos/codefresh-io/cli/releases/tags/v${{PACKAGE_VERSION}} | jq -r '.id')"
|
|
110
|
+
- "echo Github release id: $GITHUB_RELEASE_ID"
|
|
111
|
+
- "cf_export GITHUB_RELEASE_ID"
|
|
112
|
+
|
|
113
|
+
upload_executables:
|
|
114
|
+
title: "Upload executables to github release"
|
|
115
|
+
image: codefresh/build-cli
|
|
116
|
+
commands:
|
|
117
|
+
# delete all previous .zip/.gz created files and copy readme and license to ./dist
|
|
118
|
+
- "rm -rf *.gz"
|
|
119
|
+
- "rm -rf *.zip"
|
|
120
|
+
- "cp README.md LICENSE ./dist --force"
|
|
121
|
+
# upload linux-x64 asset
|
|
122
|
+
- "mv ./dist/codefresh-linux ./dist/codefresh"
|
|
123
|
+
- "tar -cf codefresh-v${{PACKAGE_VERSION}}-linux-x64.tar README.md LICENSE -C ./dist ./codefresh "
|
|
124
|
+
- "gzip codefresh-v${{PACKAGE_VERSION}}-linux-x64.tar"
|
|
125
|
+
- 'curl --fail -X POST -H "Content-Type:application/octet-stream" -H "Authorization: token ${{GITHUB_TOKEN}}" --data-binary @codefresh-v${{PACKAGE_VERSION}}-linux-x64.tar.gz https://uploads.github.com/repos/codefresh-io/cli/releases/${{GITHUB_RELEASE_ID}}/assets?name=codefresh-v${{PACKAGE_VERSION}}-linux-x64.tar.gz'
|
|
126
|
+
# upload macos-x64 asset
|
|
127
|
+
- "mv ./dist/codefresh-macos ./dist/codefresh"
|
|
128
|
+
- "tar -cf codefresh-v${{PACKAGE_VERSION}}-macos-x64.tar README.md LICENSE -C ./dist ./codefresh "
|
|
129
|
+
- "gzip codefresh-v${{PACKAGE_VERSION}}-macos-x64.tar"
|
|
130
|
+
- 'curl --fail -X POST -H "Content-Type:application/octet-stream" -H "Authorization: token ${{GITHUB_TOKEN}}" --data-binary @codefresh-v${{PACKAGE_VERSION}}-macos-x64.tar.gz https://uploads.github.com/repos/codefresh-io/cli/releases/${{GITHUB_RELEASE_ID}}/assets?name=codefresh-v${{PACKAGE_VERSION}}-macos-x64.tar.gz'
|
|
131
|
+
# upload win-x64 asset
|
|
132
|
+
- "mv ./dist/codefresh-win.exe ./dist/codefresh.exe"
|
|
133
|
+
- "zip codefresh-v${{PACKAGE_VERSION}}-win-x64.zip README.md LICENSE -j ./dist/codefresh.exe "
|
|
134
|
+
- 'curl --fail -X POST -H "Content-Type:application/octet-stream" -H "Authorization: token ${{GITHUB_TOKEN}}" --data-binary @codefresh-v${{PACKAGE_VERSION}}-win-x64.zip https://uploads.github.com/repos/codefresh-io/cli/releases/${{GITHUB_RELEASE_ID}}/assets?name=codefresh-v${{PACKAGE_VERSION}}-win-x64.zip'
|
|
135
|
+
# upload alpine-x64 asset
|
|
136
|
+
- "mv ./dist/codefresh-alpine ./dist/codefresh"
|
|
137
|
+
- "tar -cf codefresh-v${{PACKAGE_VERSION}}-alpine-x64.tar README.md LICENSE -C ./dist ./codefresh "
|
|
138
|
+
- "gzip codefresh-v${{PACKAGE_VERSION}}-alpine-x64.tar"
|
|
139
|
+
- 'curl --fail -X POST -H "Content-Type:application/octet-stream" -H "Authorization: token ${{GITHUB_TOKEN}}" --data-binary @codefresh-v${{PACKAGE_VERSION}}-alpine-x64.tar.gz https://uploads.github.com/repos/codefresh-io/cli/releases/${{GITHUB_RELEASE_ID}}/assets?name=codefresh-v${{PACKAGE_VERSION}}-alpine-x64.tar.gz'
|
|
140
|
+
|
|
141
|
+
update_documentation:
|
|
142
|
+
title: "Update documentation http://cli.codefresh.io"
|
|
143
|
+
image: docker:18.01
|
|
144
|
+
commands:
|
|
145
|
+
- "apk update && apk add git nodejs"
|
|
146
|
+
- "npm install"
|
|
147
|
+
- "echo cleaning previous public dir and recreating worktree"
|
|
148
|
+
- "rm -rf public && git worktree prune && git worktree add -B gh-pages public origin/gh-pages"
|
|
149
|
+
- "echo Building public docs"
|
|
150
|
+
- "npm run build-public-docs"
|
|
151
|
+
- "echo Push new docs to gh-pages detached branch"
|
|
152
|
+
- 'git config --global user.email "auto-ci@codefresh.io" && git config --global user.name "Automated CI"'
|
|
153
|
+
- 'cd public && git add --all && git commit -m "Publish new documentation for version ${{PACKAGE_VERSION}}" && git push https://${{GITHUB_TOKEN}}@github.com/codefresh-io/cli.git'
|
|
154
|
+
environment:
|
|
155
|
+
- HUGO_VERSION=0.32.0
|
|
156
|
+
|
|
157
|
+
update_brew_formula:
|
|
158
|
+
title: "Updating homebrew formula"
|
|
159
|
+
image: codefresh/build-cli
|
|
160
|
+
commands:
|
|
161
|
+
- VERSION=v${{PACKAGE_VERSION}}
|
|
162
|
+
- curl -L https://github.com/codefresh-io/cli/releases/download/$VERSION/codefresh-$VERSION-macos-x64.tar.gz > $VERSION.tar.gz
|
|
163
|
+
- echo "compute SHA256 ..."
|
|
164
|
+
- SHA256="$(shasum -a 256 ./$VERSION.tar.gz | awk '{print $1}')"
|
|
165
|
+
- echo "generate file from template ..."
|
|
166
|
+
- sed -e "s/{{ VERSION }}/$VERSION/g" -e "s/{{ SHA256 }}/$SHA256/g" ./brew/template.rb > codefresh.rb
|
|
167
|
+
- echo "Updating file in GitHub"
|
|
168
|
+
- |
|
|
169
|
+
curl -v -i -X PUT -H 'Authorization: token '${{GITHUB_TOKEN}}'' -d "{ \
|
|
170
|
+
\"message\": \"update formula version $VERSION\", \
|
|
171
|
+
\"content\": \"$(openssl base64 -A -in codefresh.rb)\", \
|
|
172
|
+
\"sha\": $(curl -X GET https://api.github.com/repos/codefresh-io/homebrew-cli/contents/Formula/codefresh.rb | jq .sha) \
|
|
173
|
+
}" https://api.github.com/repos/codefresh-io/homebrew-cli/contents/Formula/codefresh.rb
|
package/codefresh.yml
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# this pipeline should not be run on version tag releases (it may cause a non correct sha to override version tagged image in dockerhub)
|
|
2
|
+
version: "1.0"
|
|
3
|
+
|
|
4
|
+
steps:
|
|
5
|
+
|
|
6
|
+
main_clone:
|
|
7
|
+
title: 'Cloning main repository...'
|
|
8
|
+
type: git-clone
|
|
9
|
+
repo: codefresh-io/cli
|
|
10
|
+
revision: ${{CF_BRANCH}}
|
|
11
|
+
git: cf_github
|
|
12
|
+
|
|
13
|
+
install_dependencies:
|
|
14
|
+
title: 'Installing testing dependencies'
|
|
15
|
+
image: codefresh/node-tester-image:10.15.3
|
|
16
|
+
commands:
|
|
17
|
+
- yarn install --frozen-lockfile
|
|
18
|
+
|
|
19
|
+
eslint:
|
|
20
|
+
title: 'Running linting logic'
|
|
21
|
+
image: codefresh/node-tester-image:10.15.3
|
|
22
|
+
commands:
|
|
23
|
+
- yarn eslint
|
|
24
|
+
|
|
25
|
+
unit-tests:
|
|
26
|
+
title: 'Running unit tests'
|
|
27
|
+
image: codefresh/node-tester-image:10.15.3
|
|
28
|
+
commands:
|
|
29
|
+
- yarn test
|
|
30
|
+
|
|
31
|
+
extract_version:
|
|
32
|
+
title: "Exporting package.json version"
|
|
33
|
+
image: codefresh/build-cli
|
|
34
|
+
commands:
|
|
35
|
+
- 'export PACKAGE_VERSION=$(jq -r ".version" package.json)'
|
|
36
|
+
- "echo Current version: $PACKAGE_VERSION"
|
|
37
|
+
- "cf_export PACKAGE_VERSION"
|
|
38
|
+
|
|
39
|
+
build_images:
|
|
40
|
+
type: parallel
|
|
41
|
+
steps:
|
|
42
|
+
|
|
43
|
+
build_step:
|
|
44
|
+
type: build
|
|
45
|
+
dockerfile: Dockerfile
|
|
46
|
+
image-name: codefresh/cli
|
|
47
|
+
tag: ${{CF_BRANCH_TAG_NORMALIZED}}
|
|
48
|
+
|
|
49
|
+
run_arm_build:
|
|
50
|
+
type: codefresh-run
|
|
51
|
+
arguments:
|
|
52
|
+
PIPELINE_ID: 'codefresh-io/cli/build-arm'
|
|
53
|
+
TRIGGER_ID: codefresh-io/cli
|
|
54
|
+
BRANCH: ${{CF_BRANCH}}
|
|
55
|
+
DETACH: false
|
|
56
|
+
VARIABLE:
|
|
57
|
+
- CF_REPO_OWNER=${{CF_REPO_OWNER}}
|
|
58
|
+
- CF_REPO_NAME=${{CF_REPO_NAME}}
|
|
59
|
+
- CF_REVISION=${{CF_REVISION}}
|
|
60
|
+
- CF_BRANCH=${{CF_BRANCH}}
|
|
61
|
+
- CF_SHORT_REVISION=${{CF_SHORT_REVISION}}
|
|
62
|
+
- GIT_CONTEXT=cf_github
|
|
63
|
+
- IMAGE_NAME=codefresh/cli
|
|
64
|
+
- WORKDIR=${{CF_VOLUME_PATH}}/${{CF_REPO_NAME}}
|
|
65
|
+
- ARM_TAG_POSTFIX="${{ARM_TAG_POSTFIX}}"
|
|
66
|
+
- PACKAGE_VERSION=${{PACKAGE_VERSION}}
|
|
67
|
+
|
|
68
|
+
push_step:
|
|
69
|
+
type: push
|
|
70
|
+
tag: '${{CF_SHORT_REVISION}}'
|
|
71
|
+
candidate: ${{build_step}}
|
|
72
|
+
scale:
|
|
73
|
+
push_to_dockerhub:
|
|
74
|
+
registry: dockerhub
|
|
75
|
+
title: "push to dockerhub"
|
|
76
|
+
push_to_gcr:
|
|
77
|
+
title: "push to gcr"
|
|
78
|
+
push_to_quay:
|
|
79
|
+
registry: cf-quay
|
|
80
|
+
title: "push to quay.io"
|
|
81
|
+
|
|
82
|
+
create_manifest_list:
|
|
83
|
+
type: "codefresh-inc/multiarch-manifester"
|
|
84
|
+
arguments:
|
|
85
|
+
image_name: codefresh/cli
|
|
86
|
+
arch_tag_postfixes:
|
|
87
|
+
arm64: "${{ARM_TAG_POSTFIX}}"
|
|
88
|
+
registries:
|
|
89
|
+
- name: 'quay.io'
|
|
90
|
+
username: '${{QUAY_USERNAME}}'
|
|
91
|
+
password: '${{QUAY_PASSWORD}}'
|
|
92
|
+
- name: 'docker.io'
|
|
93
|
+
username: '${{DOCKERHUB_USERNAME}}'
|
|
94
|
+
password: '${{DOCKERHUB_PASSWORD}}'
|
|
95
|
+
- name: 'gcr.io'
|
|
96
|
+
path_prefix: codefresh-inc
|
|
97
|
+
username: '${{GCR_CODEFRESH_INC_USERNAME}}'
|
|
98
|
+
password: '${{GCR_CODEFRESH_INC_PASSWORD}}'
|
|
99
|
+
scale:
|
|
100
|
+
dev_branches_tags:
|
|
101
|
+
when:
|
|
102
|
+
branch:
|
|
103
|
+
ignore: [ master ]
|
|
104
|
+
arguments:
|
|
105
|
+
tags:
|
|
106
|
+
- ${{CF_SHORT_REVISION}}
|
|
107
|
+
|
|
108
|
+
execute_release_pipeline:
|
|
109
|
+
title: "Execute release pipeline in case version was changed"
|
|
110
|
+
fail_fast: false
|
|
111
|
+
type: codefresh-run
|
|
112
|
+
arguments:
|
|
113
|
+
PIPELINE_ID: 'codefresh-io/cli/release'
|
|
114
|
+
DETACH: true
|
|
115
|
+
BRANCH: master
|
|
116
|
+
VARIABLE:
|
|
117
|
+
- PACKAGE_VERSION=${{PACKAGE_VERSION}}
|
|
118
|
+
when:
|
|
119
|
+
branch:
|
|
120
|
+
only: [ master ]
|
package/docs/config.toml
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
theme = "docdock"
|
|
2
|
+
baseurl = "https://codefresh-io.github.io/cli"
|
|
3
|
+
title = "Codefresh CLI Documentation"
|
|
4
|
+
publishDir = "../public"
|
|
5
|
+
languageCode = "en-us"
|
|
6
|
+
DefaultContentLanguage = "en"
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
pygmentsCodeFences = true
|
|
10
|
+
pygmentsStyle = "monokailight"
|
|
11
|
+
|
|
12
|
+
[params]
|
|
13
|
+
themeStyle = "original" # "original" or "flex" # default "original"
|
|
14
|
+
themeVariant = "" # choose theme variant "green", "gold" , "gray", "blue" (default)
|
|
15
|
+
ordersectionsby = "weight" # ordersectionsby = "title"
|
|
16
|
+
disableHomeIcon = true # default is false
|
|
17
|
+
disableSearch = false # default is false
|
|
18
|
+
disableNavChevron = true # set true to hide next/prev chevron, default is false
|
|
19
|
+
highlightClientSide = false # set true to use highlight.pack.js instead of the default hugo chroma highlighter
|
|
20
|
+
|
|
21
|
+
[blackfriday]
|
|
22
|
+
smartDashes = false
|
|
23
|
+
|
|
24
|
+
[outputs]
|
|
25
|
+
home = [ "HTML", "RSS", "JSON"]
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
[[menu.shortcuts]]
|
|
29
|
+
pre = "<h3>More</h3>"
|
|
30
|
+
name = "<i class='fa fa-github'></i> Github repo"
|
|
31
|
+
identifier = "ds"
|
|
32
|
+
url = "https://github.com/codefresh-io/cli"
|
|
33
|
+
weight = 10
|
|
34
|
+
|
|
35
|
+
[[menu.shortcuts]]
|
|
36
|
+
name = "<i class='fa fa-camera'></i> External Resources"
|
|
37
|
+
url = "/external-resources"
|
|
38
|
+
weight = 11
|
|
39
|
+
|
|
40
|
+
[[menu.shortcuts]]
|
|
41
|
+
name = "<i class='fa fa-bookmark'></i> Codefresh Documentation"
|
|
42
|
+
identifier = "hugodoc"
|
|
43
|
+
url = "https://docs.codefresh.io"
|
|
44
|
+
weight = 20
|