iCR Workflow Integration Guide
WebTry iCR
CI/CD Workflow 3.0
CI/CD Workflow 3.0
  • Table of contents
    • Introduction
    • Jenkins Workflow
      • Installing the plugin
      • Configuring the plugin
        • Creating a Personal Access Token
        • Copying Your Repository's URL
      • Viewing the Results
    • GitHub Actions Workflow
      • Workflow Overview
      • Preparing and Registering the Docker Image
        • Adding a Workflow to a Repository
      • Preparing the GitHub Workflow
        • Environment Variables
        • User Supplied Secrets
        • Setting the User Defined Secrets Values
      • Executing the Workflow
    • GitLab Workflow
      • Workflow Overview
      • Preparing the Docker Image
      • Configuring the GitLab Script variables
        • Environment Variables
        • User Supplied Variables
        • Creating a Personal Access Token
        • Setting the User Defined Variable Values
      • Executing the Workflow
    • Multiple Workflows
    • Appendix A - Getting a BitBucket App Password for JENKINS
Powered by GitBook
On this page

Was this helpful?

  1. Table of contents
  2. GitHub Actions Workflow
  3. Preparing and Registering the Docker Image

Adding a Workflow to a Repository

PreviousPreparing and Registering the Docker ImageNextPreparing the GitHub Workflow

Last updated 1 year ago

Was this helpful?

Now that the iCR CI/CD container is properly registered for this User, we can link it with any of the repositories for which we desire a CI/CD workflow to be triggered. Click on the package name to link it with a project. In our example, that is icr-github. That brings up this window:

which presents up a popup menu where you can select which repositories you wish this container to be linked with. Keeping with our earlier example, we will associate CI/CD workflow capability to the sample project baritone. Select it along with any other repositories that you wish to be linked to this package.

Then click on the Connect Repository button at the bottom of the popup menu to link all selected repositories to this package.

With our example project linked to the package, the next step is to configure each spcific repository to allow GitHub Actions on its behalf. To do that, click on the Package Settings menu item in the updated display of the registered repository as illustrated below.

To permit GitHub Actions to work with this repository, access must be authorized. From this Package Settings page, scroll to the section titled Manage Actions access where there is a button labeled Add repository.

Clicking on it will, like earlier, display all of the repositories available to the logged-in user. From that list click the repository for which you wish to grant access. In our example, that is the Baritone repository so we click on its radio button. That adds Baritone to the list of repositories allowed to use GitHub actions with this package.

With our example project registered with the iCR package and the package now authorized to access GitHub Actions on behalf of our example repository, we can move to the steps to invoke a GitHub Actions workflow.