Fixed triggering of Docker image builds from Travis. (#10541)
The cURL command was missing an authorization header and one component in the URL.
Austin S. Hemmelgarn committed
Jan 21, 2021 at 10:30 UTC
ed6d34338a6ac7311e0a3e5f756b7d212a85eedd
1 file changed
+10
-2
.travis.yml
+10
-2
@@ -362,7 +362,11 @@ jobs:
362
363
- name: Trigger Docker image build and publish
364
script: >-
365
- curl -X POST -H 'Accept: application/vnd.github.v3+json' 'https://api.github.com/repos/netdata/netdata/actions/workflows/docker.yml' -d '{"ref": "master", "inputs": {"version": "${build_version}"}}'
365
+ curl -X POST \
366
+ -H 'Accept: application/vnd.github.v3+json' \
367
+ -H "Authorization: Bearer ${GITHUB_TOKEN}" \
368
+ 'https://api.github.com/repos/netdata/netdata/actions/workflows/docker.yml/dispatches' \
369
+ -d '{"ref": "master", "inputs": {"version": "${build_version}"}}'
370
after_failure: post_message "TRAVIS_MESSAGE" "<!here> Failed to trigger docker build during release" "${NOTIF_CHANNEL}"
371
372
- stage: Trigger deb and rpm package build (release)
@@ -459,7 +463,11 @@ jobs:
463
464
- name: Trigger Docker image build and publish
465
script: >-
462
- curl -X POST -H 'Accept: application/vnd.github.v3+json' 'https://api.github.com/repos/netdata/netdata/actions/workflows/docker.yml' -d '{"ref": "master", "inputs": {"version": "nightly"}}'
466
+ curl -X POST \
467
+ -H 'Accept: application/vnd.github.v3+json' \
468
+ -H "Authorization: Bearer ${GITHUB_TOKEN}" \
469
+ 'https://api.github.com/repos/netdata/netdata/actions/workflows/docker.yml/dispatches' \
470
+ -d '{"ref": "master", "inputs": {"version": "${build_version}"}}'
471
after_failure: post_message "TRAVIS_MESSAGE" "<!here> Failed to trigger docker build during nightly release" "${NOTIF_CHANNEL}"
472
473
- stage: Trigger deb and rpm package build (nightly release)