Skip to content

Instantly share code, notes, and snippets.

Last active September 6, 2023 11:33
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
This script will create a distributable python library
python3 -m pip install wheel
python3 bdist_wheel
export "BUCKET_NAME=$(yq e '.bucket_name' config/properties.yml)"
for JOB_DIR in ./src/jobs/job*; do
JOB_NAME_RAW=$(basename $JOB_DIR)
JOB_NAME="$(tr '[:lower:]' '[:upper:]' <<< ${JOB_NAME_RAW:0:1})${JOB_NAME_RAW:1}" # Capitalizing the first letter
yq_command="yq e '$YAML_PATH.\"$key\" = \"$value\"' -i assets/output.yaml"
eval $yq_command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment