mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 03:49:11 +00:00
ci: prospective; figure out why environment URL isn't being set
This commit is contained in:
parent
8f5f8bc99b
commit
9cdefefbcc
1 changed files with 6 additions and 3 deletions
9
.github/workflows/deploy.yml
vendored
9
.github/workflows/deploy.yml
vendored
|
@ -107,16 +107,19 @@ jobs:
|
||||||
ENV_NAME=
|
ENV_NAME=
|
||||||
|
|
||||||
if [[ "${{github.event.inputs.environment}}" == "prod" ]]; then
|
if [[ "${{github.event.inputs.environment}}" == "prod" ]]; then
|
||||||
ENV_URL=https://next.roleypoly.com
|
ENV_URL="https://next.roleypoly.com"
|
||||||
ENV_NAME=Production
|
ENV_NAME=Production
|
||||||
elif [[ "${{github.event.inputs.environment}}" == "stage" ]]; then
|
elif [[ "${{github.event.inputs.environment}}" == "stage" ]]; then
|
||||||
ENV_URL=https://web-stage.roleypoly.com
|
ENV_URL="https://web-stage.roleypoly.com"
|
||||||
ENV_NAME=Staging
|
ENV_NAME=Staging
|
||||||
else
|
else
|
||||||
ENV_URL=https://web-${{github.event.inputs.environment}}.roleypoly.com
|
ENV_URL="https://web-${{github.event.inputs.environment}}.roleypoly.com"
|
||||||
ENV_NAME=Preview-${{github.event.inputs.environment}}
|
ENV_NAME=Preview-${{github.event.inputs.environment}}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "url=$ENV_URL"
|
||||||
|
echo "env=$ENV_NAME"
|
||||||
|
|
||||||
echo ::set-output name=url::$ENV_URL
|
echo ::set-output name=url::$ENV_URL
|
||||||
echo ::set-output name=env::$ENV_NAME
|
echo ::set-output name=env::$ENV_NAME
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue