Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EOSD-3009] Update yq syntax to 4.x in init.sh #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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