Switch to new cluster with elasticsearch 7.10 (#556)
This commit is contained in:
parent
0303a81431
commit
4bc2ea9d05
|
@ -42,7 +42,7 @@ jobs:
|
|||
env:
|
||||
RUST_LOG: debug
|
||||
FI_ES_EXISTS_STRATEGY: abort
|
||||
FI_ES_URL: ${{ secrets.ELASTICSEARCH_URL }}
|
||||
FI_ES_URL: ${{ secrets.ELASTICSEARCH_URL2 }}
|
||||
|
||||
steps:
|
||||
- name: Checking out the repository
|
||||
|
@ -64,7 +64,7 @@ jobs:
|
|||
- name: Warmup ${{ matrix.channel }} channel
|
||||
run: |
|
||||
for (( i = 0; i < 3; i++ )) do
|
||||
curl -sS ${{ secrets.ELASTICSEARCH_URL }}/latest-$(< VERSION)-nixos-${{ matrix.channel }}/_search | jq -c '.took // .'
|
||||
curl -sS ${{ secrets.ELASTICSEARCH_URL2 }}/latest-$(< VERSION)-nixos-${{ matrix.channel }}/_search | jq -c '.took // .'
|
||||
done
|
||||
if: github.repository_owner == 'NixOS'
|
||||
|
||||
|
@ -81,7 +81,7 @@ jobs:
|
|||
env:
|
||||
RUST_LOG: debug
|
||||
FI_ES_EXISTS_STRATEGY: recreate
|
||||
FI_ES_URL: ${{ secrets.ELASTICSEARCH_URL }}
|
||||
FI_ES_URL: ${{ secrets.ELASTICSEARCH_URL2 }}
|
||||
|
||||
steps:
|
||||
|
||||
|
@ -102,6 +102,6 @@ jobs:
|
|||
- name: Warmup ${{ matrix.group }} group
|
||||
run: |
|
||||
for (( i = 0; i < 3; i++ )) do
|
||||
curl -sS ${{ secrets.ELASTICSEARCH_URL }}/latest-$(< VERSION)-group-${{ matrix.group }}/_search | jq -c '.took // .'
|
||||
curl -sS ${{ secrets.ELASTICSEARCH_URL2 }}/latest-$(< VERSION)-group-${{ matrix.group }}/_search | jq -c '.took // .'
|
||||
done
|
||||
if: github.repository_owner == 'NixOS'
|
||||
|
|
|
@ -7,9 +7,9 @@ const {Elm} = require('./Main');
|
|||
Elm.Main.init({
|
||||
flags: {
|
||||
elasticsearchMappingSchemaVersion: parseInt(process.env.ELASTICSEARCH_MAPPING_SCHEMA_VERSION),
|
||||
elasticsearchUrl: process.env.ELASTICSEARCH_URL || 'https://nixos-search-5886075189.us-east-1.bonsaisearch.net:443',
|
||||
elasticsearchUsername : process.env.ELASTICSEARCH_USERNAME || 'z3ZFJ6y2mR',
|
||||
elasticsearchPassword : process.env.ELASTICSEARCH_PASSWORD || 'ds8CEvALPf9pui7XG',
|
||||
elasticsearchUrl: process.env.ELASTICSEARCH_URL || 'https://nixos-search-7-1733963800.us-east-1.bonsaisearch.net:443',
|
||||
elasticsearchUsername : process.env.ELASTICSEARCH_USERNAME || 'aWVSALXpZv',
|
||||
elasticsearchPassword : process.env.ELASTICSEARCH_PASSWORD || 'X8gPHnzL52wFEekuxsfQ9cSh',
|
||||
nixosChannels : JSON.parse(process.env.NIXOS_CHANNELS)
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue