webhook and gitlab
StephanKrauss opened this issue · 1 comments
StephanKrauss commented
Hello,
i'm a absolute begginner in docker.
My simple question is:
Can i use gitlab for the docker-deploy-webhook ?
Your sincerly
Stephan
maltesa commented
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 🤞