Skip to content

Commit

Permalink
Update README.adoc
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Feb 4, 2025
1 parent bbfb365 commit ae558aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@ $ tebako press --root=/mnt/w/fontist --entry-point=fontist --output=/mnt/w/fonti

`Gemspec` files often specify the files included in the gem using `git ls-files`. When packaging from inside the container, the container's instance of `git` will be used to resolve these files.

If you use a mounted host directory for packaging, the container's instance of `git` will not have access to it by default. To resolve this, you must alter the container's configuration by running the following command before packaging:
If you use a mounted host directory for packaging, the container's instance of `git` will be able to use it by default.
To resolve this, you shall alter the container's configuration by running the following command before packaging:

[source,sh]
----
git config --global --add safe.directory <source>
----

However, to avoid this additional setup, we recommend packaging **from outside the container** instead of modifying the container's configuration as described above.
(Thanks to https://github.com/bradgessler[bradgessler] for suggestion)

Packaging from inside the container is primarily designed to support CI environments like GitHub Actions (GHA) or Cirrus CI. It provides a complete packaging environment that
does not require any additional installations, making it ideal for automated workflows.
Expand Down

0 comments on commit ae558aa

Please sign in to comment.