mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-15 21:44:24 +00:00
drone
This commit is contained in:
+12
-9
@@ -18,11 +18,12 @@ pipeline:
|
||||
repo: rancher/docs
|
||||
context: .
|
||||
tag: dev
|
||||
secrets: [docker_username, docker_password, algolia_app_id, algolia_index_name, algolia_index_file, algolia_admin_key]
|
||||
secrets: [docker_username, docker_password, algolia_app_id, algolia_admin_key]
|
||||
environment:
|
||||
- ALGOLIA_INDEX_NAME="dev_docs"
|
||||
- ALGOLIA_INDEX_FILE="public/algolia.json"
|
||||
build_args_from_env:
|
||||
- ALGOLIA_APP_ID
|
||||
- ALGOLIA_INDEX_NAME
|
||||
- ALGOLIA_INDEX_FILE
|
||||
- ALGOLIA_ADMIN_KEY
|
||||
when:
|
||||
branch: master
|
||||
@@ -35,11 +36,12 @@ pipeline:
|
||||
repo: rancher/docs
|
||||
context: .
|
||||
tag: staging
|
||||
secrets: [docker_username, docker_password, algolia_app_id, algolia_index_name, algolia_index_file, algolia_admin_key]
|
||||
secrets: [docker_username, docker_password, algolia_app_id, algolia_admin_key]
|
||||
environment:
|
||||
- ALGOLIA_INDEX_NAME="dev_docs"
|
||||
- ALGOLIA_INDEX_FILE="public/algolia.json"
|
||||
build_args_from_env:
|
||||
- ALGOLIA_APP_ID
|
||||
- ALGOLIA_INDEX_NAME
|
||||
- ALGOLIA_INDEX_FILE
|
||||
- ALGOLIA_ADMIN_KEY
|
||||
when:
|
||||
branch: master
|
||||
@@ -52,11 +54,12 @@ pipeline:
|
||||
repo: rancher/docs
|
||||
context: .
|
||||
tag: latest
|
||||
secrets: [docker_username, docker_password, algolia_app_id, algolia_index_name, algolia_index_file, algolia_admin_key]
|
||||
secrets: [docker_username, docker_password, algolia_app_id, algolia_admin_key]
|
||||
environment:
|
||||
- ALGOLIA_INDEX_NAME="dev_docs"
|
||||
- ALGOLIA_INDEX_FILE="public/algolia.json"
|
||||
build_args_from_env:
|
||||
- ALGOLIA_APP_ID
|
||||
- ALGOLIA_INDEX_NAME
|
||||
- ALGOLIA_INDEX_FILE
|
||||
- ALGOLIA_ADMIN_KEY
|
||||
when:
|
||||
branch: master
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ const bootstrapDocsSearch = function() {
|
||||
const search = instantsearch({
|
||||
appId: '30NEY6C9UY',
|
||||
apiKey: 'b7f43c16886fec97b87981e9e62ef1a5',
|
||||
indexName: 'dev_docs',
|
||||
indexName: window.location.host === 'rancher.com' ? 'prod_docs' : 'dev_docs',
|
||||
routing: true,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user