<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Working with Porch Repositories on Porch Documentation</title><link>/docs/4_tutorials_and_how-tos/working_with_porch_repositories/</link><description>Recent content in Working with Porch Repositories on Porch Documentation</description><generator>Hugo</generator><language>en-us</language><atom:link href="/docs/4_tutorials_and_how-tos/working_with_porch_repositories/index.xml" rel="self" type="application/rss+xml"/><item><title>Registering Repositories</title><link>/docs/4_tutorials_and_how-tos/working_with_porch_repositories/repository-registration/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/4_tutorials_and_how-tos/working_with_porch_repositories/repository-registration/</guid><description>&lt;p&gt;Registering a repository connects Porch to your Git storage backend, allowing it to discover and manage packages. You can register repositories with various authentication methods and configuration options.&lt;/p&gt;
&lt;h3 id="register-a-git-repository"&gt;Register a Git Repository&lt;a class="td-heading-self-link" href="#register-a-git-repository" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Register a Git repository with Porch:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;porchctl repo register https://github.com/example/porch-test.git &lt;span style="color:#4e9a06"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --namespace default &lt;span style="color:#4e9a06"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --name&lt;span style="color:#ce5c00;font-weight:bold"&gt;=&lt;/span&gt;porch-test &lt;span style="color:#4e9a06"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --description&lt;span style="color:#ce5c00;font-weight:bold"&gt;=&lt;/span&gt;&lt;span style="color:#4e9a06"&gt;&amp;#34;Blueprint packages&amp;#34;&lt;/span&gt; &lt;span style="color:#4e9a06"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --branch&lt;span style="color:#ce5c00;font-weight:bold"&gt;=&lt;/span&gt;main
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This command registers the Git repository with Porch, creates a Repository resource in Kubernetes and begins synchronizing packages from the repository.&lt;/p&gt;</description></item><item><title>Repositories Basic Usage</title><link>/docs/4_tutorials_and_how-tos/working_with_porch_repositories/repository-basic-usage/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/4_tutorials_and_how-tos/working_with_porch_repositories/repository-basic-usage/</guid><description>&lt;h2 id="basic-operations"&gt;Basic Operations&lt;a class="td-heading-self-link" href="#basic-operations" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;These operations cover the fundamental commands for viewing and managing registered repositories.&lt;/p&gt;
&lt;h3 id="list-registered-repositories"&gt;List Registered Repositories&lt;a class="td-heading-self-link" href="#list-registered-repositories" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;View all repositories registered with Porch:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;porchctl repo get --namespace default
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This command queries Porch for all registered repositories in the specified namespace, displays the repository type, content type, sync schedule, and status and shows the repository address.&lt;/p&gt;
&lt;div class="alert alert-primary" role="alert"&gt;&lt;div class="h4 alert-heading" role="heading"&gt;Note&lt;/div&gt;
&lt;p&gt;&lt;code&gt;porchctl repo list&lt;/code&gt; is an alias for &lt;code&gt;porchctl repo get&lt;/code&gt; and can be used interchangeably:&lt;/p&gt;</description></item><item><title>Synchronizing Repositories</title><link>/docs/4_tutorials_and_how-tos/working_with_porch_repositories/repository-synchronization/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/4_tutorials_and_how-tos/working_with_porch_repositories/repository-synchronization/</guid><description>&lt;h2 id="repository-synchronization"&gt;Repository Synchronization&lt;a class="td-heading-self-link" href="#repository-synchronization" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Porch periodically synchronizes with registered repositories to discover new packages and updates. You can also trigger manual synchronization when you need immediate updates.&lt;/p&gt;
&lt;div class="alert alert-primary" role="alert"&gt;&lt;div class="h4 alert-heading" role="heading"&gt;Note&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Sync Schedule Format:&lt;/strong&gt; Cron expressions follow the format &lt;code&gt;minute hour day month weekday&lt;/code&gt;. For example, &lt;code&gt;*/10 * * * *&lt;/code&gt; means &amp;ldquo;every 10 minutes&amp;rdquo;.&lt;/p&gt;
&lt;/div&gt;
&lt;h3 id="trigger-manual-sync"&gt;Trigger Manual Sync&lt;a class="td-heading-self-link" href="#trigger-manual-sync" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Force an immediate synchronization of a repository:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;porchctl repo sync porch-test --namespace default
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This command schedules a one-time sync (minimum 1-minute delay), updates packages from the repository. This sync is independent of the periodic sync schedule.&lt;/p&gt;</description></item><item><title>Rehoming Repositories</title><link>/docs/4_tutorials_and_how-tos/working_with_porch_repositories/repository-rehoming/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/4_tutorials_and_how-tos/working_with_porch_repositories/repository-rehoming/</guid><description>&lt;h2 id="what-rehoming-is"&gt;What rehoming is&lt;a class="td-heading-self-link" href="#what-rehoming-is" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Rehoming is changing the Git URL of a Git repository that Porch already uses, so that
the Porch Repository resources now point at the new URL. The contents are the same
repository, but the address has changed, for example because it moved to a new host.&lt;/p&gt;
&lt;p&gt;In Porch this is a change to &lt;code&gt;spec.git.repo&lt;/code&gt; on a Repository resource. The field is
mutable. Porch does not recreate the Repository or its packages. It treats the new URL as
the same repository, provided the history still contains the commit Porch last synced.&lt;/p&gt;</description></item><item><title>Unregistering Repositories</title><link>/docs/4_tutorials_and_how-tos/working_with_porch_repositories/repository-unregistration/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/4_tutorials_and_how-tos/working_with_porch_repositories/repository-unregistration/</guid><description>&lt;h2 id="unregistering-repositories"&gt;Unregistering Repositories&lt;a class="td-heading-self-link" href="#unregistering-repositories" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;When you no longer need Porch to manage packages from a repository, you can unregister it. This removes Porch&amp;rsquo;s connection to the repository without affecting the underlying Git storage.&lt;/p&gt;
&lt;h3 id="unregister-a-repository"&gt;Unregister a Repository&lt;a class="td-heading-self-link" href="#unregister-a-repository" aria-label="Heading self-link"&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Remove a repository from Porch:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;porchctl repo unregister porch-test --namespace default
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This command removes the Repository resource from Kubernetes, it stops synchronizing packages from the repository, removes Porch&amp;rsquo;s cached metadata for the repository but &lt;strong&gt;does not delete&lt;/strong&gt; the underlying Git repository or its contents.&lt;/p&gt;</description></item></channel></rss>