GithubHelp home page GithubHelp logo

mjefferson / pantheon-codespaces-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pantheon-systems/pantheon-codespaces-generator

0.0 1.0 1.0 41 KB

A generator to import Pantheon sites into a Github repo with pantheon-codespaces configured.

PHP 100.00%

pantheon-codespaces-generator's Introduction

pantheon-codespaces-generator

A generator to import Pantheon sites into a Github repo with pantheon-codespaces configured.

This repo contains an Action definition that can be triggered via workflow_dispatch. The parameters are:

  • site_uuid - The site ID for the Pantheon site. You can find this when on your Pantheon site dashboard in the URL - something like "https://dashboard.pantheon.io/sites/a31e101e-bebf-4f03-874c-629a7g752ac1" - the site UUID is "a31e101e-bebf-4f03-874c-629a7g752ac1".
  • repo_name - Optional: The Github repo name to use. The default will be the site machine name. If the repo already exists the process will fail.
  • GITHUB_ORG - The Github org name to use for creating the repo.
  • GITHUB_USER - The Github user to use, defaults to the user calling the Action.

The configuration secrets for the repo required are:

  • SSH_KEY - A private SSH key with a public equivalent added to Pantheon dashboard - generated via ssh-keygen -p -m PEM - the private key should be used as the SSH_KEY secret, and the public key should be added to the Pantheon account to be used.
  • SSH_KNOWN_HOSTS - Can be empty by default or the contents of a known_hosts file if desired for advanced SSH config, or use the default:
127.0.0.1
  • TERMINUS_MACHINE_TOKEN - A machine token generated from Pantheon dashboard for the account to be used.
  • GH_ACCESS_TOKEN - A personal access token with access to create and write to a Github repo in the same organization to be used.

Usage via web:

  • Fork the repo

  • Configure the secrets, and make sure Actions are enabled

  • Go to the Actions tab, go to the "Create new Pantheon site Github repo" Action image

  • Add the Pantheon site ID and click Run

  • You can watch the Action running in the Actions tab, and check for any errors if failures are encountered

  • Once completed, you should have a Github repo created with the Pantheon machine name as the name of the repo, and pantheon-codespaces configured in the repo

pantheon-codespaces-generator's People

Contributors

twfahey1 avatar

Watchers

James Cloos avatar

Forkers

annacoders

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.