Play allows you to define shell executions as configurations. You just provide the YAML file and the play script will execute it. It allows you to easily reuse snippets*
docker run lakruzz/play play
To learn more you can use switches --man or --help
The following Circle CI job is a snippet from the proflow/github/JAM-stack template for Circle CI (have a look at the two files in the .circleci folder)
prod-deploy:
working_directory: /app/_site
docker:
- image: lakruzz/play:latest
environment:
PLAY_TARGET_GH_REPO: lakruzz/stage-circle-lab
PLAY_USER_NAME: Circle CI by @Lakruzz
PLAY_USER_EMAIL: [email protected]
steps:
- restore_cache:
keys:
- the-built-repo-{{ .Revision }}
- run:
name: Deploy to GitHub Pages
command: play --manuscript ../.circleci/play-proflow-cci-gh.yml --part ghpages_deploy
The manual is available like this
docker run lakruzz/play play --help
PLAY - A declarative approach to executing - all kinds of stuff
PLAY --part PART [--manuscript MANUSCRIPT] [--[no]verbose] [--dryrun]
PLAY --help | --man --part PARTThe part to play from the manuscript
--manuscript MANUSCRIPTThe manuscript that contains the different parts to play. This option overrides the default manuscript.
--[no]verbosePrints the whole part from the manuscript before the play begins, and prints each shell commands before execution. The default is --[no]verbose, but can be set in the manuscript, or overruled using this option.
--dryrun
Implies --verbose. Prints all the verbose information, but doesn't actually execute anything.
Options can be applied with double or single dashes as you like, so both --verbose and -verbose are valid. You can even abbreveate the option name, it will remain valid as long as it's unique among all options.
Example: since there are no other options except --verbose that begins with 'v' it means that even -v is valid.
Copyright
Lars Kruse, 2018, www.lakruzz.com
License
GPL v3.0
Repository
Support and feeback
Use the issues in the repo.
Content type
Image
Digest
Size
322.7 MB
Last updated
over 7 years ago
docker pull lakruzz/play