File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 2929 apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
3030 preCommands : |
3131 cp wranger.toml.example wrangler.toml
32- echo "[env.production.vars]" >> wrangler.toml
33- echo "ENVIRONMENT = 'production'" >> wrangler.toml"
34- echo "INFLUX_URL = '${{ env.INFLUX_URL }}'" >> wrangler.toml
35- echo "INFLUX_METRIC_NAME = '${{ env.INFLUX_METRIC_NAME }}'" >> wrangler.toml
36- echo "INFLUX_DATABASE = '${{ env.INFLUX_DATABASE }}'" >> wrangler.toml
32+ envsubst < wrangler.toml.example > wrangler.toml
3733 postCommands : |
3834 rm -f wrangler.toml
3935 environment : production
Original file line number Diff line number Diff line change @@ -7,4 +7,10 @@ compatibility_flags = ["nodejs_compat"]
77ENVIRONMENT = " dev"
88INFLUX_METRIC_NAME = " example"
99INFLUX_URL = " http://localhost:8086"
10- INFLUX_DATABASE = " example"
10+ INFLUX_DATABASE = " example"
11+
12+ [env .dev .production ]
13+ ENVIRONMENT = " production"
14+ INFLUX_METRIC_NAME = " $INFLUX_METRIC_NAME"
15+ INFLUX_URL = " $INFLUX_URL"
16+ INFLUX_DATABASE = " $INFLUX_DATABASE"
You can’t perform that action at this time.
0 commit comments