Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webhook and gitlab #10

Open
StephanKrauss opened this issue May 2, 2019 · 1 comment
Open

webhook and gitlab #10

StephanKrauss opened this issue May 2, 2019 · 1 comment

Comments

@StephanKrauss
Copy link

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
Copy link

maltesa commented May 22, 2020

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 🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants