Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Lando Init GitHub Source Example

This example exists primarily to test the following documentation:

Start up tests

Run the following commands to get up and running with this example.

# Should clone code down from GitHub
mkdir -p github && cd github
rm -rf ~/.lando/scripts
lando init --source github --recipe none --github-auth="$GITHUB_PAT" --github-repo="git@github.com:lando/lando.git" --github-key-name="$GITHUB_KEY_NAME" --yes

Verification commands

Run the following commands to verify things work as expected

# Should have the README.md in the approot
cd github && cat README.md

# Should merge default init values into config
cd github && cat .lando.yml | grep something | grep happening-here

Destroy tests

# Should remove key
docker run --rm -v "$(pwd)":/data -w /data badouralix/curl-jq:alpine sh -c "/data/remove-key.sh $GITHUB_PAT $GITHUB_KEY_NAME"

# Should remove initialized code
rm -rf github