docker-deploy-webhook icon indicating copy to clipboard operation
docker-deploy-webhook copied to clipboard

webhook and gitlab

Open StephanKrauss opened this issue 5 years ago • 1 comments

Hello,

i'm a absolute begginner in docker. My simple question is: Can i use gitlab for the docker-deploy-webhook ?

Your sincerly

Stephan

StephanKrauss avatar May 02 '19 15:05 StephanKrauss

I was wondering the same thing and I think you can. In the index.js is a REGISTRY environment variable, so I imagine the following should work (I havent tried yet):

docker service create \
--name docker-deploy-webhook \
--with-registry-auth \
--constraint "node.role==manager" \
--publish=8080:8080 \
--mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
-e PORT="8080" \
-e CONFIG="production" \
-e TOKEN="123456ABCDEF" \
-e USERNAME="gitlab-login" \
-e PASSWORD="gitlab-token-for-registry-read" \
-e REGISTRY="registry.gitlab.com" \
your-org-name/decoders-deploy-webhook:latest

Good luck :crossed_fingers:

maltesa avatar May 22 '20 20:05 maltesa