Skip to content
This repository has been archived by the owner on Jul 2, 2020. It is now read-only.

Commit

Permalink
fail curl to stop build
Browse files Browse the repository at this point in the history
  • Loading branch information
shayts7 committed Feb 29, 2016
1 parent 58d0e89 commit 629ae83
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 59 deletions.
58 changes: 0 additions & 58 deletions dd-agent.servic

This file was deleted.

2 changes: 1 addition & 1 deletion update_service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ set -o xtrace

f_sha=$(curl -sL "https://api.github.com/repos/gaia-adm/gaia-fleet/contents/${service_file}?ref=${branch}" | jq .sha | tr -d '"') && \
f_64=$(openssl enc -base64 -A -in <(sed "s/gaiaadm\/${service_name}/gaiaadm\/${service_name}:${build_num}-${branch}/g" ${service_file})) && \
curl -i -X PUT -H "Authorization: token ${GITHUB_API_TOKEN}" -d "{\"path\": \"${service_file}\", \"message\": \"updating ${service_file} with the new image tag: ${build_num}-${branch}\", \"commiter\": {\"name\": \"circleci\", \"email\": \"[email protected]\"}, \"content\": \"${f_64}\", \"sha\": \"${f_sha}\", \"branch\": \"${branch}\"}" https://api.github.com/repos/gaia-adm/gaia-fleet/contents/${service_file}
curl --fail -i -X PUT -H "Authorizatio: token ${GITHUB_API_TOKEN}" -d "{\"path\": \"${service_file}\", \"message\": \"updating ${service_file} with the new image tag: ${build_num}-${branch}\", \"commiter\": {\"name\": \"circleci\", \"email\": \"[email protected]\"}, \"content\": \"${f_64}\", \"sha\": \"${f_sha}\", \"branch\": \"${branch}\"}" https://api.github.com/repos/gaia-adm/gaia-fleet/contents/${service_file}

0 comments on commit 629ae83

Please sign in to comment.