Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ephemeral-env/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ set -o errexit
source get_domain.sh # import function

# Access yaml content
export $(yq r env.yaml -p pv '*.*' | sed -e 's/\./_/' -e 's/: /=/' -e 's/"//g')
export $(yq e '*.*' env.yaml | sed -e 's/\./_/' -e 's/: /=/' -e 's/"//g')

# Run Skaffold
if [ "${1-default}" == "minikube" ]; then
envsubst <skaffold.template.yaml >skaffold_"${minikube_dev_initials}"-"${minikube_work_item_id}".yaml
skaffold dev --status-check=false --cache-artifacts=true -p minikube -f skaffold_"${minikube_dev_initials}"-"${minikube_work_item_id}".yaml
skaffold dev --status-check=false --cache-artifacts=true -p minikube -f skaffold_"${minikube_dev_initials}"-"${minikube_work_item_id}".yaml


elif [ "${1-default}" == "ephemeral-development" ]; then
envsubst <skaffold.template.yaml >skaffold_"${ephemeral_dev_initials}"-"${ephemeral_work_item_id}".yaml
Expand Down