Skip to content

Commit

Permalink
fix variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz committed May 15, 2024
1 parent 9a4cff4 commit f2111e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .buildkite/scripts/steps/serverless/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ deploy() {
echo "--- Create $PROJECT_TYPE_LABEL project"

echo "Checking if project already exists..."
PROJECT_DEPLOY_LOGS=$(mktemp --suffix ".json")
PROJECT_EXISTS_LOGS=$(mktemp --suffix ".json")
PROJECT_UPDATE_LOGS=$(mktemp --suffix ".json")
curl -s \
-H "Authorization: ApiKey $PROJECT_API_KEY" \
"${PROJECT_API_DOMAIN}/api/v1/serverless/projects/${PROJECT_TYPE}" \
Expand All @@ -68,7 +70,6 @@ deploy() {

if [ -z "${PROJECT_ID}" ] || [ "$PROJECT_ID" = 'null' ]; then
echo "Creating project..."
PROJECT_DEPLOY_LOGS=$(mktemp --suffix ".json")
curl -s \
-H "Authorization: ApiKey $PROJECT_API_KEY" \
-H "Content-Type: application/json" \
Expand Down Expand Up @@ -99,7 +100,6 @@ deploy() {

else
echo "Updating project..."
PROJECT_UPDATE_LOGS=$(mktemp --suffix ".json")
curl -s \
-H "Authorization: ApiKey $PROJECT_API_KEY" \
-H "Content-Type: application/json" \
Expand Down

0 comments on commit f2111e2

Please sign in to comment.