Skip to content

Commit 2efc465

Browse files
committed
enable testing env
1 parent 47f4869 commit 2efc465

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Diff for: .github/workflows/update-search-index.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
update:
88
name: Update Algolia Search Index
99
runs-on: ubuntu-latest
10-
environment: production
10+
environment: testing
1111
steps:
1212
- name: Install Node
1313
uses: actions/setup-node@v1

Diff for: layouts/partials/docs/search.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
data-app-id="{{ getenv "ALGOLIA_APP_ID" }}"
99
data-search-key="{{ getenv "ALGOLIA_APP_SEARCH_KEY" }}"
1010
data-facets="Docs,Registry,Tutorials"
11-
data-index="production"
11+
data-index="testing"
1212
></div>
1313
</div>
1414
<div class="content-width-controls">

Diff for: scripts/ci-push.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ source ./scripts/ci-login.sh
77
./scripts/build-site.sh
88
./scripts/sync-and-test-bucket.sh update
99

10-
./scripts/generate-search-index.sh
10+
# ./scripts/generate-search-index.sh
1111

1212
node ./scripts/await-in-progress.js
1313

Diff for: scripts/search/update-search-index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const algoliasearch = require("algoliasearch");
44

55
// URL of the JSON file
66
const registrySearchIndexUrl = "https://www.pulumi.com/registry/search-index.json";
7-
const docsSearchIndexUrl = "https://www.pulumi.com/search-index.json";
7+
const docsSearchIndexUrl = "https://www.pulumi-test.io/search-index.json";
88

99
// Configuration values required for updating the Algolia index.
1010
const config = {

Diff for: scripts/sync-and-test-bucket.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fi
3131

3232
# For previews, name the destination bucket with the PR number, to reduce the number of
3333
# buckets we create and to facilitate shorter sync times.
34-
destination_bucket="$(origin_bucket_prefix)-$(build_identifier)"
34+
destination_bucket=$(echo "$(origin_bucket_prefix)-$(build_identifier)" | tr '_' '-')
3535
destination_bucket_uri="s3://${destination_bucket}"
3636

3737
# Translate Hugo redirects into a file we'll use for making 301 redirects later. Note that

0 commit comments

Comments
 (0)