Saving a service to different repositories
You can create or edit a service and save it to a GitHub, GitLab, or Bitbucket Server repositories.
Procedure
-
From the overflow menu of the service, click Push to GIT.
-
In the Push Service To Git page, select any of the following values from the Import template source drop-down list:
- From GitLab
- From GitHub
- Bitbucket Server
-
Enter details of the selected repository:
-
For From GitLab or From GitHub, enter a repository URL, an access token, the relative directory of your service, and the related branch. The service must be in JSON format. For example, if the service is stored in a GitHub repository at
vsphere/vsphere-example.json
, you must specify the following values:- GitHub Repository URL:
https://github.com/geekbass/terraform
- GitHub Access Token:
aaaaaaaaaaa
It is the token required to access GitHub template files. You can find it in your GitHub user account. - GitHub Repository path to service:
vsphere
- GitHub Ref (branch):
master
- Commit Message - Enter a commit message to push the changes into the GIT hub repository.
- GitHub Repository URL:
-
For Bitbucket, enter the following details:
- Bitbucket Repository URL - The location where Bitbucket service files are stored.
- Bitbucket Access Token - The token used to store the service in Bitbucket.
- Bitbucket Repository sub-directory - The path relative to the Bitbucket location where the service is stored.
- Bitbucket Reference - Select Branch or Tag option and enter the name of the tag or branch.
-
-
Click Push to GIT.