Skip to content

Commit

Permalink
fix(ci): Really get the service name
Browse files Browse the repository at this point in the history
  • Loading branch information
parmentf committed Jan 11, 2024
1 parent b716170 commit 6ba28f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/build-and-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ wait_for_url () {
return 0
}

SERVICE_NAME=${1%%/*}
# branch name should be in the format:
# services/<service-name>/<comment>
BRANCH_NAME=$1
SERVICE_INTERMEDIATE=${BRANCH_NAME#services/} # remove services/ part
SERVICE_NAME=${SERVICE_INTERMEDIATE%/*}

echo "Starting container of $SERVICE_NAME"
cd "services/$SERVICE_NAME"
Expand Down

0 comments on commit 6ba28f0

Please sign in to comment.