From acde6e763d1c3179a34dd1de99aa835bc753c839 Mon Sep 17 00:00:00 2001 From: Evgeniy Frolov Date: Mon, 18 Nov 2024 11:30:05 +0300 Subject: [PATCH] add volume add fuse Signed-off-by: Evgeniy Frolov --- .../simple/docker-runner/linux/buildah/project.md.liquid | 2 ++ .../simple/docker-runner/linux/buildah/project.md.liquid | 2 ++ .../docker-runner/linux/buildah/.github/workflows/prod.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/bin/configurator/static/_includes/en/configurator/tab/ci/github-actions/simple/docker-runner/linux/buildah/project.md.liquid b/bin/configurator/static/_includes/en/configurator/tab/ci/github-actions/simple/docker-runner/linux/buildah/project.md.liquid index a08b3dc47..be9412c76 100644 --- a/bin/configurator/static/_includes/en/configurator/tab/ci/github-actions/simple/docker-runner/linux/buildah/project.md.liquid +++ b/bin/configurator/static/_includes/en/configurator/tab/ci/github-actions/simple/docker-runner/linux/buildah/project.md.liquid @@ -1,5 +1,7 @@ ### Configuring CI/CD of the project +> If the GitHub Runner host runs Linux kernel version 5.12 or lower, install fuse on the host and add an extra option `--device /dev/fuse`: + This is how the repository that uses werf for build and deploy might look: {% tree_file_viewer '/examples/configurator/ci-cd/simple/github-actions/docker-runner/linux/buildah' default_file='.github/workflows/prod.yml' %} diff --git a/bin/configurator/static/_includes/ru/configurator/tab/ci/github-actions/simple/docker-runner/linux/buildah/project.md.liquid b/bin/configurator/static/_includes/ru/configurator/tab/ci/github-actions/simple/docker-runner/linux/buildah/project.md.liquid index d5c8926d2..9d8fd95c8 100644 --- a/bin/configurator/static/_includes/ru/configurator/tab/ci/github-actions/simple/docker-runner/linux/buildah/project.md.liquid +++ b/bin/configurator/static/_includes/ru/configurator/tab/ci/github-actions/simple/docker-runner/linux/buildah/project.md.liquid @@ -1,5 +1,7 @@ ### Конфигурация CI/CD проекта +> Если хост GitHub Runner’а имеет версию ядра Linux 5.12 или ниже, то установите на хост fuse и добавьте в опцию `--device /dev/fuse` + Так может выглядеть репозиторий, использующий werf для сборки и развертывания: {% tree_file_viewer '/examples/configurator/ci-cd/simple/github-actions/docker-runner/linux/buildah' default_file='.github/workflows/prod.yml' %} diff --git a/examples/configurator/ci-cd/simple/github-actions/docker-runner/linux/buildah/.github/workflows/prod.yml b/examples/configurator/ci-cd/simple/github-actions/docker-runner/linux/buildah/.github/workflows/prod.yml index 5b9760bc2..59499a2d4 100644 --- a/examples/configurator/ci-cd/simple/github-actions/docker-runner/linux/buildah/.github/workflows/prod.yml +++ b/examples/configurator/ci-cd/simple/github-actions/docker-runner/linux/buildah/.github/workflows/prod.yml @@ -11,6 +11,8 @@ jobs: container: image: ghcr.io/werf/werf:2-stable-ubuntu options: --security-opt "seccomp:unconfined" --security-opt "apparmor:unconfined" + volumes: + - /home/build/.werf steps: - uses: actions/checkout@v3 with: