Skip to content

Commit

Permalink
Fix text output (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfespa17 authored Apr 18, 2022
1 parent 1e542f5 commit 74c38d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pipe/pipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ TERRAKUBE_ORGANIZATION_ID=$(curl -g -H "Authorization: Bearer $TERRAKUBE_TOKEN"

echo "Organization Id: $TERRAKUBE_ORGANIZATION_ID"

info "Searchving Terrakube Workspace:"
info "Searching Terrakube Workspace:"

TERRAKUBE_WORKSPACE_ID=$(curl -g -H "Authorization: Bearer $TERRAKUBE_TOKEN" -X GET "${TERRAKUBE_ENDPOINT}/api/v1/organization/$TERRAKUBE_ORGANIZATION_ID/workspace?filter[workspace]=name==${TERRAKUBE_WORKSPACE}" | jq -r '.data[0].id')

Expand All @@ -76,7 +76,9 @@ info "Creating Terrakube Job:"

TERRAKUBE_JOB_ID=$(curl -g -H "Authorization: Bearer $TERRAKUBE_TOKEN" -H "Content-Type: application/vnd.api+json" -X POST "${TERRAKUBE_ENDPOINT}/api/v1/organization/$TERRAKUBE_ORGANIZATION_ID/job" --data "$(generate_job_data)" | jq -r '.data.id' )

info "Job Id: $TERRAKUBE_JOB_ID"
info "Terrakube Job Created..."

echo "Job Id: $TERRAKUBE_JOB_ID"

run echo $TERRAKUBE_JOB_ID

Expand Down

0 comments on commit 74c38d4

Please sign in to comment.