Dear Sir/Madam,
I am unable to trigger the Docker image build from circleCi after successful build. Here is the error:
bash: line 1: https://registry.hub.docker.com/u/keerti4p/spring-web-demo/trigger/e928b11f-3f21-4956-b414-c8b92c142422/: No such file or directory
$DOCKER_HUB_TRIGGER returned exit code 127
Action failed: $DOCKER_HUB_TRIGGER
I have created the envrironment corresponding environment variable in the project settings.
circleci.yml file:
machine:
services:
- docker
deployment:
dockerhub:
branch: master
commands:
- $DOCKER_HUB_TRIGGER
test:
override:
- mvn clean install
With Kidn Regards,
Keertiraj
levlaz
April 7, 2016, 1:14am
2
Keertiraj:
$DOCKER_HUB_TRIGGER
Can you share what this variable refers to? (If there is sensitive info please strip it out)
Hello Levlaz,
The variable details are:
DOCKER_HUB_TRIGGER = https://registry.hub.docker.com/u/keerti4p/spring-web-demo/trigger/e928b11f-3f21-4956-b414-c8b92c142422/
The error i get is:
bash: line 1: https://registry.hub.docker.com/u/keerti4p/spring-web-demo/trigger/e928b11f-3f21-4956-b414-c8b92c142422/: No such file or directory
$DOCKER_HUB_TRIGGER returned exit code 127
Action failed: $DOCKER_HUB_TRIGGER
Please let me know if more information is needed.
Hello Levlaz,
I am just wondering, if you got time to look into this issue. It is very important for organisation to make some decisions.
With Kind Regards,
Keertiraj
I donāt know if you fixed your problem but for the sake of other lost souls looking for this.
you need to declare that variable with for example a curl call:
DOCKER_HUB_TRIGGER = curl -H āContent-Type: application/jsonā --data ā{ābuildā: true}ā -X POST https://registry.hub.docker.com/yourtriggerhere
1 Like