Skip to main content

A simplified tool for making easy-to-use build scripts

Project description

Stud

Example Studfile.yaml

.variables:
  all_services:
    - foo
    - bar
    - baz
build-docker: 
  help: "Build and optionally push docker images"
  options:
    - name: -s,--services
      default: all
      nargs: '+'
      required: true
    - name: -p,--push
      action: store_true
  cmd: |
    if 'all' in services:
      services = all_services

    for service in services:
      docker build -t {service} -f src/{service}/Dockerfile .
      if push:
        docker push {service}
build-local: 
  help: "Build local versions of services"
  options:
    - name: -s,--services
      default: all
      nargs: '+'
      required: true
  cmd: |
    # notice that the all_services variable is available 
    if 'all' in services:
      services = all_services

    for service in services:
      # do build things here

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

studfile-0.1.2.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

studfile-0.1.2-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page