All Proof of Concepts (PoC) start by first forking the OPNFV repo to your personal Github account. This allows you to have full control in settings up
the CI/CD services and provides a location to point at when discussing results with others.
To test the services with external hardware resources you can reserve a server from LaaS and connect it as an agent/runner/machine.
- Login to CircleCI with your Github account.
- Select 'Setup All repos'
- Click "Start a Project"
- Authorize the app
- Click "Setup Project" on the repository
- Select Linux → [Project Language] and copy the YAML config
Commit the YAML config to .circleci/config.yml (Note: it must end in .yml and not .yaml) on a new branch and open a PR
- Click "Start Building"
- Set any needed environment variables at https://circleci.com/gh/<username>/<project>/edit#env-vars
- You'll probably want to enable CircleCI checks (a separate app that updates the Github Checks API for PRs): https://circleci.com/gh/organizations/<username>/settings#vcs
- Modify the YAML config to match what you'd like the build to do and push changes to your branch to update the PR. Refer to the CircleCI docs for help.
- Login to Gitlab.com with your Github account.
- Authorize the gitlabhq app
- Accept the TOS
- Select "Create a Project"
- Click "CI/CD for external repo" tab and select "Github" from under "Connect repositories from"
- Authorize the additional permissions for the gitlabhq app
- Click "Connect" on the repository you want to setup CI for
- Once it's done, select "Go to project"
- Commit a .gitlab-ci.yml file on a new branch using one of the examples and open a PR.
- Notices should show up on the PR immediately that Gitlab pipelines are running.
- Add any needed environment variables to your project under the project's CI/CD settings Variables:
- Modify and update the YAML config until the workflow matches your needs before merging in. Refer to the Gitlab-CI docs for help.
- Go to the Azure Pipelines Github marketplace app and select "Setup a plan" → "Install it for free" → "Complete order and begin installation"
- Authorize the Azure Pipelines app
- If you don't have one already, you'll need to create and associate a Microsoft account and email address in order to login.
- Login with your Microsoft account. This will create an 'Azure DevOps Organization'
- Authorize "Azure Pipelines by Microsoft"
- Select the repository to setup
- Select a predefined pipeline to use
- Click "Save and run", then select "Create a new branch for this commit and start a pull request" → "Save and run"
This will create a commit on the specific Github branch of your repository containing the configuration you selected in the previous step.
- Set variables by selecting your pipeline → edit add variables or create a variable group under "Library" and link it to the pipeline.
- Add any agents needed for the pipelines to the Default pool by navigating to
the project home page → clicking the gear icon → selecting "Agent pools" under Pipelines → select the "Default" pool,
and then following the instructions given after clicking "New Agent".
- Modify and update the YAML config until the workflow matches your needs before merging in. Referring to the Azure Pipeline docs for help.