mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Update azure-pipelines-release.yml for Azure Pipelines
This commit is contained in:
parent
48d07467d9
commit
d116d2c1a4
@ -245,24 +245,33 @@ stages:
|
|||||||
- template: templates/azp-step-ha-version.yaml@azure
|
- template: templates/azp-step-ha-version.yaml@azure
|
||||||
- script: |
|
- script: |
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
export CLOUDSDK_CORE_DISABLE_PROMPTS=1
|
export CLOUDSDK_CORE_DISABLE_PROMPTS=1
|
||||||
|
|
||||||
curl -o google-cloud-sdk.tar.gz https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz
|
curl -o google-cloud-sdk.tar.gz https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz
|
||||||
tar -C . -xvf google-cloud-sdk.tar.gz
|
tar -C . -xvf google-cloud-sdk.tar.gz
|
||||||
rm -f google-cloud-sdk.tar.gz
|
rm -f google-cloud-sdk.tar.gz
|
||||||
./google-cloud-sdk/install.sh
|
./google-cloud-sdk/install.sh
|
||||||
displayName: 'Setup gCloud'
|
displayName: 'Setup gCloud'
|
||||||
condition: eq(variables['homeassistantReleaseStable'], 'true'))
|
condition: eq(variables['homeassistantReleaseStable'], 'true')
|
||||||
- script: |
|
- script: |
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
export CLOUDSDK_CORE_DISABLE_PROMPTS=1
|
export CLOUDSDK_CORE_DISABLE_PROMPTS=1
|
||||||
echo "$(gcloudAuth)" > gcloud_auth.json
|
|
||||||
|
echo "$(gcloudAnalytic)" > gcloud_auth.json
|
||||||
./google-cloud-sdk/bin/gcloud auth activate-service-account --key-file gcloud_auth.json
|
./google-cloud-sdk/bin/gcloud auth activate-service-account --key-file gcloud_auth.json
|
||||||
rm -f gcloud_auth.json
|
rm -f gcloud_auth.json
|
||||||
displayName: 'Auth gCloud'
|
displayName: 'Auth gCloud'
|
||||||
condition: eq(variables['homeassistantReleaseStable'], 'true'))
|
condition: eq(variables['homeassistantReleaseStable'], 'true')
|
||||||
- script: |
|
- script: |
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
export CLOUDSDK_CORE_DISABLE_PROMPTS=1
|
export CLOUDSDK_CORE_DISABLE_PROMPTS=1
|
||||||
./google-cloud-sdk/bin/gcloud functions deploy Analytics-Receiver --update-env-vars VERSION=$(homeassistantRelease)
|
|
||||||
|
./google-cloud-sdk/bin/gcloud functions deploy Analytics-Receiver \
|
||||||
|
--project home-assistant-analytics \
|
||||||
|
--update-env-vars VERSION=$(homeassistantRelease) \
|
||||||
|
--source gs://analytics-src/function-source.zip
|
||||||
displayName: 'Push details to updater'
|
displayName: 'Push details to updater'
|
||||||
condition: eq(variables['homeassistantReleaseStable'], 'true'))
|
condition: eq(variables['homeassistantReleaseStable'], 'true')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user