From cad03ceb46dc8e71d011bfc0b36c548773830371 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 22 Jan 2020 22:09:28 +0100 Subject: [PATCH 1/2] Add netlify pipeline --- azure-pipelines-netlify.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 azure-pipelines-netlify.yml diff --git a/azure-pipelines-netlify.yml b/azure-pipelines-netlify.yml new file mode 100644 index 000000000000..24408a154799 --- /dev/null +++ b/azure-pipelines-netlify.yml @@ -0,0 +1,27 @@ +# https://dev.azure.com/home-assistant + +trigger: none +pr: none +schedules: + - cron: "0 0 * * *" + displayName: "rebuild cache" + branches: + include: + - dev + always: false +variables: + - group: netlify + +jobs: + +- job: 'Netlify_Cache' + pool: + vmImage: 'ubuntu-latest' + steps: + - script: | + # Cast + curl -X POST -d {} https://api.netlify.com/build_hooks/${NETLIFY_CAST} + + # Demo + curl -X POST -d {} https://api.netlify.com/build_hooks/${NETLIFY_DEMO} + displayName: 'Trigger netlify rebuild' From 454d8288979e8b91de57c2c8faf1032146b1d653 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 22 Jan 2020 22:35:53 +0100 Subject: [PATCH 2/2] Address comments --- azure-pipelines-netlify.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines-netlify.yml b/azure-pipelines-netlify.yml index 24408a154799..83cf89dcf9ce 100644 --- a/azure-pipelines-netlify.yml +++ b/azure-pipelines-netlify.yml @@ -4,7 +4,7 @@ trigger: none pr: none schedules: - cron: "0 0 * * *" - displayName: "rebuild cache" + displayName: "build preview" branches: include: - dev @@ -14,7 +14,7 @@ variables: jobs: -- job: 'Netlify_Cache' +- job: 'Netlify_preview' pool: vmImage: 'ubuntu-latest' steps: @@ -24,4 +24,4 @@ jobs: # Demo curl -X POST -d {} https://api.netlify.com/build_hooks/${NETLIFY_DEMO} - displayName: 'Trigger netlify rebuild' + displayName: 'Trigger netlify build preview'