Ver código fonte

feat(build): trigger windows build after successfull CI build

bergquist 9 anos atrás
pai
commit
da2aaf7095
2 arquivos alterados com 10 adições e 0 exclusões
  1. 1 0
      circle.yml
  2. 9 0
      scripts/trigger_windows_build.sh

+ 1 - 0
circle.yml

@@ -28,3 +28,4 @@ deployment:
     owner: grafana
     commands:
       - ./scripts/trigger_grafana_packer.sh ${TRIGGER_GRAFANA_PACKER_CIRCLECI_TOKEN}
+      - ./scripts/trigger_windows_build.sh ${APPVEYOR_TOKEN}

+ 9 - 0
scripts/trigger_windows_build.sh

@@ -0,0 +1,9 @@
+#!/bin/bash
+
+_token=$1
+
+curl \
+  -H "Content-Type: application/json" \
+  -H "Authorization: Bearer ${_token}" \
+  -X POST -d '{ "accountName": "Torkeldegaard", "projectSlug": "grafana","branch": "master","environmentVariables": {}}' \
+  https://ci.appveyor.com/api/builds