Skip to content

Commit e229f9c

Browse files
committed
text fix json
1 parent e13ef0e commit e229f9c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
if [[ "${{ github.ref }}" == 'refs/heads/main' ]]; then
6363
# Tags are deployed in prod
6464
CONTEXT=prod
65-
CORS='["https://api-platform.com","http://localhost","https://localhost","http://localhost:3000"]'
65+
echo 'cors=["https://api-platform.com", "http://localhost", "https://localhost", "http://localhost:3000"]' >> "$GITHUB_ENV"
6666
ENVIRONMENT=prod
6767
NAMESPACE=prod-website
6868
RELEASE_NAME=website-prod
@@ -77,18 +77,18 @@ jobs:
7777
ENVIRONMENT=Staging
7878
RELEASE_NAME=${{ github.ref_name }}
7979
fi
80-
CORS='["https://${{ env.RELEASE_NAME}}.apip.preprod-tilleuls.ovh","http://localhost","https://localhost","http://localhost:3000"]'
80+
echo 'cors=["https://${{ env.RELEASE_NAME}}.apip.preprod-tilleuls.ovh", "http://localhost", "https://localhost", "http://localhost:3000"]' >> "$GITHUB_ENV"
8181
NAMESPACE=nonprod-website
8282
REPLICA=1
8383
URL=$RELEASE_NAME.apip.preprod-tilleuls.ovh
8484
fi
8585
echo "context=$CONTEXT" >> "$GITHUB_ENV"
86-
echo "cors=$CORS" >> "$GITHUB_ENV"
8786
echo "environment=$ENVIRONMENT" >> "$GITHUB_ENV"
8887
echo "namespace=$NAMESPACE" >> "$GITHUB_ENV"
8988
echo "release_name=$RELEASE_NAME" >> "$GITHUB_ENV"
9089
echo "replica=$REPLICA" >> "$GITHUB_ENV"
9190
echo "url=$URL" >> "$GITHUB_ENV"
91+
cat $GITHUB_ENV
9292
9393
9494
deploy:

0 commit comments

Comments
 (0)