diff --git a/.github/workflows/commit_tests.yml b/.github/workflows/commit_tests.yml index 3e3fc496e2..d41089fc92 100644 --- a/.github/workflows/commit_tests.yml +++ b/.github/workflows/commit_tests.yml @@ -19,7 +19,7 @@ jobs: go-version: 1.17 - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Prepare environment run: | @@ -43,7 +43,7 @@ jobs: go-version: 1.17 - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Prepare environment run: | @@ -53,4 +53,4 @@ jobs: - name: Lint run: | make lint - + diff --git a/.github/workflows/daily_tests.yml b/.github/workflows/daily_tests.yml index 0255642b5d..029c9ea6bf 100644 --- a/.github/workflows/daily_tests.yml +++ b/.github/workflows/daily_tests.yml @@ -26,7 +26,7 @@ jobs: id: go - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 # To compress werf_with_coverage binary for macOS # This fixes related with monkey patching panic (panic: permission denied [recovered]) @@ -113,7 +113,7 @@ jobs: id: go - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Download unit tests binaries uses: actions/download-artifact@master @@ -169,11 +169,11 @@ jobs: id: go - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 if: matrix.extra-find-args != '! -name ''git.test'' ! -name ''ansible.test''' - name: Checkout code (git history as fixtures for tests) - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 if: matrix.extra-find-args == '! -name ''git.test'' ! -name ''ansible.test''' @@ -285,7 +285,7 @@ jobs: id: go - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Download integration container_registry_per_implementation tests binaries uses: actions/download-artifact@master @@ -360,7 +360,7 @@ jobs: id: go - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Download integration k8s_per_version tests binaries uses: actions/download-artifact@master @@ -470,7 +470,7 @@ jobs: id: go - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Download integration k8s_per_version_and_container_registry_per_implementation tests binaries uses: actions/download-artifact@master @@ -562,11 +562,11 @@ jobs: id: go - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 if: matrix.extra-find-args != '! -name ''git.test*'' ! -name ''ansible.test*''' - name: Checkout code (git history as fixtures for tests) - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 if: matrix.extra-find-args == '! -name ''git.test*'' ! -name ''ansible.test*''' @@ -644,7 +644,7 @@ jobs: id: go - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Download integration k8s_per_version tests binaries uses: actions/download-artifact@master @@ -739,7 +739,7 @@ jobs: run: sudo apt-get install -y libbtrfs-dev - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Download coverage artifact uses: actions/download-artifact@master diff --git a/.github/workflows/docs_tests.yml b/.github/workflows/docs_tests.yml index 9eba915ceb..400da1fa60 100644 --- a/.github/workflows/docs_tests.yml +++ b/.github/workflows/docs_tests.yml @@ -37,7 +37,7 @@ jobs: run: sudo apt-get install -y libbtrfs-dev - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Test run: | @@ -69,7 +69,7 @@ jobs: ${{ runner.os }}-golang- - name: Checkout code - uses: actions/checkout@v1 + uses: actions/checkout@v3 - name: Login to GitHub Container Registry uses: docker/login-action@v1 diff --git a/.github/workflows/multiwerf_release_publisher.yml b/.github/workflows/multiwerf_release_publisher.yml index adea5a4aa0..d49fb5ea0d 100644 --- a/.github/workflows/multiwerf_release_publisher.yml +++ b/.github/workflows/multiwerf_release_publisher.yml @@ -18,7 +18,7 @@ jobs: id: go - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Publish release run: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 27ac897831..de07e84c63 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -48,7 +48,7 @@ jobs: if: matrix.os == 'ubuntu-latest' - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Prepare environment run: ./scripts/ci/git.sh @@ -74,7 +74,7 @@ jobs: run: sudo apt-get install -y libbtrfs-dev - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Compile integration tests binaries run: | @@ -140,11 +140,11 @@ jobs: run: sudo apt-get install -y libbtrfs-dev - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 if: matrix.extra-find-args != '! -name ''git.test'' ! -name ''ansible.test''' - name: Checkout code (git history as fixtures for tests) - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 if: matrix.extra-find-args == '! -name ''git.test'' ! -name ''ansible.test''' @@ -198,7 +198,7 @@ jobs: run: sudo apt-get install -y libbtrfs-dev - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Download integration k8s_per_version tests binaries uses: actions/download-artifact@master @@ -300,7 +300,7 @@ jobs: run: sudo apt-get install -y libbtrfs-dev - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Download integration k8s_per_version_and_container_registry_per_implementation tests binaries uses: actions/download-artifact@master diff --git a/.github/workflows/tests_cleaner.yml b/.github/workflows/tests_cleaner.yml index df5e7f9500..3b25838df8 100644 --- a/.github/workflows/tests_cleaner.yml +++ b/.github/workflows/tests_cleaner.yml @@ -29,7 +29,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup (common) run: sudo apt install jq diff --git a/.github/workflows/website_converge_tag.yml b/.github/workflows/website_converge_tag.yml index 37ad884c26..2bdcedd5ab 100644 --- a/.github/workflows/website_converge_tag.yml +++ b/.github/workflows/website_converge_tag.yml @@ -18,7 +18,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -45,7 +45,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 diff --git a/.github/workflows/website_converge_test.yml b/.github/workflows/website_converge_test.yml index 296b9a432d..fc9f9ba304 100644 --- a/.github/workflows/website_converge_test.yml +++ b/.github/workflows/website_converge_test.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 diff --git a/.github/workflows/website_review.yml b/.github/workflows/website_review.yml index a88d875054..409b7e0bea 100644 --- a/.github/workflows/website_review.yml +++ b/.github/workflows/website_review.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 diff --git a/.github/workflows/website_review_dismiss.yml b/.github/workflows/website_review_dismiss.yml index 0f36fe7e10..a9bf643667 100644 --- a/.github/workflows/website_review_dismiss.yml +++ b/.github/workflows/website_review_dismiss.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 diff --git a/docs/_includes/advanced/ci_cd/github_actions/build_and_publish_note.md b/docs/_includes/advanced/ci_cd/github_actions/build_and_publish_note.md index 2ef4528244..cb05429831 100644 --- a/docs/_includes/advanced/ci_cd/github_actions/build_and_publish_note.md +++ b/docs/_includes/advanced/ci_cd/github_actions/build_and_publish_note.md @@ -11,7 +11,7 @@ > steps: > > - name: Checkout code -> uses: actions/checkout@v2 +> uses: actions/checkout@v3 > with: > fetch-depth: 0 > @@ -27,7 +27,7 @@ > steps: > > - name: Checkout code -> uses: actions/checkout@v2 +> uses: actions/checkout@v3 > with: > fetch-depth: 0 > @@ -40,4 +40,4 @@ > {% endraw %} > > -> \ No newline at end of file +> diff --git a/docs/_includes/advanced/ci_cd/github_actions/cleanup_base.md b/docs/_includes/advanced/ci_cd/github_actions/cleanup_base.md index 98ec1930c4..c384fc7754 100644 --- a/docs/_includes/advanced/ci_cd/github_actions/cleanup_base.md +++ b/docs/_includes/advanced/ci_cd/github_actions/cleanup_base.md @@ -14,7 +14,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Fetch all history for all tags and branches run: git fetch --prune --unshallow @@ -24,4 +24,4 @@ jobs: with: kube-config-base64-data: ${{ secrets.KUBE_CONFIG_BASE64_DATA }} ``` -{% endraw %} \ No newline at end of file +{% endraw %} diff --git a/docs/_includes/advanced/ci_cd/github_actions/converge_base.md b/docs/_includes/advanced/ci_cd/github_actions/converge_base.md index 3d2b68cc5b..bc1793bcd3 100644 --- a/docs/_includes/advanced/ci_cd/github_actions/converge_base.md +++ b/docs/_includes/advanced/ci_cd/github_actions/converge_base.md @@ -6,7 +6,7 @@ converge: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 diff --git a/docs/_includes/advanced/ci_cd/github_actions/production_staging_1.md b/docs/_includes/advanced/ci_cd/github_actions/production_staging_1.md index cb54955fb3..696f359669 100644 --- a/docs/_includes/advanced/ci_cd/github_actions/production_staging_1.md +++ b/docs/_includes/advanced/ci_cd/github_actions/production_staging_1.md @@ -35,7 +35,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -70,7 +70,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 diff --git a/docs/_includes/advanced/ci_cd/github_actions/production_staging_2.md b/docs/_includes/advanced/ci_cd/github_actions/production_staging_2.md index 149870d6fa..deda7343f9 100644 --- a/docs/_includes/advanced/ci_cd/github_actions/production_staging_2.md +++ b/docs/_includes/advanced/ci_cd/github_actions/production_staging_2.md @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -51,7 +51,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -66,4 +66,4 @@ jobs: {% endraw %} - \ No newline at end of file + diff --git a/docs/_includes/advanced/ci_cd/github_actions/production_staging_3.md b/docs/_includes/advanced/ci_cd/github_actions/production_staging_3.md index 0bcd0efeaf..7bbc846031 100644 --- a/docs/_includes/advanced/ci_cd/github_actions/production_staging_3.md +++ b/docs/_includes/advanced/ci_cd/github_actions/production_staging_3.md @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -52,7 +52,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -67,4 +67,4 @@ jobs: {% endraw %} - \ No newline at end of file + diff --git a/docs/_includes/advanced/ci_cd/github_actions/production_staging_4.md b/docs/_includes/advanced/ci_cd/github_actions/production_staging_4.md index f9daf70558..ae34aada48 100644 --- a/docs/_includes/advanced/ci_cd/github_actions/production_staging_4.md +++ b/docs/_includes/advanced/ci_cd/github_actions/production_staging_4.md @@ -17,7 +17,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -53,7 +53,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -68,4 +68,4 @@ jobs: {% endraw %} - \ No newline at end of file + diff --git a/docs/_includes/advanced/ci_cd/github_actions/review_1.md b/docs/_includes/advanced/ci_cd/github_actions/review_1.md index b09cf31ef7..1dd1cdada7 100644 --- a/docs/_includes/advanced/ci_cd/github_actions/review_1.md +++ b/docs/_includes/advanced/ci_cd/github_actions/review_1.md @@ -35,7 +35,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -93,7 +93,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Dismiss uses: werf/actions/dismiss@v1.2 diff --git a/docs/_includes/advanced/ci_cd/github_actions/review_2.md b/docs/_includes/advanced/ci_cd/github_actions/review_2.md index 43aa4a9eaf..ad1197dd44 100644 --- a/docs/_includes/advanced/ci_cd/github_actions/review_2.md +++ b/docs/_includes/advanced/ci_cd/github_actions/review_2.md @@ -20,7 +20,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -60,7 +60,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Dismiss uses: werf/actions/dismiss@v1.2 @@ -71,4 +71,4 @@ jobs: {% endraw %} - \ No newline at end of file + diff --git a/docs/_includes/advanced/ci_cd/github_actions/review_3.md b/docs/_includes/advanced/ci_cd/github_actions/review_3.md index 9e42ba22f1..ca350a34d9 100644 --- a/docs/_includes/advanced/ci_cd/github_actions/review_3.md +++ b/docs/_includes/advanced/ci_cd/github_actions/review_3.md @@ -19,7 +19,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -67,7 +67,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Dismiss uses: werf/actions/dismiss@v1.2 @@ -78,4 +78,4 @@ jobs: {% endraw %} - \ No newline at end of file + diff --git a/docs/_includes/advanced/ci_cd/github_actions/review_base.md b/docs/_includes/advanced/ci_cd/github_actions/review_base.md index e69a991712..6429ed6d7e 100644 --- a/docs/_includes/advanced/ci_cd/github_actions/review_base.md +++ b/docs/_includes/advanced/ci_cd/github_actions/review_base.md @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 diff --git a/docs/_includes/advanced/ci_cd/github_actions/review_dismiss_base.md b/docs/_includes/advanced/ci_cd/github_actions/review_dismiss_base.md index 4455bc8120..70c40352bf 100644 --- a/docs/_includes/advanced/ci_cd/github_actions/review_dismiss_base.md +++ b/docs/_includes/advanced/ci_cd/github_actions/review_dismiss_base.md @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Define environment url run: | diff --git a/docs/pages_en/advanced/ci_cd/github_actions.md b/docs/pages_en/advanced/ci_cd/github_actions.md index 9d00cfd0f4..7b14aa3f69 100644 --- a/docs/pages_en/advanced/ci_cd/github_actions.md +++ b/docs/pages_en/advanced/ci_cd/github_actions.md @@ -54,13 +54,13 @@ First of all, you need to define a template — the general part of the deployme > {% include /advanced/ci_cd/github_actions/build_and_publish_note.md %} -First of all, you have to perform a `Checkout code` step — add the source code of an application. It is the initial step of a job. When using the werf builder (as you know, the incremental building is its notable feature), it is not enough to have a so-called `shallow clone` with a single commit that the action `actions/checkout@v2` creates when used with no parameters specified. +First of all, you have to perform a `Checkout code` step — add the source code of an application. It is the initial step of a job. When using the werf builder (as you know, the incremental building is its notable feature), it is not enough to have a so-called `shallow clone` with a single commit that the action `actions/checkout@v3` creates when used with no parameters specified. werf generates stages on the basis of the git history. So, if there is no history, then each build would run without previously built images. Therefore, it is essential to use the `fetch-depth: 0` parameter to access the entire history when building, publishing and deploying (`werf build`, `werf converge`), and running (`werf run`). In other words, for all commands that stages use. {% raw %} ```yaml - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 ``` @@ -366,11 +366,11 @@ Options for rolling back changes in production: First of all, you need to perform a code checkout - add the source code of an application. It is the initial step of a job. -Most cleaning policies in werf are based on git primitives (commit, branch, and tag), so by using the action `actions/checkout@v2` without additional parameters, you risk accidentally deleting images. We recommend you to use the following steps for cleanup to go smoothly: +Most cleaning policies in werf are based on git primitives (commit, branch, and tag), so by using the action `actions/checkout@v3` without additional parameters, you risk accidentally deleting images. We recommend you to use the following steps for cleanup to go smoothly: ```yaml - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Fetch all history for all tags and branches run: git fetch --prune --unshallow diff --git a/docs/pages_ru/advanced/ci_cd/github_actions.md b/docs/pages_ru/advanced/ci_cd/github_actions.md index ec835bd70e..897f7a4e21 100644 --- a/docs/pages_ru/advanced/ci_cd/github_actions.md +++ b/docs/pages_ru/advanced/ci_cd/github_actions.md @@ -53,14 +53,14 @@ author: Sergey Lazarev , Alexey Igrychev {% include /advanced/ci_cd/github_actions/build_and_publish_note.md %} -Первый шаг, с которого начинается задание — `Checkout code`, добавление исходных кодов приложения. При использовании сборщика werf (основная особенность которого — инкрементальная сборка) недостаточно, так называемого, `shallow clone` с единственным коммитом, который создаёт action `actions/checkout@v2` при использовании без параметров. +Первый шаг, с которого начинается задание — `Checkout code`, добавление исходных кодов приложения. При использовании сборщика werf (основная особенность которого — инкрементальная сборка) недостаточно, так называемого, `shallow clone` с единственным коммитом, который создаёт action `actions/checkout@v3` при использовании без параметров. Базируясь на истории git, werf создаёт стадии. При отсутствии истории каждая сборка будет проходить без ранее собранных стадий, поэтому, крайне важно, использовать параметр `fetch-depth: 0` для доступа ко всей истории для всех команд, которые используют стадии: при сборке, публикации и выкате (`werf build`, `werf converge`), запуске (`werf run`) и т.д. {% raw %} ```yaml - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 ``` @@ -370,11 +370,11 @@ curl \ Первый шаг, с которого начинается задание — `Checkout code`, добавление исходных кодов приложения. -Большинство политик очистки в werf базируется на примитивах git (на коммите, ветке и теге), поэтому использование action `actions/checkout@v2` без дополнительных параметров и действий может приводить к неожиданному удалению образов. Мы рекомендуем использовать следующие шаги для корректной работы. +Большинство политик очистки в werf базируется на примитивах git (на коммите, ветке и теге), поэтому использование action `actions/checkout@v3` без дополнительных параметров и действий может приводить к неожиданному удалению образов. Мы рекомендуем использовать следующие шаги для корректной работы. ```yaml - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Fetch all history for all tags and branches run: git fetch --prune --unshallow