Merge pull request #15289 from flouthoc/update-build-docs

[CI:DOCS] docs: specify `git` protocol is not supported for github hosted repo
This commit is contained in:
OpenShift Merge Robot 2022-08-11 19:58:10 +00:00 committed by GitHub
commit 432b025b2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -988,9 +988,11 @@ use it as the context. The Containerfile at the root of the repository will be
used and it only works if the GitHub repository is a dedicated repository. used and it only works if the GitHub repository is a dedicated repository.
``` ```
$ podman build git://github.com/scollier/purpletest $ podman build https://github.com/scollier/purpletest
``` ```
Note: Github does not support using `git://` for performing `clone` operation due to recent changes in their security guidance (https://github.blog/2021-09-01-improving-git-protocol-security-github/). Use an `https://` URL if the source repository is hosted on Github.
#### Building an image using a URL to an archive #### Building an image using a URL to an archive
Podman will fetch the archive file, decompress it, and use its contents as the Podman will fetch the archive file, decompress it, and use its contents as the