Skip to content

pantheon-training-org/build-tools-project-create

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pantheon-training-org/build-tools-project-create

This repository assists with bulk project creation by running terminus build:project:create from Terminus Build Tools on CircleCI by triggering jobs through the CircleCI API.

** Step to run the script **

  • Clone https://github.com/pantheon-training-org/build-tools-project-create locally.
  • Update this project's CircleCI environment variables. Here are a few items you may wish to update:
    • CMS_EMAIL: The email associated with the admin CMS user account.
    • CMS_PASSWORD: The password used to install the CMS.
    • GITHUB_ORG: GitHub organization to create projects under.
    • ORG_UUID: UUID of the Pantheon organization to add the sites to.
  • Make a sites-to-create.json file containing an array of project details for each build:project:create run.
    • SITE_NAME: a slug for the project. This will typically have the students first initial + last name and the event name + year. For example, ataylor-drupalcon-seattle-2019.
    • STUDENT_PANTHEON_EMAIL: The email address associated with a Pantheon user account to be added to the project.
    • BASE_PROJECT: The base project type to create. This can be wp, d8, or a custom GitHub repository URL. For example, pantheon-systems/example-wordpress-composer:dev-master.
    • STUDENT_GIT_USERNAME: A GitHub user account to be added to the project.
  • Run export CIRCLE_TOKEN= with a valid CircleCI token
  • Run create-sites.sh locally, which will loop through all the project details in sites-to-create.json and call the CircleCI API to start a job for each project.
  • Watch the jobs appear in CircleCI

sites-to-create.json example:

[
	{
		"SITE_NAME": "ataylor-drupalcon-seattle-2019",
		"STUDENT_PANTHEON_EMAIL": "[email protected]",
		"BASE_PROJECT": "pantheon-systems/example-drops-8-composer:dev-master",
		"STUDENT_GIT_USERNAME": "ataylorme"
	}
]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages