# Automation of pushing flows to Gitlab

**URL:** <https://discourse.nodered.org/t/automation-of-pushing-flows-to-gitlab/52806>\
**Category:** General\
**Created:** [27 October 2021 07:43 UTC](https://discourse.nodered.org/t/automation-of-pushing-flows-to-gitlab/52806 "2021-10-27T07:43:30Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![SimoNode](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@SimoNode](https://discourse.nodered.org/u/SimoNode)\
**Post date:** [27 October 2021 07:43 UTC](https://discourse.nodered.org/t/automation-of-pushing-flows-to-gitlab/52806/1 "2021-10-27T07:43:31Z")

</div>

Hi Everyone,

Is there anyway to create a repo in Gitlab (using nodes) and then push a flow to it every time i deploy ?

Thanks

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [27 October 2021 08:08 UTC](https://discourse.nodered.org/t/automation-of-pushing-flows-to-gitlab/52806/2 "2021-10-27T08:08:37Z")

</div>

Did you try a forum search? Try using 'GitHub flow' and you will find some threads.

---

<div class="post-metadata">

**Author:** ![SimoNode](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@SimoNode](https://discourse.nodered.org/u/SimoNode)\
**Post date:** [27 October 2021 14:05 UTC](https://discourse.nodered.org/t/automation-of-pushing-flows-to-gitlab/52806/3 "2021-10-27T14:05:56Z")

</div>

Actually yeah... i took a quick look on the previous post about it and i've found this post : [Project mode by tabs/flow?](https://discourse.nodered.org/t/project-mode-by-tabs-flow/39864) which is what i really want to do but i don't understand how it works ... Thanks for the reply

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [27 October 2021 14:24 UTC](https://discourse.nodered.org/t/automation-of-pushing-flows-to-gitlab/52806/4 "2021-10-27T14:24:19Z")

</div>

Did you try it? What part don't you understand?

---

<div class="post-metadata">

**Author:** ![SimoNode](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@SimoNode](https://discourse.nodered.org/u/SimoNode)\
**Post date:** [27 October 2021 14:52 UTC](https://discourse.nodered.org/t/automation-of-pushing-flows-to-gitlab/52806/5 "2021-10-27T14:52:17Z")

</div>

in both inject and credentials nodes there is a field called token, so i've putted my gitlab project token there but it dosen't work

---

<div class="post-metadata">

**Author:** ![SimoNode](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@SimoNode](https://discourse.nodered.org/u/SimoNode)\
**Post date:** [27 October 2021 15:14 UTC](https://discourse.nodered.org/t/automation-of-pushing-flows-to-gitlab/52806/6 "2021-10-27T15:14:39Z")

</div>

Actually when i copied the export to github subflow, i obtained another flow (in another tab) with "inject", "ceredentials", "set msg.commit" and the "Export to github" subflow (the one we see in the picture of the post) so it's a little bit confusing where to tell him which flow i want to export. thanks again for you reply and sorry i didn't explain this to you previously.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [27 October 2021 15:35 UTC](https://discourse.nodered.org/t/automation-of-pushing-flows-to-gitlab/52806/7 "2021-10-27T15:35:43Z")

</div>

so did you get it working?

---

<div class="post-metadata">

**Author:** ![SimoNode](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@SimoNode](https://discourse.nodered.org/u/SimoNode)\
**Post date:** [27 October 2021 15:50 UTC](https://discourse.nodered.org/t/automation-of-pushing-flows-to-gitlab/52806/8 "2021-10-27T15:50:37Z")

</div>

i got error : "TypeError: msg.payload.forEach is not a function"

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [27 October 2021 16:15 UTC](https://discourse.nodered.org/t/automation-of-pushing-flows-to-gitlab/52806/9 "2021-10-27T16:15:04Z")

</div>

Hmm that user did not document his process very well did they. Not only that but I just noticed that this goes to GitHub and you want to go to GitLab so it wouldn't work for you any way.

You could search to see to see if therre is anything for gitLab, but I have no knowledge of GitLab. Sorry

---

<div class="post-metadata">

**Author:** ![SimoNode](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@SimoNode](https://discourse.nodered.org/u/SimoNode)\
**Post date:** [28 October 2021 06:53 UTC](https://discourse.nodered.org/t/automation-of-pushing-flows-to-gitlab/52806/10 "2021-10-28T06:53:29Z")

</div>

yeah ... thanks for your help 😀

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [27 December 2021 06:53 UTC](https://discourse.nodered.org/t/automation-of-pushing-flows-to-gitlab/52806/11 "2021-12-27T06:53:46Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
