Pushing to the Git repositories in your FoundriesFactory is as simple as
configuring Git on your personal machine to use the api token you generated
as part of your account creation. Once configured,
git will know when are
source.foundries.io and will use this token to authenticate
you with our Git server.
Source Code Access Token¶
In the right top corner, click on the avatar and select Settings in the drop-down list.
Select the tab Tokens and create a new Api Token by clicking on the + New Token. Complete with a Description and the Expiration date and select next.
Check the Use for source code access box and select your Factory. You can later revoke this access and set up a new token once you are familiar with the API Access.
YOUR_TOKEN in the following command with your access token. An
example token looks like this:
git config --global http.https://source.foundries.io.extraheader "Authorization: basic $(echo -n YOUR_TOKEN | openssl base64)"
You can verify that this has been successful by attempting to clone a repository
from your FoundriesFactory. As an example, you can clone your
<factory> with your FoundriesFactory name.
git clone https://source.foundries.io/factories/<factory>/containers.git
You can also use
git config --list to show you the current state of the
global Git configuration, in which
source.foundries.io should be referenced
along with your access token, represented as a base64 string.