How to deploy docker image with gitlab CI and portainer

Viewed 2584

I know Kubernetes has rest API to automate deploy docker image on it. and i know how to use it by Gitlab runner. I wonder if portainer has this feature to call a rest API and deploy my image on it ? I mean how to use recreate container or create container like in portainer ui as a pi service ? Is there any better way to do this?

1 Answers

What you can do, it add a stack to portainer that gets its docker-compose file from your gitlab git repository. Of course you need to add your gitlab registry as a docker registry to portainer first.

Related