Skip to content

Commit 5e150c8

Browse files
committed
Change prod flag to avoid erros on new projects
All new projects are created as "locked" by default so this allow their deployment. Additionally, a moreh helpful error message is added when NETLIFY_ACCOUNT cannot be found Fixes #1918 Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
1 parent 23ab465 commit 5e150c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/universe.dagger.io/netlify/deploy.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ create_site() {
1515

1616
# shellcheck disable=SC2181
1717
if [ $? -ne 0 ]; then
18+
>&2 echo "Error creating site [${NETLIFY_SITE_NAME}] for account [${NETLIFY_ACCOUNT}]"
1819
cat body >&2
1920
exit 1
2021
fi
@@ -47,7 +48,7 @@ netlify link --id "$site_id"
4748
netlify deploy \
4849
--build \
4950
--site="$site_id" \
50-
--prodIfUnlocked |
51+
--prod |
5152
tee /tmp/stdout
5253

5354
url="$(grep </tmp/stdout Website | grep -Eo 'https://[^ >]+' | head -1)"

0 commit comments

Comments
 (0)