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
Release history Release notifications | RSS feed
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)