A repository in IAG is a reference to a Git repository that contains your scripts, automations, or other files. IAG pulls the repository when you run a service to ensure your scripts are always up to date.
IAG supports both public and private Git repositories:
For information about setting up authentication, see:
Use the iagctl create repository command to create a repository reference.
For more information, see the create repository command reference.
Syntax:
Example:
Syntax:
Parameters:
<repository-name>: A unique name for the repository reference--url: The SSH Git URL (starts with git@)--private-key-name: The name of the secret that contains your SSH private keyExample:
For detailed setup instructions, see Use SSH keys to clone Git repositories.
Syntax:
Parameters:
<repository-name>: A unique name for the repository reference--url: The HTTPS Git URL--username: Your Git username--password-name: The name of the secret that contains your password or tokenExample:
For detailed setup instructions, see Configure access to private repositories.
By default, IAG clones the default branch of your repository. You can specify a different branch, tag, or commit using the --reference parameter.
Syntax:
Examples:
Create a repository that references the develop branch:
Create a repository that references a specific tag:
You can add tags and descriptions to help organize and identify repositories.
Example:
When you organize scripts in a Git repository for use with IAG, consider these practices:
scripts/backup/, scripts/deployment/)Example repository structure:
When you create a service, you specify the --working-dir parameter to tell IAG which directory contains your script.
List all repositories:
View details of a specific repository:
Delete a repository:
Before you delete a repository, verify that no services reference it. If services use the repository, they will fail when you delete it.